LootLocker Unreal Server SDK 6.5.0
Server-side backend SDK for Unreal Engine
Loading...
Searching...
No Matches
Player

Detailed Description

Manage player profiles and accounts from the server.

Look up, create, and manage player records. Covers display-name assignment, account info lookups, and player deletion. For inventory see Asset Instances; for XP/levels see Player Progressions; for currency balances see Balances; for cloud file storage see Player Files.

See the LootLocker documentation.

Function Documentation

◆ CreatePlayer()

static FString ULootLockerServerForCpp::CreatePlayer ( ELootLockerServerCreatePlayerPlatforms  Platform,
const FString &  PlatformPlayerIdentifier,
const FLootLockerServerCreatePlayerResponseDelegate OnCompletedRequest 
)
static

Creates a player in LootLocker for the platform player.

This works by creating an unverified session for a player with the platform and identifier from the input. No verification is performed by LootLocker. If a player already exists, the player integer ID and ULID will be returned. If a player doesn't exist yet, one will be created before returning the same integer ID and ULID. If the player identifier isn't normally sent in the Game API session endpoint, you should ensure that you resolve it correctly from the original platform (eg steam) before calling this endpoint.

Parameters
PlatformThe platform of the player you want to create (e.g. "Steam", "Xbox", or "Guest")
PlatformPlayerIdentifierThe unique identifier for the player on the specified platform (e.g. a SteamID)
OnCompletedRequestDelegate for handling the server response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

◆ GetPlayerInfoFromGameSessionToken()

static FString ULootLockerServerForCpp::GetPlayerInfoFromGameSessionToken ( TArray< FString >  GameSessionTokensToLookUp,
const FLootLockerServerGetPlayerInfoFromGameSessionTokenResponseDelegate OnCompletedRequest 
)
static

Lookup players by their game session tokens Use this to verify in the server that the client player is who they say they are.

Parameters
GameSessionTokensToLookUpA list of game session tokens to lookup
OnCompletedRequestDelegate for handling the server response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

◆ LookupPlayerNames()

static FString ULootLockerServerForCpp::LookupPlayerNames ( TArray< FLootLockerServerPlayerNameLookupPair IdsToLookUp,
const FLootLockerServerPlayerNameLookupResponseDelegate OnCompletedRequest 
)
static

Lookup a number of player names from the player's id.

Parameters
IdsToLookUpA list of ids to lookup also specyfying for each id which type of id it is
OnCompletedRequestDelegate for handling the server response
Returns
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound

Functions

static FString ULootLockerServerForCpp::LookupPlayerNames (TArray< FLootLockerServerPlayerNameLookupPair > IdsToLookUp, const FLootLockerServerPlayerNameLookupResponseDelegate &OnCompletedRequest)
 Lookup a number of player names from the player's id.
 
static FString ULootLockerServerForCpp::GetPlayerInfoFromGameSessionToken (TArray< FString > GameSessionTokensToLookUp, const FLootLockerServerGetPlayerInfoFromGameSessionTokenResponseDelegate &OnCompletedRequest)
 Lookup players by their game session tokens Use this to verify in the server that the client player is who they say they are.
 
static FString ULootLockerServerForCpp::CreatePlayer (ELootLockerServerCreatePlayerPlatforms Platform, const FString &PlatformPlayerIdentifier, const FLootLockerServerCreatePlayerResponseDelegate &OnCompletedRequest)
 Creates a player in LootLocker for the platform player.