Enum LeaderboardValueFormat
How a raw leaderboard entry value should be rendered as display text.
Namespace: Serenity.Leaderboard.Infrastructure.Views
Assembly: Serenity.UnityLeaderboard.Infrastructure.dll
Syntax
public enum LeaderboardValueFormat
Remarks
Every member carries an explicit value because Unity serialises this enum by ordinal into
UnityLeaderboardViewDefinition.ValueFormat. Inserting a member anywhere but the end would
otherwise renumber the ones after it and silently re-format every leaderboard already authored in a
consumer's project. Pinned, new members can be added wherever they read best.
Fields
| Name | Description |
|---|---|
| Decimal | Fixed to an authored number of decimal places, carried alongside this member as
|
| Integer | Rounded to the nearest whole number (e.g. "1234"). |
| OneDecimal | Fixed to one decimal place (e.g. "12.3"). Superseded by Decimal. |
| TimeHoursMinutesSeconds | The value is a duration in seconds, rendered as "H:MM:SS" (e.g. "1:02:03"). |
| TimeMinutesSeconds | The value is a duration in seconds, rendered as "M:SS" (e.g. "1:23"). |
| TwoDecimals | Fixed to two decimal places (e.g. "12.34"). Superseded by Decimal. |