Tile - YServerData - Get Segment – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
Player leaderboard information (array) | Player leaderboard information (array) | ||
=== Availability === | |||
[[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === |
Revision as of 11:16, 12 November 2021
Get Segment(Scope, Leaderboard, Period, From, To, On result)
static getLeaderboardSegment(dataScope: YServerDataScope, leaderboardUid: String, leaderboardPeriod: YLeaderboardPeriod, from: number, to: number, onResult: (result: YLeaderboardSegmentResult) => void): void;
Parameters
dataScope
Whenever you are quering data from Game or Game Set
leaderboardUid
Target leaderboard variable (i.e score)
leaderboardPeriod
Target leaderboard time period
from
Leaderboard segment start (min 1)
to
Leaderboard segment start (max 500)
onResult
Player leaderboard information (array)
Availability
Description
Returns leaderbord info for selected leaderboard range, which can be then parsed for more data.
Notes
- Leaderboards are ranked from 1 to 500, further position are unranked.