PlayerData
A struct in Root.Township, the global namespace.
A leaderboard entry: player name and time in seconds. Converts to PlayerDataInfo for display.
- Listed in Global namespace: P
Fields
| Member | What it is |
|---|---|
string playerName | The player's name. |
int timeInSeconds | The time in seconds. |
Properties
| Member | What it is |
|---|---|
string Message { get; } | The time as hh:mm:ss. |
Methods
| Member | What it is |
|---|---|
static PlayerDataInfo op_Implicit(PlayerData data) | Converts to PlayerDataInfo with the formatted time, name and seconds. |
void Serialize(Stream stream) | Reads or writes the name and the time (0 to 32767 seconds). |
Used in
Members of other types that take, return or hold a PlayerData: