Method | Description | |
---|---|---|
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, |
||
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 |
Method | Description | |
---|---|---|
EnumProtectionEntriesOnTopOfObject ( Terraria.Plugins.Common.ObjectMeasureData measureData ) : IEnumerable |
||
ProtectionSharePreValidation ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool shareOrUnshare, bool checkPermissions, ProtectionEntry &protection ) : void |
public CheckBlockAccess ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool fullAccessRequired = false ) : bool | ||
player | TShockAPI.TSPlayer | |
tileLocation | System.Drawing.Point | |
fullAccessRequired | bool | |
return | bool |
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 | |
return | bool |
public CheckProtectionAccess ( ProtectionEntry protection, TShockAPI.TSPlayer player, bool fullAccessRequired = false ) : bool | ||
protection | ProtectionEntry | |
player | TShockAPI.TSPlayer | |
fullAccessRequired | bool | |
return | bool |
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 | |
return | ProtectionEntry |
public EnsureProtectionData ( bool resetBankChestContent, int &invalidProtectionsCount, int &invalidRefillChestCount, int &invalidBankChestCount ) : void | ||
resetBankChestContent | bool | |
invalidProtectionsCount | int | |
invalidRefillChestCount | int | |
invalidBankChestCount | int | |
return | void |
public EnumerateProtectionEntries ( System.Drawing.Point tileLocation ) : IEnumerable |
||
tileLocation | System.Drawing.Point | |
return | IEnumerable |
public static IsShareableBlockType ( BlockType blockType ) : bool | ||
blockType | BlockType | |
return | bool |
public ProtectionManager ( Terraria.Plugins.Common.PluginTrace pluginTrace, |
||
pluginTrace | Terraria.Plugins.Common.PluginTrace | |
config | ||
chestManager | ||
serverMetadataHandler | ||
worldMetadata | ||
return | System |
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 | |
return | void |
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 | |
return | void |
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 | |
return | void |
public RemoveProtection ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool checkIfBlockTypeDeprotectableByConfig = true ) : void | ||
player | TShockAPI.TSPlayer | |
tileLocation | System.Drawing.Point | |
checkIfBlockTypeDeprotectableByConfig | bool | |
return | void |