SScoreRank
ClientTypes
On this classLevel
Members 5
| Property | Level | The level of current activity. |
| Property | AllTimeLeaderboard | The AllTimeLeaderboard of current activity. |
| Property | DailyLeaderboard | The daily Leaderboard of current activity. |
| Property | AllTimePlayerRecord | The AllTimePlayerRecord of current activity. |
| Property | DailyPlayerRecord | The daily player records of current activity. |
Properties
LevelRead only
int Level {get; }
The level of current activity.
Example
Lua
Space.Activity.FinishActivity(99956,100,0,function (rank)
Space.Log(rank.Level)
end)
AllTimeLeaderboardRead only
SScore[] AllTimeLeaderboard {get; }
The AllTimeLeaderboard of current activity.
Example
Lua
Space.Activity.FinishActivity(99956,100,0,function (rank)
local leaderBoard=rank.AllTimeLeaderboard
for i=1,#leaderBoard do
Space.Log(leaderBoard[i].Rank)
Space.Log(leaderBoard[i].Score)
Space.Log(leaderBoard[i].Username)
end
end)
DailyLeaderboardRead only
SScore[] DailyLeaderboard {get; }
The daily Leaderboard of current activity.
Example
Lua
Space.Activity.FinishActivity(99956,100,0,function (rank)
local leaderBoard=rank.DailyLeaderboard
for i=1,#leaderBoard do
Space.Log(leaderBoard[i].Rank)
Space.Log(leaderBoard[i].Score)
Space.Log(leaderBoard[i].Username)
end
end)
AllTimePlayerRecordRead only
SScore AllTimePlayerRecord {get; }
The AllTimePlayerRecord of current activity.
Example
Lua
Space.Activity.FinishActivity(99956,100,0,function (rank)
local record=rank.AllTimePlayerRecord
Space.Log(record.Rank)
Space.Log(record.Score)
Space.Log(record.Username)
end)
DailyPlayerRecordRead only
SScore DailyPlayerRecord {get; }
The daily player records of current activity.
Example
Lua
Space.Activity.FinishActivity(99956,100,0,function (rank)
local record=rank.DailyPlayerRecord
Space.Log(record.Rank)
Space.Log(record.Score)
Space.Log(record.Username)
end)



