C# Class TShockAPI.PlayerData

Datei anzeigen 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_oe property

public bool exists
return bool

extraSlot public_oe property

public int? extraSlot
return int?

eyeColor public_oe property

public Color? eyeColor
return Color?

hair public_oe property

public int? hair
return int?

hairColor public_oe property

public Color? hairColor
return Color?

hairDye public_oe property

public byte hairDye
return byte

health public_oe property

public int health
return int

hideVisuals public_oe property

public bool[] hideVisuals
return bool[]

inventory public_oe property

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

mana public_oe property

public int mana
return int

maxHealth public_oe property

public int maxHealth
return int

maxMana public_oe property

public int maxMana
return int

pantsColor public_oe property

public Color? pantsColor
return Color?

questsCompleted public_oe property

public int questsCompleted
return int

shirtColor public_oe property

public Color? shirtColor
return Color?

shoeColor public_oe property

public Color? shoeColor
return Color?

skinColor public_oe property

public Color? skinColor
return Color?

skinVariant public_oe property

public int? skinVariant
return int?

spawnX public_oe property

public int spawnX
return int

spawnY public_oe property

public int spawnY
return int

underShirtColor public_oe property

public Color? underShirtColor
return Color?