C# Class TShockAPI.PlayerData

Show file Open project: NyxStudios/TShock Class Usage Examples

Public Properties

Property Type Description
exists bool
extraSlot int?
eyeColor Color?
hair int?
hairColor Color?
hairDye byte
health int
hideVisuals bool[]
inventory TShockAPI.NetItem[]
mana int
maxHealth int
maxMana int
pantsColor Color?
questsCompleted int
shirtColor Color?
shoeColor Color?
skinColor Color?
skinVariant int?
spawnX int
spawnY int
underShirtColor Color?

Public Methods

Method Description
CopyCharacter ( TShockAPI.TSPlayer player ) : void

Copies a characters data to this object

PlayerData ( TShockAPI.TSPlayer player ) : Terraria
RestoreCharacter ( TShockAPI.TSPlayer player ) : void

Restores a player's character to the state stored in the database

StoreSlot ( int slot, int netID, byte prefix, int stack ) : void

Stores an item at the specific storage slot

Method Details

CopyCharacter() public method

Copies a characters data to this object
public CopyCharacter ( TShockAPI.TSPlayer player ) : void
player TShockAPI.TSPlayer
return void

PlayerData() public method

public PlayerData ( TShockAPI.TSPlayer player ) : Terraria
player TShockAPI.TSPlayer
return Terraria

RestoreCharacter() public method

Restores a player's character to the state stored in the database
public RestoreCharacter ( TShockAPI.TSPlayer player ) : void
player TShockAPI.TSPlayer
return void

StoreSlot() public method

Stores an item at the specific storage slot
public StoreSlot ( int slot, int netID, byte prefix, int stack ) : void
slot int
netID int
prefix byte
stack int
return void

Property Details

exists public property

public bool exists
return bool

extraSlot public property

public int? extraSlot
return int?

eyeColor public property

public Color? eyeColor
return Color?

hair public property

public int? hair
return int?

hairColor public property

public Color? hairColor
return Color?

hairDye public property

public byte hairDye
return byte

health public property

public int health
return int

hideVisuals public property

public bool[] hideVisuals
return bool[]

inventory public property

public NetItem[],TShockAPI inventory
return TShockAPI.NetItem[]

mana public property

public int mana
return int

maxHealth public property

public int maxHealth
return int

maxMana public property

public int maxMana
return int

pantsColor public property

public Color? pantsColor
return Color?

questsCompleted public property

public int questsCompleted
return int

shirtColor public property

public Color? shirtColor
return Color?

shoeColor public property

public Color? shoeColor
return Color?

skinColor public property

public Color? skinColor
return Color?

skinVariant public property

public int? skinVariant
return int?

spawnX public property

public int spawnX
return int

spawnY public property

public int spawnY
return int

underShirtColor public property

public Color? underShirtColor
return Color?