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.
◆ CreatePlayer()
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
-
| Platform | The platform of the player you want to create (e.g. "Steam", "Xbox", or "Guest") |
| PlatformPlayerIdentifier | The unique identifier for the player on the specified platform (e.g. a SteamID) |
| OnCompletedRequest | Delegate 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()
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
-
| GameSessionTokensToLookUp | A list of game session tokens to lookup |
| OnCompletedRequest | Delegate 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()
Lookup a number of player names from the player's id.
- Parameters
-
| IdsToLookUp | A list of ids to lookup also specyfying for each id which type of id it is |
| OnCompletedRequest | Delegate 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