C# Class Terraria.Chest

显示文件 Open project: EmuDevs/EDTerraria Class Usage Examples

Public Properties

Property Type Description
bankChest bool
chestItemSpawn int[]
chestTypeToIcon int[]
dresserItemSpawn int[]
dresserTypeToIcon int[]
frame int
frameCounter int
item Item[]
name string
x int
y int

Public Methods

Method Description
AddShop ( Item newItem ) : void
AfterPlacement_Hook ( int x, int y, int type = 21, int style, int direction = 1 ) : int
CanDestroyChest ( int X, int Y ) : bool
Chest ( bool bank = false ) : Microsoft.Xna.Framework
Clone ( ) : object
CreateChest ( int X, int Y, int id = -1 ) : int
DestroyChest ( int X, int Y ) : bool
DestroyChestDirect ( int X, int Y, int id ) : void
FindChest ( int X, int Y ) : int
FindEmptyChest ( int x, int y, int type = 21, int style, int direction = 1 ) : int
Initialize ( ) : void
MagicChest ( int i ) : void
NearOtherChests ( int x, int y ) : bool
PutItemInNearbyChest ( Item item, Vector2 position ) : Item
ServerPlaceItem ( int plr, int slot ) : void
SetupShop ( int type ) : void
SetupTravelShop ( ) : void
ToString ( ) : string
Unlock ( int X, int Y ) : bool
UpdateChestFrames ( ) : void
UsingChest ( int i ) : int
isLocked ( int x, int y ) : bool

Private Methods

Method Description
IsPlayerInChest ( int i ) : bool

Method Details

AddShop() public method

public AddShop ( Item newItem ) : void
newItem Item
return void

AfterPlacement_Hook() public static method

public static AfterPlacement_Hook ( int x, int y, int type = 21, int style, int direction = 1 ) : int
x int
y int
type int
style int
direction int
return int

CanDestroyChest() public static method

public static CanDestroyChest ( int X, int Y ) : bool
X int
Y int
return bool

Chest() public method

public Chest ( bool bank = false ) : Microsoft.Xna.Framework
bank bool
return Microsoft.Xna.Framework

Clone() public method

public Clone ( ) : object
return object

CreateChest() public static method

public static CreateChest ( int X, int Y, int id = -1 ) : int
X int
Y int
id int
return int

DestroyChest() public static method

public static DestroyChest ( int X, int Y ) : bool
X int
Y int
return bool

DestroyChestDirect() public static method

public static DestroyChestDirect ( int X, int Y, int id ) : void
X int
Y int
id int
return void

FindChest() public static method

public static FindChest ( int X, int Y ) : int
X int
Y int
return int

FindEmptyChest() public static method

public static FindEmptyChest ( int x, int y, int type = 21, int style, int direction = 1 ) : int
x int
y int
type int
style int
direction int
return int

Initialize() public static method

public static Initialize ( ) : void
return void

MagicChest() public static method

public static MagicChest ( int i ) : void
i int
return void

NearOtherChests() public static method

public static NearOtherChests ( int x, int y ) : bool
x int
y int
return bool

PutItemInNearbyChest() public static method

public static PutItemInNearbyChest ( Item item, Vector2 position ) : Item
item Item
position Vector2
return Item

ServerPlaceItem() public static method

public static ServerPlaceItem ( int plr, int slot ) : void
plr int
slot int
return void

SetupShop() public method

public SetupShop ( int type ) : void
type int
return void

SetupTravelShop() public static method

public static SetupTravelShop ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Unlock() public static method

public static Unlock ( int X, int Y ) : bool
X int
Y int
return bool

UpdateChestFrames() public static method

public static UpdateChestFrames ( ) : void
return void

UsingChest() public static method

public static UsingChest ( int i ) : int
i int
return int

isLocked() public static method

public static isLocked ( int x, int y ) : bool
x int
y int
return bool

Property Details

bankChest public_oe property

public bool bankChest
return bool

chestItemSpawn public_oe static_oe property

public static int[] chestItemSpawn
return int[]

chestTypeToIcon public_oe static_oe property

public static int[] chestTypeToIcon
return int[]

dresserItemSpawn public_oe static_oe property

public static int[] dresserItemSpawn
return int[]

dresserTypeToIcon public_oe static_oe property

public static int[] dresserTypeToIcon
return int[]

frame public_oe property

public int frame
return int

frameCounter public_oe property

public int frameCounter
return int

item public_oe property

public Item[] item
return Item[]

name public_oe property

public string name
return string

x public_oe property

public int x
return int

y public_oe property

public int y
return int