TogetherLeaderboard - TogetherGames/Public-Corona-Lua GitHub Wiki
Together::TogetherLeaderboard
The Leaderboard class represents a together Leaderboard.
number LeaderboardID
The ID of the Leaderboard.
number CreatorUserID
The ID of the User that created the GameInstance the Leaderboard is based on.
number RoomID
The ID of the Room the original GameInstance.
number SecondsSinceStart
The number of seconds since the original GameInstance was started.
number SecondsSinceFinish
The number of seconds since the original GameInstance was finished.
number MaxUsers
The max number of users in the original GameInstance.
number TurnIndex
The index of whose turn it last was.
number WinningUserID
The ID of the User that won the original GameInstance.
table LeaderboardUsers
Contains all the LeaderboardUsers that were playing the original GameInstance.
Gets the number of LeaderboardUsers currently managed internally.
Returns number
TogetherLeaderboard:GetLeaderboardUserCount( )
Gets the LeaderboardUser at the specified index if it exists, otherwise returns nil.
Returns TogetherLeaderboardUser
TogetherLeaderboard:GetLeaderboardUser( index )
number index
The index of the LeaderboardUser to find
--------------------------------------------------------------------------------Sorts the list of LeaderboardUsers by the specified property.
Returns void
TogetherLeaderboard:SortBy( propertyName )
string propertyName
The name of the property to sort the list of LeaderboardUsers by
--------------------------------------------------------------------------------Gets the LeaderboardUser that had won the original GameInstance if it exists, otherwise returns nil.
Returns TogetherLeaderboardUser
TogetherLeaderboard:GetWinningLeaderboardUser( )
Gets the Leaderboard's details.
Returns void
TogetherLeaderboard:GetDetails( friendsOnly, callbackFunc )
boolean friendsOnly
A boolean indicating whether only Together friend Users should be retrieve.
[function](#) callbackFuncThe function to call upon completion.
--------------------------------------------------------------------------------