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

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

공개 프로퍼티들

프로퍼티 타입 설명
DummyChest Chest
DummyChestIndex int

공개 메소드들

메소드 설명
ChestFromLocation ( System.Drawing.Point chestLocation, TShockAPI.TSPlayer reportToPlayer = null ) : IChest
ChestManager ( Terraria.Plugins.Common.PluginTrace pluginTrace, Configuration config, ServerMetadataHandler serverMetadataHandler, WorldMetadata worldMetadata, PluginCooperationHandler cooperationHandler ) : System
CreateChestData ( System.Drawing.Point chestLocation ) : IChest
DestroyChest ( IChest chest ) : void
DestroyChest ( System.Drawing.Point anyTileLocation ) : void
EnsureBankChest ( ProtectionEntry protection, bool resetContent ) : bool
EnsureRefillChest ( ProtectionEntry protection ) : bool
EnumerateAllChests ( ) : IEnumerable
EnumerateProtectorChests ( ) : IEnumerable
HandleGameSecondUpdate ( ) : void
PlaceChest ( ushort tileType, int style, System.Drawing.Point placeLocation ) : IChest
SetUpBankChest ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, int bankChestIndex, bool checkPermissions = false ) : void
SetUpRefillChest ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, System.TimeSpan refillTime, bool oneLootPerPlayer = null, int lootLimit = null, bool autoLock = null, bool autoEmpty = null, bool fairLoot = false, bool checkPermissions = false ) : bool
SetUpTradeChest ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, int sellAmount, int sellItemId, int payAmount, int payItemId, int lootLimit, bool checkPermissions = false ) : void
TryRefillChest ( IChest chest, Terraria.Plugins.CoderCow.Protector.RefillChestMetadata refillChestData ) : bool
TryRefillChest ( System.Drawing.Point chestLocation, Terraria.Plugins.CoderCow.Protector.RefillChestMetadata refillChestData ) : bool

비공개 메소드들

메소드 설명
ChestManager ( ) : System
RefillChestTimer_Callback ( Terraria.Plugins.Common.TimerBase timer ) : bool

메소드 상세

ChestFromLocation() 공개 메소드

public ChestFromLocation ( System.Drawing.Point chestLocation, TShockAPI.TSPlayer reportToPlayer = null ) : IChest
chestLocation System.Drawing.Point
reportToPlayer TShockAPI.TSPlayer
리턴 IChest

ChestManager() 공개 메소드

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

CreateChestData() 공개 메소드

public CreateChestData ( System.Drawing.Point chestLocation ) : IChest
chestLocation System.Drawing.Point
리턴 IChest

DestroyChest() 공개 메소드

public DestroyChest ( IChest chest ) : void
chest IChest
리턴 void

DestroyChest() 공개 메소드

public DestroyChest ( System.Drawing.Point anyTileLocation ) : void
anyTileLocation System.Drawing.Point
리턴 void

EnsureBankChest() 공개 메소드

public EnsureBankChest ( ProtectionEntry protection, bool resetContent ) : bool
protection ProtectionEntry
resetContent bool
리턴 bool

EnsureRefillChest() 공개 메소드

public EnsureRefillChest ( ProtectionEntry protection ) : bool
protection ProtectionEntry
리턴 bool

EnumerateAllChests() 공개 메소드

public EnumerateAllChests ( ) : IEnumerable
리턴 IEnumerable

EnumerateProtectorChests() 공개 메소드

public EnumerateProtectorChests ( ) : IEnumerable
리턴 IEnumerable

HandleGameSecondUpdate() 공개 메소드

public HandleGameSecondUpdate ( ) : void
리턴 void

PlaceChest() 공개 메소드

public PlaceChest ( ushort tileType, int style, System.Drawing.Point placeLocation ) : IChest
tileType ushort
style int
placeLocation System.Drawing.Point
리턴 IChest

SetUpBankChest() 공개 메소드

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

SetUpRefillChest() 공개 메소드

public SetUpRefillChest ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, System.TimeSpan refillTime, bool oneLootPerPlayer = null, int lootLimit = null, bool autoLock = null, bool autoEmpty = null, bool fairLoot = false, bool checkPermissions = false ) : bool
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
refillTime System.TimeSpan
oneLootPerPlayer bool
lootLimit int
autoLock bool
autoEmpty bool
fairLoot bool
checkPermissions bool
리턴 bool

SetUpTradeChest() 공개 메소드

public SetUpTradeChest ( TShockAPI.TSPlayer player, System.Drawing.Point tileLocation, int sellAmount, int sellItemId, int payAmount, int payItemId, int lootLimit, bool checkPermissions = false ) : void
player TShockAPI.TSPlayer
tileLocation System.Drawing.Point
sellAmount int
sellItemId int
payAmount int
payItemId int
lootLimit int
checkPermissions bool
리턴 void

TryRefillChest() 공개 메소드

public TryRefillChest ( IChest chest, Terraria.Plugins.CoderCow.Protector.RefillChestMetadata refillChestData ) : bool
chest IChest
refillChestData Terraria.Plugins.CoderCow.Protector.RefillChestMetadata
리턴 bool

TryRefillChest() 공개 메소드

public TryRefillChest ( System.Drawing.Point chestLocation, Terraria.Plugins.CoderCow.Protector.RefillChestMetadata refillChestData ) : bool
chestLocation System.Drawing.Point
refillChestData Terraria.Plugins.CoderCow.Protector.RefillChestMetadata
리턴 bool

프로퍼티 상세

DummyChest 공개적으로 정적으로 프로퍼티

public static Chest DummyChest
리턴 Chest

DummyChestIndex 공개적으로 정적으로 프로퍼티

public static int DummyChestIndex
리턴 int