Skip to main content

PlayerData

A struct in Root.Township, the global namespace.

A leaderboard entry: player name and time in seconds. Converts to PlayerDataInfo for display.

Fields​

MemberWhat it is
string playerNameThe player's name.
int timeInSecondsThe time in seconds.

Properties​

MemberWhat it is
string Message { get; }The time as hh:mm:ss.

Methods​

MemberWhat 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: