C# 클래스 Terraria.Plugins.CoderCow.Protector.ProtectionManager

파일 보기 프로젝트 열기: CoderCow/Protector-Plugin 1 사용 예제들

공개 메소드들

메소드 설명
CheckBlockAccess ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool fullAccessRequired = false ) : bool
CheckBlockAccess ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool fullAccessRequired, ProtectionEntry &relatedProtection ) : bool
CheckProtectionAccess ( ProtectionEntry protection, TShockAPI.TSPlayer player, bool fullAccessRequired = false ) : bool
CreateProtection ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool checkIfBlockTypeProtectableByConfig = true, bool checkTShockBuildAndRegionAccess = true, bool checkLimits = true ) : ProtectionEntry
EnsureProtectionData ( bool resetBankChestContent, int &invalidProtectionsCount, int &invalidRefillChestCount, int &invalidBankChestCount ) : void
EnumerateProtectionEntries ( System.Drawing.Point tileLocation ) : IEnumerable
IsShareableBlockType ( BlockType blockType ) : bool
ProtectionManager ( Terraria.Plugins.Common.PluginTrace pluginTrace, Configuration config, ChestManager chestManager, ServerMetadataHandler serverMetadataHandler, WorldMetadata worldMetadata ) : System
ProtectionShareAll ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool shareOrUnshare, bool checkPermissions = false ) : void
ProtectionShareGroup ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, string targetGroupName, bool shareOrUnshare = true, bool checkPermissions = false ) : void
ProtectionShareUser ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, int targetUserId, bool shareOrUnshare = true, bool checkPermissions = false ) : void
RemoveProtection ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool checkIfBlockTypeDeprotectableByConfig = true ) : void

비공개 메소드들

메소드 설명
EnumProtectionEntriesOnTopOfObject ( Terraria.Plugins.Common.ObjectMeasureData measureData ) : IEnumerable
ProtectionSharePreValidation ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool shareOrUnshare, bool checkPermissions, ProtectionEntry &protection ) : void

메소드 상세

CheckBlockAccess() 공개 메소드

public CheckBlockAccess ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool fullAccessRequired = false ) : bool
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
fullAccessRequired bool
리턴 bool

CheckBlockAccess() 공개 메소드

public CheckBlockAccess ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool fullAccessRequired, ProtectionEntry &relatedProtection ) : bool
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
fullAccessRequired bool
relatedProtection ProtectionEntry
리턴 bool

CheckProtectionAccess() 공개 메소드

public CheckProtectionAccess ( ProtectionEntry protection, TShockAPI.TSPlayer player, bool fullAccessRequired = false ) : bool
protection ProtectionEntry
player TShockAPI.TSPlayer
fullAccessRequired bool
리턴 bool

CreateProtection() 공개 메소드

public CreateProtection ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool checkIfBlockTypeProtectableByConfig = true, bool checkTShockBuildAndRegionAccess = true, bool checkLimits = true ) : ProtectionEntry
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
checkIfBlockTypeProtectableByConfig bool
checkTShockBuildAndRegionAccess bool
checkLimits bool
리턴 ProtectionEntry

EnsureProtectionData() 공개 메소드

public EnsureProtectionData ( bool resetBankChestContent, int &invalidProtectionsCount, int &invalidRefillChestCount, int &invalidBankChestCount ) : void
resetBankChestContent bool
invalidProtectionsCount int
invalidRefillChestCount int
invalidBankChestCount int
리턴 void

EnumerateProtectionEntries() 공개 메소드

public EnumerateProtectionEntries ( System.Drawing.Point tileLocation ) : IEnumerable
tileLocation System.Drawing.Point
리턴 IEnumerable

IsShareableBlockType() 공개 정적인 메소드

public static IsShareableBlockType ( BlockType blockType ) : bool
blockType BlockType
리턴 bool

ProtectionManager() 공개 메소드

public ProtectionManager ( Terraria.Plugins.Common.PluginTrace pluginTrace, Configuration config, ChestManager chestManager, ServerMetadataHandler serverMetadataHandler, WorldMetadata worldMetadata ) : System
pluginTrace Terraria.Plugins.Common.PluginTrace
config Configuration
chestManager ChestManager
serverMetadataHandler ServerMetadataHandler
worldMetadata WorldMetadata
리턴 System

ProtectionShareAll() 공개 메소드

public ProtectionShareAll ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool shareOrUnshare, bool checkPermissions = false ) : void
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
shareOrUnshare bool
checkPermissions bool
리턴 void

ProtectionShareGroup() 공개 메소드

public ProtectionShareGroup ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, string targetGroupName, bool shareOrUnshare = true, bool checkPermissions = false ) : void
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
targetGroupName string
shareOrUnshare bool
checkPermissions bool
리턴 void

ProtectionShareUser() 공개 메소드

public ProtectionShareUser ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, int targetUserId, bool shareOrUnshare = true, bool checkPermissions = false ) : void
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
targetUserId int
shareOrUnshare bool
checkPermissions bool
리턴 void

RemoveProtection() 공개 메소드

public RemoveProtection ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool checkIfBlockTypeDeprotectableByConfig = true ) : void
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
checkIfBlockTypeDeprotectableByConfig bool
리턴 void