![]() |
LootLocker Unreal Server SDK 6.7.1
Server-side backend SDK for Unreal Engine
|
A single item instance in a player's inventory. More...
#include <LootLockerServerItemRequestHandler.h>
Data Fields | |
| FString | Id |
| The unique identifier (ULID) of this inventory item instance. | |
| int | Player_id = 0 |
| The id of the player that owns this inventory item. | |
| FString | Item_template_id |
| The unique identifier (ULID) of the item template this item is based on. | |
| ELootLockerServerItemType | Item_type = ELootLockerServerItemType::Unknown |
| The type of this item (instanced or stackable) | |
| bool | Consumable = false |
| Whether this item is consumable. | |
| int | Count = 0 |
| The count of this item in the stack. | |
| FString | Source |
| The source that granted this item. | |
| FDateTime | Created_at = FDateTime(0) |
| The time this item instance was created. | |
| FDateTime | Updated_at = FDateTime(0) |
| The time this item instance was last updated. | |
| TArray< FLootLockerServerMetadataEntry > | Metadata |
| Free-form metadata attached to this item instance. | |
A single item instance in a player's inventory.
Note: The backend list endpoint returns the raw inventory rows, which currently marshal in PascalCase (the backend Inventory struct is missing JSON tags), whereas the get-item endpoint returns snake_case. The DTO below mirrors the snake_case shape used by get-item, and ListPlayerInventoryItems normalizes the PascalCase keys so both endpoints deserialize correctly. Once the backend adds JSON tags the normalization becomes a no-op.
Note: This represents an item granted from an item template. It is unrelated to FLootLockerServerPlayerInventoryItem, which represents an asset in the player's inventory, and to the asset-based inventory API (GetPlayerInventory, GetUniversalInventory, ...).
| bool FLootLockerServerInventoryItem::Consumable = false |
Whether this item is consumable.
| int FLootLockerServerInventoryItem::Count = 0 |
The count of this item in the stack.
| FDateTime FLootLockerServerInventoryItem::Created_at = FDateTime(0) |
The time this item instance was created.
| FString FLootLockerServerInventoryItem::Id |
The unique identifier (ULID) of this inventory item instance.
| FString FLootLockerServerInventoryItem::Item_template_id |
The unique identifier (ULID) of the item template this item is based on.
| ELootLockerServerItemType FLootLockerServerInventoryItem::Item_type = ELootLockerServerItemType::Unknown |
The type of this item (instanced or stackable)
| TArray<FLootLockerServerMetadataEntry> FLootLockerServerInventoryItem::Metadata |
Free-form metadata attached to this item instance.
Note: The get-item endpoint returns metadata as an array of entries matching FLootLockerServerMetadataEntry. The list endpoint returns raw inventory rows (see note on FLootLockerServerInventoryItem).
| int FLootLockerServerInventoryItem::Player_id = 0 |
The id of the player that owns this inventory item.
| FString FLootLockerServerInventoryItem::Source |
The source that granted this item.
| FDateTime FLootLockerServerInventoryItem::Updated_at = FDateTime(0) |
The time this item instance was last updated.
Unset (FDateTime(0)) when the item has never been updated.