Leaderboards
Read more about the Leaderboards system in Hiro here.
Functions #
Get #
Retrieve the leaderboard configuration list for a user. The configuration is personalized for the given user if a personalizer is configured on the system.
| |
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | context.Context | The request context. |
logger | runtime.Logger | Logger instance. |
nk | runtime.NakamaModule | Nakama module. |
userID | string | The ID of the user to retrieve configuration for. |
Returns
| Return | Type | Description |
|---|---|---|
leaderboardConfigList | *hiro.LeaderboardConfigList | The (optionally personalized) leaderboard configuration list. |
err | error | Non-nil if an error occurred. |
