YOM Replicator SDK 0.8.0.0
A metaverse SDK created by YOM
Loading...
Searching...
No Matches
UYomInventoryItemFactory Class Reference

Detailed Description

A factory that can create inventory items in different ways.

Inheritance diagram for UYomInventoryItemFactory:

Static Public Member Functions

Blueprint Functions
static AYomInventoryItemCreateEmptyYomInventoryItem (AYomPlayer *pOwner, bool pIsAirdrop, TSubclassOf< AYomBaseItem > pActorClass)
 Creates an empty inventory item. More...
 
static AYomInventoryItemCreateYomInventoryItemFromJson (UVaRestJsonValue *pJson, AYomPlayer *pOwner, bool pIsAirdrop=false, TSubclassOf< AYomBaseItem > pActorClass=nullptr)
 Creates a inventory item from a JSON value. More...
 
static AYomInventoryItemCreateYomInventoryItemFromData (const FWalletData &pData, AYomPlayer *pOwner, bool pIsAirdrop=false, TSubclassOf< AYomBaseItem > pActorClass=nullptr)
 Creates a inventory item from a FWalletData value. More...
 

Member Function Documentation

◆ CreateEmptyYomInventoryItem()

AYomInventoryItem * UYomInventoryItemFactory::CreateEmptyYomInventoryItem ( AYomPlayer pOwner,
bool  pIsAirdrop,
TSubclassOf< AYomBaseItem >  pActorClass 
)
static

Creates an empty inventory item.

Parameters
pOwnerThe owner of the inventory item
pIsAirdropIf it is an airdrop
pActorClassWhat class should be spawned for the item
Returns
The new item

◆ CreateYomInventoryItemFromData()

AYomInventoryItem * UYomInventoryItemFactory::CreateYomInventoryItemFromData ( const FWalletData &  pData,
AYomPlayer pOwner,
bool  pIsAirdrop = false,
TSubclassOf< AYomBaseItem >  pActorClass = nullptr 
)
static

Creates a inventory item from a FWalletData value.

Parameters
pDataThe data of the new inventory item
pOwnerThe owner of the inventory item
pIsAirdropIf it is an airdrop
pActorClassWhat class should be spawned for the item
Returns
The new item

◆ CreateYomInventoryItemFromJson()

AYomInventoryItem * UYomInventoryItemFactory::CreateYomInventoryItemFromJson ( UVaRestJsonValue *  pJson,
AYomPlayer pOwner,
bool  pIsAirdrop = false,
TSubclassOf< AYomBaseItem >  pActorClass = nullptr 
)
static

Creates a inventory item from a JSON value.

Parameters
pJsonThe JSON that was received from an API
pOwnerThe owner of the inventory item
pIsAirdropIf it is an airdrop
pActorClassWhat class should be spawned for the item
Returns
The new item