Свойство | Тип | Описание | |
---|---|---|---|
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? |
Метод | Описание | |
---|---|---|
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
|
public CopyCharacter ( TShockAPI.TSPlayer player ) : void | ||
player | TShockAPI.TSPlayer | |
Результат | void |
public PlayerData ( TShockAPI.TSPlayer player ) : Terraria | ||
player | TShockAPI.TSPlayer | |
Результат | Terraria |
public RestoreCharacter ( TShockAPI.TSPlayer player ) : void | ||
player | TShockAPI.TSPlayer | |
Результат | void |
public StoreSlot ( int slot, int netID, byte prefix, int stack ) : void | ||
slot | int | |
netID | int | |
prefix | byte | |
stack | int | |
Результат | void |