LootLocker Unity SDK 8.0.0
Game backend SDK for Unity
Loading...
Searching...
No Matches
Player Storage

Detailed Description

Simple key-value store scoped to the player.

Read, write, and delete named string values persisted server-side.

Function Documentation

◆ DeleteKeyValue()

static void LootLocker.Requests.LootLockerSDKManager.DeleteKeyValue ( string  keyToDelete,
Action< LootLockerGetPersistentStorageResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Delete a key from the player storage for the currently active player.

Note: The Player Metadata feature will over time replace Player Persistent Storage. If you are not already deeply integrated with the Player Persistent Storage in your game, consider moving to Player Metadata.

Parameters
keyToDeleteThe key/value key(name) to delete
onCompleteonComplete Action for handling the response of type LootLockerGetPersistentStorageResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetEntirePersistentStorage() [1/2]

static void LootLocker.Requests.LootLockerSDKManager.GetEntirePersistentStorage ( Action< LootLockerGetPersistentStorageResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get the player storage for the currently active player (key/values).

Note: The Player Metadata feature will over time replace Player Persistent Storage. If you are not already deeply integrated with the Player Persistent Storage in your game, consider moving to Player Metadata.

Parameters
onCompleteonComplete Action for handling the response of type LootLockerGetPersistentStorageResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetEntirePersistentStorage() [2/2]

static void LootLocker.Requests.LootLockerSDKManager.GetEntirePersistentStorage ( Action< LootLockerGetPersistentStorageResponseDictionary >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get the player storage as a Dictionary<string, string> for the currently active player (key/values).

Note: The Player Metadata feature will over time replace Player Persistent Storage. If you are not already deeply integrated with the Player Persistent Storage in your game, consider moving to Player Metadata.

Parameters
onCompleteonComplete Action for handling the response of type LootLockerGetPersistentStorageResponseDictionary
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetOtherPlayersPublicKeyValuePairs()

static void LootLocker.Requests.LootLockerSDKManager.GetOtherPlayersPublicKeyValuePairs ( string  otherPlayerId,
Action< LootLockerGetPersistentStorageResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get the public player storage(key/values) for a specific player.

Note: The Player Metadata feature will over time replace Player Persistent Storage. If you are not already deeply integrated with the Player Persistent Storage in your game, consider moving to Player Metadata.

Parameters
otherPlayerIdThe ID of the player to retrieve the public ley/values for
onCompleteonComplete Action for handling the response of type LootLockerGetPersistentStorageResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetSingleKeyPersistentStorage()

static void LootLocker.Requests.LootLockerSDKManager.GetSingleKeyPersistentStorage ( string  key,
Action< LootLockerGetPersistentSingle >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Get a specific key from the player storage for the currently active player.

Note: The Player Metadata feature will over time replace Player Persistent Storage. If you are not already deeply integrated with the Player Persistent Storage in your game, consider moving to Player Metadata.

Parameters
keyName of the key
onCompleteonComplete Action for handling the response of type LootLockerGetPersistentSingle
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ UpdateOrCreateKeyValue() [1/3]

static void LootLocker.Requests.LootLockerSDKManager.UpdateOrCreateKeyValue ( LootLockerGetPersistentStorageRequest  data,
Action< LootLockerGetPersistentStorageResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Update or create multiple key/value pairs in the player storage for the currently active player.

Note: The Player Metadata feature will over time replace Player Persistent Storage. If you are not already deeply integrated with the Player Persistent Storage in your game, consider moving to Player Metadata.

Parameters
dataA LootLockerGetPersistentStorageRequest with multiple keys
onCompleteonComplete Action for handling the response of type LootLockerGetPersistentStorageResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ UpdateOrCreateKeyValue() [2/3]

static void LootLocker.Requests.LootLockerSDKManager.UpdateOrCreateKeyValue ( string  key,
string  value,
Action< LootLockerGetPersistentStorageResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Update or create a key/value pair in the player storage for the currently active player.

Note: The Player Metadata feature will over time replace Player Persistent Storage. If you are not already deeply integrated with the Player Persistent Storage in your game, consider moving to Player Metadata.

Parameters
keyName of the key
valueValue of the key
onCompleteonComplete Action for handling the response of type LootLockerGetPersistentStorageResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ UpdateOrCreateKeyValue() [3/3]

static void LootLocker.Requests.LootLockerSDKManager.UpdateOrCreateKeyValue ( string  key,
string  value,
bool  isPublic,
Action< LootLockerGetPersistentStorageResponse >  onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Update or create a key/value pair in the player storage for the currently active player.

Note: The Player Metadata feature will over time replace Player Persistent Storage. If you are not already deeply integrated with the Player Persistent Storage in your game, consider moving to Player Metadata.

Parameters
keyName of the key
valueValue of the key
isPublicIs the key public?
onCompleteonComplete Action for handling the response of type LootLockerGetPersistentStorageResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

Functions

static void LootLocker.Requests.LootLockerSDKManager.GetEntirePersistentStorage (Action< LootLockerGetPersistentStorageResponse > onComplete, string forPlayerWithUlid=null)
 Get the player storage for the currently active player (key/values).
 
static void LootLocker.Requests.LootLockerSDKManager.GetEntirePersistentStorage (Action< LootLockerGetPersistentStorageResponseDictionary > onComplete, string forPlayerWithUlid=null)
 Get the player storage as a Dictionary<string, string> for the currently active player (key/values).
 
static void LootLocker.Requests.LootLockerSDKManager.GetSingleKeyPersistentStorage (string key, Action< LootLockerGetPersistentSingle > onComplete, string forPlayerWithUlid=null)
 Get a specific key from the player storage for the currently active player.
 
static void LootLocker.Requests.LootLockerSDKManager.UpdateOrCreateKeyValue (string key, string value, Action< LootLockerGetPersistentStorageResponse > onComplete, string forPlayerWithUlid=null)
 Update or create a key/value pair in the player storage for the currently active player.
 
static void LootLocker.Requests.LootLockerSDKManager.UpdateOrCreateKeyValue (string key, string value, bool isPublic, Action< LootLockerGetPersistentStorageResponse > onComplete, string forPlayerWithUlid=null)
 Update or create a key/value pair in the player storage for the currently active player.
 
static void LootLocker.Requests.LootLockerSDKManager.UpdateOrCreateKeyValue (LootLockerGetPersistentStorageRequest data, Action< LootLockerGetPersistentStorageResponse > onComplete, string forPlayerWithUlid=null)
 Update or create multiple key/value pairs in the player storage for the currently active player.
 
static void LootLocker.Requests.LootLockerSDKManager.DeleteKeyValue (string keyToDelete, Action< LootLockerGetPersistentStorageResponse > onComplete, string forPlayerWithUlid=null)
 Delete a key from the player storage for the currently active player.
 
static void LootLocker.Requests.LootLockerSDKManager.GetOtherPlayersPublicKeyValuePairs (string otherPlayerId, Action< LootLockerGetPersistentStorageResponse > onComplete, string forPlayerWithUlid=null)
 Get the public player storage(key/values) for a specific player.