Attach inventory stacks to game-defined equipment slots and read loadouts.
A publisher defines equipment groups per game, each bound to one entity type (player today), and slots inside them. A slot carries tags and a max_items cap; it accepts a stack only when the item template shares at least one of the slot's tags. Equipping a stack larger than the cap splits it, and equipped stacks leave the normal inventory listing until unequipped. Every loadout read is paged over groups, and each attached stack reports valid and over_limit so config drift is visible instead of silent.
See the LootLocker documentation.
◆ FLootLockerEquipmentEquipResponseDelegate
◆ FLootLockerEquipmentLoadoutResponseDelegate
◆ FLootLockerEquipmentSlotCandidatesResponseDelegate
◆ ELootLockerEquipmentReplaceMode
Whether an occupied equipment slot should be auto-unequipped when equipping into it.
| Enumerator |
|---|
| Unset | Leave replace out of the request so the server applies its own default.
|
| Replace | Auto-unequip the stack already occupying the slot.
|
| Conflict | Do not replace the occupant; the request fails with a conflict instead.
|
◆ EquipStack()
Equip an inventory stack into an equipment slot.
When the stack holds more than the slot accepts the equipped amount splits off and the remainder stays in the inventory. An occupied slot is auto-unequipped first unless the request's replace mode is set to Conflict.
- Parameters
-
| Request | The equip request |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ GetEntityEquipmentLoadout()
| FString ULootLockerSDKManager::GetEntityEquipmentLoadout |
( |
const FString & | EntityType, |
|
|
const FString & | SourceId, |
|
|
int | Page, |
|
|
int | PerPage, |
|
|
const FLootLockerEquipmentLoadoutResponseDelegate & | OnCompletedRequest, |
|
|
const FString & | ForPlayerWithUlid = "" ) |
|
static |
Get the loadout attached to one entity.
Only the "player" entity type is supported, and a player may only read their own entity. Paged over equipment groups.
- Parameters
-
| EntityType | The entity type to read the loadout for. Only "player" is supported |
| SourceId | The ULID of the entity. For the "player" entity type this is the player ULID |
| Page | Optional: 1-based page of equipment groups (server default when 0) |
| PerPage | Optional: Number of equipment groups per page (server default when 0) |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ GetEquipmentLoadout()
Get the calling player's loadout: every equipment slot the game defines for the player entity, each with the stack attached to it (or a null stack for empty slots).
Paged over equipment groups.
- Parameters
-
| Page | Optional: 1-based page of equipment groups (server default when 0) |
| PerPage | Optional: Number of equipment groups per page (server default when 0) |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ GetOtherPlayersEquipmentLoadout()
| FString ULootLockerSDKManager::GetOtherPlayersEquipmentLoadout |
( |
const FString & | PlayerPublicUid, |
|
|
int | Page, |
|
|
int | PerPage, |
|
|
const FLootLockerEquipmentLoadoutResponseDelegate & | OnCompletedRequest, |
|
|
const FString & | ForPlayerWithUlid = "" ) |
|
static |
Get another player's loadout by their public UID, addressed within the caller's game.
A public UID from another game is reported as not found. Paged over equipment groups.
- Parameters
-
| PlayerPublicUid | The public UID of the player whose loadout to read |
| Page | Optional: 1-based page of equipment groups (server default when 0) |
| PerPage | Optional: Number of equipment groups per page (server default when 0) |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ ListEquipmentSlotCandidates()
List the calling player's unequipped inventory stacks that a slot would accept, meaning the item template shares at least one tag with the slot.
Equipped stacks are excluded.
- Parameters
-
| SlotId | The ULID of the equipment slot to list candidates for |
| Page | Optional: 1-based page of candidates (server default when 0) |
| PerPage | Optional: Number of candidates per page (server default when 0) |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ UnequipStack()
| FString ULootLockerSDKManager::UnequipStack |
( |
const FString & | EntryId, |
|
|
const FLootLockerDefaultDelegate & | OnCompletedRequest, |
|
|
const FString & | ForPlayerWithUlid = "" ) |
|
static |
Detach an equipment entry.
The stack returns to the player's inventory with its count unchanged.
- Parameters
-
| EntryId | The equipment entry ULID, as reported by the loadout read or the equip response |
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
|
| static FString | ULootLockerSDKManager::GetEquipmentLoadout (int Page, int PerPage, const FLootLockerEquipmentLoadoutResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| | Get the calling player's loadout: every equipment slot the game defines for the player entity, each with the stack attached to it (or a null stack for empty slots).
|
| static FString | ULootLockerSDKManager::GetEntityEquipmentLoadout (const FString &EntityType, const FString &SourceId, int Page, int PerPage, const FLootLockerEquipmentLoadoutResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| | Get the loadout attached to one entity.
|
| static FString | ULootLockerSDKManager::GetOtherPlayersEquipmentLoadout (const FString &PlayerPublicUid, int Page, int PerPage, const FLootLockerEquipmentLoadoutResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| | Get another player's loadout by their public UID, addressed within the caller's game.
|
| static FString | ULootLockerSDKManager::ListEquipmentSlotCandidates (const FString &SlotId, int Page, int PerPage, const FLootLockerEquipmentSlotCandidatesResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| | List the calling player's unequipped inventory stacks that a slot would accept, meaning the item template shares at least one tag with the slot.
|
| static FString | ULootLockerSDKManager::EquipStack (const FLootLockerEquipmentEquipRequest &Request, const FLootLockerEquipmentEquipResponseDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| | Equip an inventory stack into an equipment slot.
|
| static FString | ULootLockerSDKManager::UnequipStack (const FString &EntryId, const FLootLockerDefaultDelegate &OnCompletedRequest, const FString &ForPlayerWithUlid="") |
| | Detach an equipment entry.
|