![]() |
LootLocker Unreal Server SDK 6.5.0
Server-side backend SDK for Unreal Engine
|
Server-side management of asset instances in players' inventories.
Grant, revoke, and query asset instances owned by players from the server. Instances are created when an asset is awarded and carry a unique Instance ID plus mutable per-instance state. This group covers server operations: listing a player's inventory, granting items, and inspecting rental states.
See the LootLocker documentation.
|
static |
Add the specified asset to the specified player's inventory (grant the asset) using an asset id which will equip that asset's default variation If the request is successfull, the returned list contains all assets that were granted to the player.
| PlayerID | The ID of the player for whom to add the asset |
| AssetID | The ID of the asset to add to the specified player's inventory |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Add the specified asset to the specified player's inventory (grant the asset) by specyfiying an asset id and which rental option id of the asset to equip If the request is successfull, the returned list contains all assets that were granted to the player.
| PlayerID | The ID of the player for whom to add the asset |
| AssetID | The ID of the asset to add to the specified player's inventory |
| RentalOptionID | The ID of the specific rental option of the specified asset to add to the specified player's inventory |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Add the specified asset to the specified player's inventory (grant the asset) by specifiying an asset id and which variation id of the asset to equip If the request is successfull, the returned list contains all assets that were granted to the player.
| PlayerID | The ID of the player for whom to add the asset |
| AssetID | The ID of the asset to add to the specified player's inventory |
| VariationID | The ID of the specific variation of the specified asset to add to the specified player's inventory |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Create a key value pair on the specified asset instance.
| PlayerID | The player ID of the player that this player asset instance belongs to |
| AssetInstanceID | The id of the asset instance on this player for which to complete the operation |
| Key | The key to add |
| Value | The value to set for the added key |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Bulk add (grant) and/or remove assets to/from the specified player's inventory Add assets by supplying a list of asset id's for which the default variation will be used If the request is successfull, the return will contain two lists; one specifying the id's of all the assets that were removed, one specifying all added assets.
| PlayerID | The ID of the player for whom to alter the inventory |
| AssetsToAdd | A list of assets to add to the specified player's inventory |
| AssetsToRemove | A list of asset instance id's of assets to remove from the specified player's inventory |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Bulk add (grant) and/or remove assets to/from the specified player's inventory Add assets by supplying a list of asset ids and rental option ids of those assets to use If the request is successfull, the return will contain two lists; one specifying the id's of all the assets that were removed, one specifying all added assets.
| PlayerID | The ID of the player for whom to alter the inventory |
| AssetsToAdd | A list of assets to add to the specified player's inventory |
| AssetsToRemove | A list of asset instance id's of assets to remove from the specified player's inventory |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Bulk add (grant) and/or remove assets to/from the specified player's inventory Add assets by supplying a list of asset ids and variation ids of those assets to use If the request is successfull, the return will contain two lists; one specifying the id's of all the assets that were removed, one specifying all added assets.
| PlayerID | The ID of the player for whom to alter the inventory |
| AssetsToAdd | A list of assets to add to the specified player's inventory |
| AssetsToRemove | A list of asset instance id's of assets to remove from the specified player's inventory |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Delete a key value pair from the specified asset instance by key value pair id.
| PlayerID | The player ID of the player that this player asset instance belongs to |
| AssetInstanceID | The id of the asset instance on this player for which to complete the operation |
| KeyValuePairID | The ID of the specific key value pair to delete |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Equip an asset instance to the specified player's default character's loadout using an asset id which will equip that asset's default variation If the request is successfull, the returned list contains the full loadout.
| PlayerID | The ID of the player for whom to equip the asset |
| AssetID | The ID of the asset to equip to the specified player's loadout |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Equip an asset instance to the specified player's default character's loadout by specifiying an asset id and which variation id of the asset to equip If the request is successfull, the returned list contains the full loadout.
| PlayerID | The ID of the player for whom to equip the asset |
| AssetID | The ID of the asset to equip to the specified player's loadout |
| AssetVariationID | The ID of the variation of the specified asset to equip to the specified player's loadout |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Equip an asset instance to the specified player's default character's loadout by specyfiying an asset id and which rental option id of the asset to equip If the request is successfull, the returned list contains the full loadout.
| PlayerID | The ID of the player for whom to equip the asset |
| AssetID | The ID of the asset to equip to the specified player's loadout |
| RentalOptionID | The ID of the rental option of the specified asset to equip to the specified player's loadout |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Equip the specified asset instance to the specified player's default character's loadout If the request is successfull, the returned list contains the full loadout.
| PlayerID | The ID of the player for whom to equip the asset |
| AssetInstanceID | The Instance ID of the asset to equip to the specified player's loadout |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Get a single Key Value Pair from the specified asset instance by key value pair id.
| PlayerID | The player ID of the player that this player asset instance belongs to |
| AssetInstanceID | The ID of the asset instance on this player for which to complete the operation |
| KeyValuePairID | The ID of the specific key value pair to get |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Get a list of key value pairs from the specified asset instance.
| PlayerID | The player ID of the player that this player asset instance belongs to |
| AssetInstanceID | The id of the asset instance on this player for which to complete the operation |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Get the specified player's default character's inventory according to the specified pagination parameters.
| PlayerID | The ID of the player for whom to get the inventory |
| Count | The number of inventory items to get. Must be a value between 1 and 200 |
| After | The id of the inventory item from where to start getting inventory items (non inclusive). Set to 0 to start from the first item |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Get the specified player's default character's inventory.
| PlayerID | The ID of the player for whom to get the inventory |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Get the specified player's default character's loadout.
| PlayerID | The ID of the player for whom to get the loadout |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Get a list of assets that are available for all player's in the game.
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Unequip an asset instance from the specified player's default character's loadout If the request is successfull, the returned list contains the full loadout.
| PlayerID | The ID of the player for whom to unequip the asset |
| InstanceID | The Instance ID of the asset in the specified player's loadout to unequip |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Update a single key value pair on the specified asset instance by key value pair id.
| PlayerID | The player ID of the player that this player asset instance belongs to |
| AssetInstanceID | The id of the asset instance on this player for which to complete the operation |
| KeyValuePairID | The ID of the specific key value pair to update |
| Key | The key to set for the key value pair |
| Value | The value to set for the updated key |
| OnCompletedRequest | Delegate for handling the server response |
|
static |
Create or update a list of key value pairs on the specified asset instance.
| PlayerID | The player ID of the player that this player asset instance belongs to |
| AssetInstanceID | The id of the asset instance on this player for which to complete the operation |
| KeyValuePairs | A list of key value pairs to update |
| OnCompletedRequest | Delegate for handling the server response |
Functions | |
| static FString | ULootLockerServerForCpp::GetUniversalInventory (const FLootLockerServerGetUniversalInventoryResponseDelegate &OnCompletedRequest) |
| Get a list of assets that are available for all player's in the game. | |
| static FString | ULootLockerServerForCpp::GetPlayerInventory (int PlayerID, const FLootLockerServerGetPlayerInventoryResponseDelegate &OnCompletedRequest) |
| Get the specified player's default character's inventory. | |
| static FString | ULootLockerServerForCpp::GetPaginatedPlayerInventory (int PlayerID, int Count, int After, const FLootLockerServerGetPlayerInventoryResponseDelegate &OnCompletedRequest) |
| Get the specified player's default character's inventory according to the specified pagination parameters. | |
| static FString | ULootLockerServerForCpp::GetPlayerLoadout (int PlayerID, const FLootLockerServerGetPlayerLoadoutResponseDelegate &OnCompletedRequest) |
| Get the specified player's default character's loadout. | |
| static FString | ULootLockerServerForCpp::EquipAssetToPlayerLoadoutByAssetId (int PlayerID, int AssetID, const FLootLockerServerEquipAssetToPlayerLoadoutResponseDelegate &OnCompletedRequest) |
| Equip an asset instance to the specified player's default character's loadout using an asset id which will equip that asset's default variation If the request is successfull, the returned list contains the full loadout. | |
| static FString | ULootLockerServerForCpp::EquipAssetToPlayerLoadoutByAssetInstanceId (int PlayerID, int AssetInstanceID, const FLootLockerServerEquipAssetToPlayerLoadoutResponseDelegate &OnCompletedRequest) |
| Equip the specified asset instance to the specified player's default character's loadout If the request is successfull, the returned list contains the full loadout. | |
| static FString | ULootLockerServerForCpp::EquipAssetToPlayerLoadoutByAssetIdAndAssetVariationId (int PlayerID, int AssetID, int AssetVariationID, const FLootLockerServerEquipAssetToPlayerLoadoutResponseDelegate &OnCompletedRequest) |
| Equip an asset instance to the specified player's default character's loadout by specifiying an asset id and which variation id of the asset to equip If the request is successfull, the returned list contains the full loadout. | |
| static FString | ULootLockerServerForCpp::EquipAssetToPlayerLoadoutByAssetIdAndRentalOptionId (int PlayerID, int AssetID, int RentalOptionID, const FLootLockerServerEquipAssetToPlayerLoadoutResponseDelegate &OnCompletedRequest) |
| Equip an asset instance to the specified player's default character's loadout by specyfiying an asset id and which rental option id of the asset to equip If the request is successfull, the returned list contains the full loadout. | |
| static FString | ULootLockerServerForCpp::UnequipAssetFromPlayerLoadout (int PlayerID, int InstanceID, const FLootLockerServerUnequipAssetFromPlayerLoadoutResponseDelegate &OnCompletedRequest) |
| Unequip an asset instance from the specified player's default character's loadout If the request is successfull, the returned list contains the full loadout. | |
| static FString | ULootLockerServerForCpp::AddAssetToPlayerInventoryByAssetID (int PlayerID, int AssetID, const FLootLockerServerAddAssetToPlayerInventoryResponseDelegate &OnCompletedRequest) |
| Add the specified asset to the specified player's inventory (grant the asset) using an asset id which will equip that asset's default variation If the request is successfull, the returned list contains all assets that were granted to the player. | |
| static FString | ULootLockerServerForCpp::AddAssetToPlayerInventoryByAssetIDAndVariationID (int PlayerID, int AssetID, int VariationID, const FLootLockerServerAddAssetToPlayerInventoryResponseDelegate &OnCompletedRequest) |
| Add the specified asset to the specified player's inventory (grant the asset) by specifiying an asset id and which variation id of the asset to equip If the request is successfull, the returned list contains all assets that were granted to the player. | |
| static FString | ULootLockerServerForCpp::AddAssetToPlayerInventoryByAssetIDAndRentalOptionID (int PlayerID, int AssetID, int RentalOptionID, const FLootLockerServerAddAssetToPlayerInventoryResponseDelegate &OnCompletedRequest) |
| Add the specified asset to the specified player's inventory (grant the asset) by specyfiying an asset id and which rental option id of the asset to equip If the request is successfull, the returned list contains all assets that were granted to the player. | |
| static FString | ULootLockerServerForCpp::AlterPlayerInventoryAddAssetsByAssetID (int PlayerID, const TArray< FLootLockerServerAssetByAssetIdRequest > &AssetsToAdd, const TArray< int > AssetsToRemove, const FLootLockerServerAlterPlayerInventoryResponseDelegate &OnCompletedRequest) |
| Bulk add (grant) and/or remove assets to/from the specified player's inventory Add assets by supplying a list of asset id's for which the default variation will be used If the request is successfull, the return will contain two lists; one specifying the id's of all the assets that were removed, one specifying all added assets. | |
| static FString | ULootLockerServerForCpp::AlterPlayerInventoryAddAssetsByAssetIDAndVariationID (int PlayerID, const TArray< FLootLockerServerAssetByAssetIdAndVariationIdRequest > &AssetsToAdd, const TArray< int > AssetsToRemove, const FLootLockerServerAlterPlayerInventoryResponseDelegate &OnCompletedRequest) |
| Bulk add (grant) and/or remove assets to/from the specified player's inventory Add assets by supplying a list of asset ids and variation ids of those assets to use If the request is successfull, the return will contain two lists; one specifying the id's of all the assets that were removed, one specifying all added assets. | |
| static FString | ULootLockerServerForCpp::AlterPlayerInventoryAddAssetsByAssetIDAndRentalOptionID (int PlayerID, const TArray< FLootLockerServerAssetByAssetIdAndRentalOptionIdRequest > &AssetsToAdd, const TArray< int > AssetsToRemove, const FLootLockerServerAlterPlayerInventoryResponseDelegate &OnCompletedRequest) |
| Bulk add (grant) and/or remove assets to/from the specified player's inventory Add assets by supplying a list of asset ids and rental option ids of those assets to use If the request is successfull, the return will contain two lists; one specifying the id's of all the assets that were removed, one specifying all added assets. | |
| static FString | ULootLockerServerForCpp::GetKeyValuePairsFromAssetInstance (int PlayerID, int AssetInstanceID, const FLootLockerServerAssetInstanceKeyValuePairsListResponseDelegate &OnCompletedRequest) |
| Get a list of key value pairs from the specified asset instance. | |
| static FString | ULootLockerServerForCpp::GetAssetInstanceKeyValuePairFromAssetInstanceById (int PlayerID, int AssetInstanceID, int KeyValuePairID, const FLootLockerServerAssetInstanceKeyValuePairItemResponseDelegate &OnCompletedRequest) |
| Get a single Key Value Pair from the specified asset instance by key value pair id. | |
| static FString | ULootLockerServerForCpp::AddKeyValuePairToAssetInstance (int PlayerID, int AssetInstanceID, const FString Key, FString Value, const FLootLockerServerAssetInstanceKeyValuePairsListResponseDelegate &OnCompletedRequest) |
| Create a key value pair on the specified asset instance. | |
| static FString | ULootLockerServerForCpp::UpdateKeyValuePairsOnAssetInstance (int PlayerID, int AssetInstanceID, TArray< FLootLockerServerAssetStorageKeyValueSet > KeyValuePairs, const FLootLockerServerAssetInstanceKeyValuePairsListResponseDelegate &OnCompletedRequest) |
| Create or update a list of key value pairs on the specified asset instance. | |
| static FString | ULootLockerServerForCpp::UpdateKeyValuePairOnAssetInstanceById (int PlayerID, int AssetInstanceID, int KeyValuePairID, const FString Key, FString Value, const FLootLockerServerAssetInstanceKeyValuePairItemResponseDelegate &OnCompletedRequest) |
| Update a single key value pair on the specified asset instance by key value pair id. | |
| static FString | ULootLockerServerForCpp::DeleteKeyValuePairFromAssetInstanceById (int PlayerID, int AssetInstanceID, int KeyValuePairID, const FLootLockerServerAssetInstanceKeyValuePairsListResponseDelegate &OnCompletedRequest) |
| Delete a key value pair from the specified asset instance by key value pair id. | |