These methods operate on items and item templates.
They are unrelated to the asset-based inventory API above (GetPlayerInventory, GetUniversalInventory, ...), which deals with assets and asset instances. The two share a URL prefix but are separate systems.
◆ DeletePlayerInventoryItem()
Delete a specified player item.
- Parameters
-
| PlayerID | The ID of the player for whom to delete the item |
| InventoryId | The unique identifier (ULID) of the inventory item instance to delete |
| 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
◆ GetPlayerInventoryItem()
Get a specified player item.
- Parameters
-
| PlayerID | The ID of the player for whom to get the item |
| InventoryId | The unique identifier (ULID) of the inventory item instance to get |
| 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
◆ GrantItemToPlayerInventory()
Grant an item to the specified player.
- Parameters
-
| PlayerID | The ID of the player for whom to grant the item |
| Request | The grant request containing the item template id, count and source |
| 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
◆ ListPlayerInventoryItems()
List the specified player's items.
- Parameters
-
| PlayerID | The ID of the player for whom to list items |
| Page | The page of results to fetch. Set to 0 to omit the parameter |
| PerPage | The number of results per page. Set to 0 to omit the parameter |
| 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
◆ MergePlayerInventoryItemStacks()
Merge two player item stacks.
- Parameters
-
| PlayerID | The ID of the player for whom to merge the item stacks |
| Request | The merge request containing the source and target inventory item instance ids |
| 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
◆ SplitPlayerInventoryItemStack()
Split a specified player item stack.
- Parameters
-
| PlayerID | The ID of the player for whom to split the item stack |
| InventoryId | The unique identifier (ULID) of the inventory item instance to split |
| Request | The split request containing the number of items to move into the new stack |
| 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
|
| static FString | ULootLockerServerForCpp::ListPlayerInventoryItems (int PlayerID, int Page, int PerPage, const FLootLockerServerListPlayerInventoryItemsResponseDelegate &OnCompletedRequest) |
| | List the specified player's items.
|
| |
| static FString | ULootLockerServerForCpp::GetPlayerInventoryItem (int PlayerID, const FString &InventoryId, const FLootLockerServerGetPlayerInventoryItemResponseDelegate &OnCompletedRequest) |
| | Get a specified player item.
|
| |
| static FString | ULootLockerServerForCpp::DeletePlayerInventoryItem (int PlayerID, const FString &InventoryId, const FLootLockerServerDeletePlayerInventoryItemResponseDelegate &OnCompletedRequest) |
| | Delete a specified player item.
|
| |
| static FString | ULootLockerServerForCpp::GrantItemToPlayerInventory (int PlayerID, const FLootLockerServerGrantItemRequest &Request, const FLootLockerServerGrantItemResponseDelegate &OnCompletedRequest) |
| | Grant an item to the specified player.
|
| |
| static FString | ULootLockerServerForCpp::SplitPlayerInventoryItemStack (int PlayerID, const FString &InventoryId, const FLootLockerServerSplitInventoryItemRequest &Request, const FLootLockerServerSplitPlayerInventoryItemStackResponseDelegate &OnCompletedRequest) |
| | Split a specified player item stack.
|
| |
| static FString | ULootLockerServerForCpp::MergePlayerInventoryItemStacks (int PlayerID, const FLootLockerServerMergeInventoryItemsRequest &Request, const FLootLockerServerMergePlayerInventoryItemStacksResponseDelegate &OnCompletedRequest) |
| | Merge two player item stacks.
|
| |