C# Class Terraria.Plugins.CoderCow.Protector.ProtectionManager

Afficher le fichier Open project: CoderCow/Protector-Plugin Class Usage Examples

Méthodes publiques

Méthode 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, 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

Private Methods

Méthode Description
EnumProtectionEntriesOnTopOfObject ( Terraria.Plugins.Common.ObjectMeasureData measureData ) : IEnumerable
ProtectionSharePreValidation ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool shareOrUnshare, bool checkPermissions, ProtectionEntry &protection ) : void

Method Details

CheckBlockAccess() public méthode

public CheckBlockAccess ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool fullAccessRequired = false ) : bool
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
fullAccessRequired bool
Résultat bool

CheckBlockAccess() public méthode

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
Résultat bool

CheckProtectionAccess() public méthode

public CheckProtectionAccess ( ProtectionEntry protection, TShockAPI.TSPlayer player, bool fullAccessRequired = false ) : bool
protection ProtectionEntry
player TShockAPI.TSPlayer
fullAccessRequired bool
Résultat bool

CreateProtection() public méthode

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
Résultat ProtectionEntry

EnsureProtectionData() public méthode

public EnsureProtectionData ( bool resetBankChestContent, int &invalidProtectionsCount, int &invalidRefillChestCount, int &invalidBankChestCount ) : void
resetBankChestContent bool
invalidProtectionsCount int
invalidRefillChestCount int
invalidBankChestCount int
Résultat void

EnumerateProtectionEntries() public méthode

public EnumerateProtectionEntries ( System.Drawing.Point tileLocation ) : IEnumerable
tileLocation System.Drawing.Point
Résultat IEnumerable

IsShareableBlockType() public static méthode

public static IsShareableBlockType ( BlockType blockType ) : bool
blockType BlockType
Résultat bool

ProtectionManager() public méthode

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
Résultat System

ProtectionShareAll() public méthode

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
Résultat void

ProtectionShareGroup() public méthode

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
Résultat void

ProtectionShareUser() public méthode

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
Résultat void

RemoveProtection() public méthode

public RemoveProtection ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, bool checkIfBlockTypeDeprotectableByConfig = true ) : void
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
checkIfBlockTypeDeprotectableByConfig bool
Résultat void