Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

LeaderboardScore

LeaderboardScore<Options> = Options extends object ? number | { delta: number; id: ScoreId; } : Options extends object ? { readonly [Field in Options["score"][number] as Field["name"]]: number } : number

The score a board takes: a number for one field, a record of its fields for several, and on a total a whole-number delta, with the id of the event that earned it where the game may submit it again.

Type Parameter
Options extends LeaderboardOptions