LootLocker Unreal Server SDK 6.5.0
Server-side backend SDK for Unreal Engine
Loading...
Searching...
No Matches
Hero

Detailed Description

Server-side management of player hero instances.

Query and manage hero instances for players. Heroes are player-owned instances of a Hero Class, which extends a Base Class with optional overrides. This group covers listing available heroes and managing equipped item loadouts for players from the server.

See the LootLocker documentation.

Function Documentation

◆ EquipAssetToPlayerHeroLoadoutByAssetIdAndAssetVariationId()

static FString ULootLockerServerForCpp::EquipAssetToPlayerHeroLoadoutByAssetIdAndAssetVariationId ( int  PlayerID,
int  HeroID,
int  AssetID,
int  AssetVariationID,
const FLootLockerServerEquipAssetToHeroLoadoutResponseDelegate OnCompletedRequest 
)
static

Equip an asset instance to the loadout of specified player and hero using an asset id and an asset variation id.

Parameters
PlayerIDThe ID of the player for whom to equip the asset instance
HeroIDThe ID of the hero on the specified player for whose loadout to equip the asset instance
AssetIDThe ID of the asset to equip to the specified player hero's loadout
AssetVariationIDThe ID of the variation of the specified asset to equip to the specified player hero's loadout
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

◆ EquipAssetToPlayerHeroLoadoutByAssetIdAndRentalOptionId()

static FString ULootLockerServerForCpp::EquipAssetToPlayerHeroLoadoutByAssetIdAndRentalOptionId ( int  PlayerID,
int  HeroID,
int  AssetID,
int  RentalOptionID,
const FLootLockerServerEquipAssetToHeroLoadoutResponseDelegate OnCompletedRequest 
)
static

Equip an asset instance to the loadout of specified player and hero using an asset id and a rental option id.

Parameters
PlayerIDThe ID of the player for whom to equip the asset instance
HeroIDThe ID of the hero on the specified player for whose loadout to equip the asset instance
AssetIDThe ID of the asset to equip to the specified player hero's loadout
RentalOptionIDThe ID of the rental option of the specified asset to equip to the specified player hero's loadout
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

◆ EquipAssetToPlayerHeroLoadoutByAssetInstanceId()

static FString ULootLockerServerForCpp::EquipAssetToPlayerHeroLoadoutByAssetInstanceId ( int  PlayerID,
int  HeroID,
int  AssetInstanceID,
const FLootLockerServerEquipAssetToHeroLoadoutResponseDelegate OnCompletedRequest 
)
static

Equip an asset instance to the loadout of specified player and hero using an asset instance id.

Parameters
PlayerIDThe ID of the player for whom to equip the asset instance
HeroIDThe ID of the hero on the specified player for whose loadout to equip the asset instance
AssetInstanceIDThe ID of the asset instance to equip to the specified player hero's loadout
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

◆ GetPaginatedPlayerHeroInventory()

static FString ULootLockerServerForCpp::GetPaginatedPlayerHeroInventory ( int  PlayerID,
int  HeroID,
int  Count,
int  After,
const FLootLockerServerGetHeroInventoryResponseDelegate OnCompletedRequest 
)
static

Get a subset of the inventory for the specified player and hero using pagination settings.

Parameters
PlayerIDThe ID of the player for whom to get the hero inventory
HeroIDThe ID of the hero on the specified player for which to get the inventory
CountThe number of inventory items to get. Must be a value between 1 and 200
AfterThe id of the inventory item from where to start getting inventory items (non inclusive). Set to 0 to start from the first item
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

◆ GetPlayerHeroes()

static FString ULootLockerServerForCpp::GetPlayerHeroes ( int  PlayerID,
const FLootLockerServerGetPlayerHeroResponseDelegate OnCompletedRequest 
)
static

List all heroes for this player.

Parameters
PlayerIDThe ID of the player for whom to get the heroes
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

◆ GetPlayerHeroInventory()

