Interface: LeaderboardEntry

leaderboard.LeaderboardEntry

A score entry for a leaderboard.

Methods

getExtraData

getExtraData(): string

Get the developer-specified payload associated with the score, or null if one was not set.

Returns

string


getFormattedScore

getFormattedScore(): string

Get the score associated with the entry, formatted with the score format associated with the leaderboard.

Returns

string


getPlayer

getPlayer(): Player

Get information about the player associated with the entry.

Returns

Player


getRank

getRank(): number

Get the rank of the player’s score in the leaderboard.

Returns

number


getScore

getScore(): number

Get the score associated with the entry.

Returns

number


getTimestamp

getTimestamp(): number

Get the Unix timestamp of when the leaderboard entry was last updated.

Returns

number