![]() |
LootLocker Unreal SDK 10.4.0
Game backend SDK for Unreal Engine
|
Rank players or any custom key by score, with optional resets and rewards.
Two leaderboard types are supported: Player Type (scores tied to player IDs — traditional rankings) and Generic Type (scores tied to custom string keys — rank UGC, teams, or any entity). Metadata can be stored alongside each score for contextual enrichment. Periodic resets can be configured in the console to clear rankings on a schedule and automatically distribute rewards to top-placed players.
See the LootLocker documentation.
| typedef void(* FLootLockerGetAllMemberRanksResponseDelegate) (FLootLockerGetAllMemberRanksResponse) |
C++ response callback delegate; receives an FLootLockerGetAllMemberRanksResponse result.
| typedef void(* FLootLockerGetByListOfMembersResponseDelegate) (FLootLockerGetByListOfMembersResponse) |
C++ response callback delegate; receives an FLootLockerGetByListOfMembersResponse result.
| typedef void(* FLootLockerGetMemberRankResponseDelegate) (FLootLockerGetMemberRankResponse) |
C++ response callback delegate; receives an FLootLockerGetMemberRankResponse result.
| typedef void(* FLootLockerGetScoreListResponseDelegate) (FLootLockerGetScoreListResponse) |
C++ response callback delegate; receives an FLootLockerGetScoreListResponse result.
| typedef void(* FLootLockerLeaderboardArchiveDetailResponseDelegate) (FLootLockerLeaderboardArchiveDetailsResponse) |
C++ response callback delegate; receives an FLootLockerLeaderboardArchiveDetailsResponse result.
| typedef void(* FLootLockerLeaderboardArchiveResponseDelegate) (FLootLockerLeaderboardArchiveResponse) |
C++ response callback delegate; receives an FLootLockerLeaderboardArchiveResponse result.
| typedef void(* FLootLockerLeaderboardDetailsResponseDelegate) (FLootLockerLeaderboardDetailsResponse) |
C++ response callback delegate; receives an FLootLockerLeaderboardDetailsResponse result.
| typedef void(* FLootLockerListLeaderboardsResponseDelegate) (FLootLockerListLeaderboardsResponse) |
C++ response callback delegate; receives an FLootLockerListLeaderboardsResponse result.
| typedef void(* FLootLockerSubmitScoreResponseDelegate) (FLootLockerSubmitScoreResponse) |
C++ response callback delegate; receives an FLootLockerSubmitScoreResponse result.
|
strong |
|
static |
List all leaderboards with this member's rank/score (and player info for player leaderboards).
Metadata included if enabled.
| MemberId | Member/player id |
| Count | Members per page |
| After | Pagination cursor |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
Get ranks for multiple members.
If the leaderboard is player type, player info is included.
| Members | Member/player ids to query |
| LeaderboardKey | Leaderboard key |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
inlinestatic |
Get a leaderboard archive (all entries).
| Key | Leaderboard key |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
Get a leaderboard archive (paginated entries with ranks, scores, rewards).
| Key | Leaderboard key |
| Count | Optional: Entry count |
| After | Optional: Pagination cursor |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
Get leaderboard details (schedule, rewards, reward details).
| LeaderboardKey | Leaderboard key |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
Get rank for a single member.
If the leaderboard is player type, player info is included.
| LeaderboardKey | Leaderboard key |
| MemberId | Member/player id |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
List ranked members (paginated).
Max 2000 per request. Player info included for player leaderboards.
| LeaderboardKey | Leaderboard key |
| Count | Members per page |
| After | Pagination cursor |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
List ranked members starting from top (initial page).
Max 2000. Player info included for player leaderboards.
| LeaderboardKey | Leaderboard key |
| Count | Members to return |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
Increment an existing score by an amount (positive or negative).
| MemberId | Member/player id (blank for player leaderboard default) |
| LeaderboardKey | Leaderboard key |
| Amount | Amount to add (or subtract if negative) |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
List archived versions of a leaderboard.
| LeaderboardKey | Leaderboard key |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
inlinestatic |
List leaderboards with their details.
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
List leaderboards (paginated) with details.
| Count | Optional: Number of items to retrieve |
| After | Optional: Pagination cursor id to start after |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
Query the projected rank for a hypothetical score (does not submit).
| LeaderboardKey | Leaderboard key |
| Score | Score value to evaluate |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
|
static |
Submit a score for a member.
| MemberId | Member/player id (blank for player leaderboard to use default) |
| LeaderboardKey | Leaderboard key |
| Score | Score value |
| Metadata | Optional: Metadata (if enabled for leaderboard) |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
Enumerations | |
| enum class | ELootLockerLeaderboardRewardEntityKind : uint8 { ELootLockerLeaderboardRewardEntityKind::Asset = 0 , ELootLockerLeaderboardRewardEntityKind::Currency = 1 , ELootLockerLeaderboardRewardEntityKind::Progression_Points = 2 , ELootLockerLeaderboardRewardEntityKind::Progression_Reset = 3 , ELootLockerLeaderboardRewardEntityKind::Group = 4 } |
| Entity kinds that can be given as leaderboard rewards. More... | |
Functions | |
| static FString | ULootLockerSDKManager::ListLeaderboards (const FLootLockerListLeaderboardsResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| List leaderboards with their details. | |
| static FString | ULootLockerSDKManager::ListLeaderboards (int Count, int After, const FLootLockerListLeaderboardsResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| List leaderboards (paginated) with details. | |
| static FString | ULootLockerSDKManager::GetMemberRank (FString LeaderboardKey, FString MemberId, const FLootLockerGetMemberRankResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| Get rank for a single member. | |
| static FString | ULootLockerSDKManager::GetByListOfMembers (TArray< FString > Members, FString LeaderboardKey, const FLootLockerGetByListOfMembersResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| Get ranks for multiple members. | |
| static FString | ULootLockerSDKManager::GetScoreList (FString LeaderboardKey, int Count, int After, const FLootLockerGetScoreListResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| List ranked members (paginated). | |
| static FString | ULootLockerSDKManager::GetScoreListInitial (FString LeaderboardKey, int Count, const FLootLockerGetScoreListResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| List ranked members starting from top (initial page). | |
| static FString | ULootLockerSDKManager::SubmitScore (FString MemberId, const FString LeaderboardKey, const int Score, FString Metadata, const FLootLockerSubmitScoreResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| Submit a score for a member. | |
| static FString | ULootLockerSDKManager::QueryScore (const FString LeaderboardKey, const int Score, const FLootLockerSubmitScoreResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| Query the projected rank for a hypothetical score (does not submit). | |
| static FString | ULootLockerSDKManager::IncrementScore (FString MemberId, const FString LeaderboardKey, const int Amount, const FLootLockerSubmitScoreResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| Increment an existing score by an amount (positive or negative). | |
| static FString | ULootLockerSDKManager::GetAllMemberRanks (FString MemberId, const int Count, const int After, const FLootLockerGetAllMemberRanksResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| List all leaderboards with this member's rank/score (and player info for player leaderboards). | |
| static FString | ULootLockerSDKManager::ListLeaderboardArchive (const FString &LeaderboardKey, const FLootLockerLeaderboardArchiveResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| List archived versions of a leaderboard. | |
| static FString | ULootLockerSDKManager::GetLeaderboardArchive (const FString &Key, int Count, const FString &After, const FLootLockerLeaderboardArchiveDetailResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| Get a leaderboard archive (paginated entries with ranks, scores, rewards). | |
| static FString | ULootLockerSDKManager::GetLeaderboardArchive (const FString &Key, const FLootLockerLeaderboardArchiveDetailResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| Get a leaderboard archive (all entries). | |
| static FString | ULootLockerSDKManager::GetLeaderboardDetails (const FString &LeaderboardKey, const FLootLockerLeaderboardDetailsResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| Get leaderboard details (schedule, rewards, reward details). | |