static FString ULootLockerServerForCpp::GetPlayerHeroInventory ( int  PlayerID,
int  HeroID,
const FLootLockerServerGetHeroInventoryResponseDelegate OnCompletedRequest 
)
static

Get the inventory for the specified player and hero.

Parameters
PlayerIDThe ID of the player for whom to get the hero inventory
HeroIDThe ID of the hero on the specified player for which to get the inventory
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

◆ GetPlayerHeroLoadout()

static FString ULootLockerServerForCpp::GetPlayerHeroLoadout ( int  PlayerID,
int  HeroID,
const FLootLockerServerGetHeroLoadoutResponseDelegate OnCompletedRequest 
)
static

Get the full loadout for the specified player and hero.

Parameters
PlayerIDThe ID of the player for whom to get the hero loadout
HeroIDThe ID of the hero on the specified player for which to get the loadout
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

◆ UnequipAssetFromPlayerHeroLoadout()

static FString ULootLockerServerForCpp::UnequipAssetFromPlayerHeroLoadout ( int  PlayerID,
int  HeroID,
int  InstanceID,
const FLootLockerServerUnequipAssetFromHeroLoadoutResponseDelegate OnCompletedRequest 
)
static

Unequip an asset instance from the loadout of specified player and hero using the instance id.

Parameters
PlayerIDThe ID of the player for whom to unequip the asset instance
HeroIDThe ID of the hero on the specified player for whose loadout to unequip the asset instance
InstanceIDThe ID of the asset instance to unequip from the specified player hero's loadout
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::GetPlayerHeroes (int PlayerID, const FLootLockerServerGetPlayerHeroResponseDelegate &OnCompletedRequest)
 List all heroes for this player.
 
static FString ULootLockerServerForCpp::GetPlayerHeroInventory (int PlayerID, int HeroID, const FLootLockerServerGetHeroInventoryResponseDelegate &OnCompletedRequest)
 Get the inventory for the specified player and hero.
 
static FString ULootLockerServerForCpp::GetPaginatedPlayerHeroInventory (int PlayerID, int HeroID, int Count, int After, const FLootLockerServerGetHeroInventoryResponseDelegate &OnCompletedRequest)
 Get a subset of the inventory for the specified player and hero using pagination settings.
 
static FString ULootLockerServerForCpp::GetPlayerHeroLoadout (int PlayerID, int HeroID, const FLootLockerServerGetHeroLoadoutResponseDelegate &OnCompletedRequest)
 Get the full loadout for the specified player and hero.
 
static FString ULootLockerServerForCpp::EquipAssetToPlayerHeroLoadoutByAssetInstanceId (int PlayerID, int HeroID, int AssetInstanceID, const FLootLockerServerEquipAssetToHeroLoadoutResponseDelegate &OnCompletedRequest)
 Equip an asset instance to the loadout of specified player and hero using an asset instance id.
 
static FString ULootLockerServerForCpp::EquipAssetToPlayerHeroLoadoutByAssetIdAndAssetVariationId (int PlayerID, int HeroID, int AssetID, int AssetVariationID, const FLootLockerServerEquipAssetToHeroLoadoutResponseDelegate &OnCompletedRequest)
 Equip an asset instance to the loadout of specified player and hero using an asset id and an asset variation id.
 
static FString ULootLockerServerForCpp::EquipAssetToPlayerHeroLoadoutByAssetIdAndRentalOptionId (int PlayerID, int HeroID, int AssetID, int RentalOptionID, const FLootLockerServerEquipAssetToHeroLoadoutResponseDelegate &OnCompletedRequest)
 Equip an asset instance to the loadout of specified player and hero using an asset id and a rental option id.
 
static FString ULootLockerServerForCpp::UnequipAssetFromPlayerHeroLoadout (int PlayerID, int HeroID, int InstanceID, const FLootLockerServerUnequipAssetFromHeroLoadoutResponseDelegate &OnCompletedRequest)
 Unequip an asset instance from the loadout of specified player and hero using the instance id.