LootLocker Unreal Server SDK 6.7.1
Server-side backend SDK for Unreal Engine
Loading...
Searching...
No Matches
Items

Detailed Description

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.

Function Documentation

◆ DeletePlayerInventoryItem()

static FString ULootLockerServerForCpp::DeletePlayerInventoryItem ( int  PlayerID,
const FString &  InventoryId,
const FLootLockerServerDeletePlayerInventoryItemResponseDelegate &  OnCompletedRequest 
)
static

Delete a specified player item.

Parameters
PlayerIDThe ID of the player for whom to delete the item
InventoryIdThe unique identifier (ULID) of the inventory item instance to delete
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

◆ GetPlayerInventoryItem()

static FString ULootLockerServerForCpp::GetPlayerInventoryItem ( int  PlayerID,
const FString &  InventoryId,
const FLootLockerServerGetPlayerInventoryItemResponseDelegate &  OnCompletedRequest 
)
static

Get a specified player item.

Parameters
PlayerIDThe ID of the player for whom to get the item
InventoryIdThe unique identifier (ULID) of the inventory item instance to get
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

◆ GrantItemToPlayerInventory()

static FString ULootLockerServerForCpp::GrantItemToPlayerInventory ( int  PlayerID,
const FLootLockerServerGrantItemRequest &  Request,
const FLootLockerServerGrantItemResponseDelegate &  OnCompletedRequest 
)
static

Grant an item to the specified player.

Parameters
PlayerIDThe ID of the player for whom to grant the item
RequestThe grant request containing the item template id, count and source
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

◆ ListPlayerInventoryItems()

static FString ULootLockerServerForCpp::ListPlayerInventoryItems ( int  PlayerID,
int  Page,
int  PerPage,
const FLootLockerServerListPlayerInventoryItemsResponseDelegate &  OnCompletedRequest 
)
static

List the specified player's items.

Parameters
PlayerIDThe ID of the player for whom to list items
PageThe page of results to fetch. Set to 0 to omit the parameter
PerPageThe number of results per page. Set to 0 to omit the parameter
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

◆ MergePlayerInventoryItemStacks()

static FString ULootLockerServerForCpp::MergePlayerInventoryItemStacks ( int  PlayerID,
const FLootLockerServerMergeInventoryItemsRequest &  Request,
const FLootLockerServerMergePlayerInventoryItemStacksResponseDelegate &  OnCompletedRequest 
)
static

Merge two player item stacks.

Parameters
PlayerIDThe ID of the player for whom to merge the item stacks
RequestThe merge request containing the source and target inventory item instance ids
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

◆ SplitPlayerInventoryItemStack()

static FString ULootLockerServerForCpp::SplitPlayerInventoryItemStack ( int  PlayerID,
const FString &  InventoryId,
const FLootLockerServerSplitInventoryItemRequest &  Request,
const FLootLockerServerSplitPlayerInventoryItemStackResponseDelegate &  OnCompletedRequest 
)
static

Split a specified player item stack.

Parameters
PlayerIDThe ID of the player for whom to split the item stack
InventoryIdThe unique identifier (ULID) of the inventory item instance to split
RequestThe split request containing the number of items to move into the new stack
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::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.