C# Class ChestControl.CPlayer

Inheritance: TShockAPI.TSPlayer
Show file Open project: Deathmax/Chest-Control Class Usage Examples

Public Properties

Property Type Description
PasswordForChest string

Protected Properties

Property Type Description
State SettingState
UnlockedChests List

Public Methods

Method Description
CPlayer ( int index ) : System.Collections.Generic
GetState ( ) : SettingState
HasAccessToChest ( int id ) : bool
SetState ( SettingState state ) : void
UnlockedChest ( int id ) : void

Method Details

CPlayer() public method

public CPlayer ( int index ) : System.Collections.Generic
index int
return System.Collections.Generic

GetState() public method

public GetState ( ) : SettingState
return SettingState

HasAccessToChest() public method

public HasAccessToChest ( int id ) : bool
id int
return bool

SetState() public method

public SetState ( SettingState state ) : void
state SettingState
return void

UnlockedChest() public method

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

Property Details

PasswordForChest public property

public string PasswordForChest
return string

State protected property

protected SettingState State
return SettingState

UnlockedChests protected property

protected List UnlockedChests
return List