C# Class ChestControl.Chest

Show file Open project: Deathmax/Chest-Control Class Usage Examples

Protected Properties

Property Type Description
ID int
Locked bool
Owner string
Position Terraria.Vector2
Refill bool
RefillItems Terraria.Item[]
RegionLock bool
WorldID int

Public Methods

Method Description
CheckPassword ( string password ) : bool
Chest ( ) : System.Collections.Generic
GetID ( ) : int
GetOwner ( ) : string
GetPassword ( ) : string
GetPosition ( ) : Terraria.Vector2
GetRefillItemNames ( ) : List
GetRefillItems ( ) : Terraria.Item[]
HasOwner ( ) : bool
IsLocked ( ) : bool
IsOpenFor ( CPlayer player ) : bool
IsOwner ( CPlayer player ) : bool
IsOwnerConvert ( CPlayer player ) : bool
IsRefill ( ) : bool
IsRegionLocked ( ) : bool
LegacyIsOwner ( CPlayer player ) : bool
Lock ( ) : void
Reset ( ) : void
SetID ( int id ) : void
SetOwner ( CPlayer player ) : void
SetOwner ( string player ) : void
SetPassword ( string password ) : void
SetPassword ( string password, bool checkForHash ) : void
SetPosition ( Terraria.Vector2 position ) : void
SetPosition ( int x, int y ) : void
SetRefill ( bool refill ) : void
SetRefillItems ( string raw ) : void
TileIsChest ( Terraria.TileData tile ) : bool
TileIsChest ( Terraria.Vector2 position ) : bool
TileIsChest ( int x, int y ) : bool
UnLock ( ) : void
regionLock ( bool locking ) : void

Method Details

CheckPassword() public method

public CheckPassword ( string password ) : bool
password string
return bool

Chest() public method

public Chest ( ) : System.Collections.Generic
return System.Collections.Generic

GetID() public method

public GetID ( ) : int
return int

GetOwner() public method

public GetOwner ( ) : string
return string

GetPassword() public method

public GetPassword ( ) : string
return string

GetPosition() public method

public GetPosition ( ) : Terraria.Vector2
return Terraria.Vector2

GetRefillItemNames() public method

public GetRefillItemNames ( ) : List
return List

GetRefillItems() public method

public GetRefillItems ( ) : Terraria.Item[]
return Terraria.Item[]

HasOwner() public method

public HasOwner ( ) : bool
return bool

IsLocked() public method

public IsLocked ( ) : bool
return bool

IsOpenFor() public method

public IsOpenFor ( CPlayer player ) : bool
player CPlayer
return bool

IsOwner() public method

public IsOwner ( CPlayer player ) : bool
player CPlayer
return bool

IsOwnerConvert() public method

public IsOwnerConvert ( CPlayer player ) : bool
player CPlayer
return bool

IsRefill() public method

public IsRefill ( ) : bool
return bool

IsRegionLocked() public method

public IsRegionLocked ( ) : bool
return bool

LegacyIsOwner() public method

public LegacyIsOwner ( CPlayer player ) : bool
player CPlayer
return bool

Lock() public method

public Lock ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

SetID() public method

public SetID ( int id ) : void
id int
return void

SetOwner() public method

public SetOwner ( CPlayer player ) : void
player CPlayer
return void

SetOwner() public method

public SetOwner ( string player ) : void
player string
return void

SetPassword() public method

public SetPassword ( string password ) : void
password string
return void

SetPassword() public method

public SetPassword ( string password, bool checkForHash ) : void
password string
checkForHash bool
return void

SetPosition() public method

public SetPosition ( Terraria.Vector2 position ) : void
position Terraria.Vector2
return void

SetPosition() public method

public SetPosition ( int x, int y ) : void
x int
y int
return void

SetRefill() public method

public SetRefill ( bool refill ) : void
refill bool
return void

SetRefillItems() public method

public SetRefillItems ( string raw ) : void
raw string
return void

TileIsChest() public static method

public static TileIsChest ( Terraria.TileData tile ) : bool
tile Terraria.TileData
return bool

TileIsChest() public static method

public static TileIsChest ( Terraria.Vector2 position ) : bool
position Terraria.Vector2
return bool

TileIsChest() public static method

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

UnLock() public method

public UnLock ( ) : void
return void

regionLock() public method

public regionLock ( bool locking ) : void
locking bool
return void

Property Details

ID protected property

protected int ID
return int

Locked protected property

protected bool Locked
return bool

Owner protected property

protected string Owner
return string

Position protected property

protected Vector2,Terraria Position
return Terraria.Vector2

Refill protected property

protected bool Refill
return bool

RefillItems protected property

protected Item[],Terraria RefillItems
return Terraria.Item[]

RegionLock protected property

protected bool RegionLock
return bool

WorldID protected property

protected int WorldID
return int