C# Class TShockAPI.PlayerData

Afficher le fichier Open project: NyxStudios/TShock Class Usage Examples

Méthodes publiques

Свойство 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?

Méthodes publiques

Méthode 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 méthode

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

PlayerData() public méthode

public PlayerData ( TShockAPI.TSPlayer player ) : Terraria
player TShockAPI.TSPlayer
Résultat Terraria

RestoreCharacter() public méthode

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

StoreSlot() public méthode

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
Résultat void

Property Details

exists public_oe property

public bool exists
Résultat bool

extraSlot public_oe property

public int? extraSlot
Résultat int?

eyeColor public_oe property

public Color? eyeColor
Résultat Color?

hair public_oe property

public int? hair
Résultat int?

hairColor public_oe property

public Color? hairColor
Résultat Color?

hairDye public_oe property

public byte hairDye
Résultat byte

health public_oe property

public int health
Résultat int

hideVisuals public_oe property

public bool[] hideVisuals
Résultat bool[]

inventory public_oe property

public NetItem[],TShockAPI inventory
Résultat TShockAPI.NetItem[]

mana public_oe property

public int mana
Résultat int

maxHealth public_oe property

public int maxHealth
Résultat int

maxMana public_oe property

public int maxMana
Résultat int

pantsColor public_oe property

public Color? pantsColor
Résultat Color?

questsCompleted public_oe property

public int questsCompleted
Résultat int

shirtColor public_oe property

public Color? shirtColor
Résultat Color?

shoeColor public_oe property

public Color? shoeColor
Résultat Color?

skinColor public_oe property

public Color? skinColor
Résultat Color?

skinVariant public_oe property

public int? skinVariant
Résultat int?

spawnX public_oe property

public int spawnX
Résultat int

spawnY public_oe property

public int spawnY
Résultat int

underShirtColor public_oe property

public Color? underShirtColor
Résultat Color?