YOM Replicator SDK 0.8.0.0
A metaverse SDK created by YOM
|
The Inventory YomModule, which keeps track of the items the player has in his wallet.
Public Member Functions | |
Blueprint Functions | |
void | SpawnItem (int pIndex) |
Spawns an item at a given index in the YomInventoryItems array. More... | |
void | DespawnAllItems () |
Despawns all of the placed items of the player. More... | |
void | AddItem (AYomInventoryItem *pItem) |
Adds item to the wallet of the player. More... | |
const TArray< AYomInventoryItem * > & | GetYomInventoryItems () |
Returns the wallet items in the player wallet. More... | |
TArray< AYomInventoryItem * > | GetSpawnedYomInventoryItems () |
Returns the wallet items that have been spawned in the game. More... | |
AYomInventoryItem * | GetItemByID (const FString &pID) |
Retrieves an item of the player by ID. More... | |
TArray< AYomInventoryItem * > | GetItemsByMasterID (const FString &pMasterID) |
Public Attributes | |
Blueprint Members | |
TSubclassOf< UYomPlayerInventoryWidget > | InventoryWidget |
The class of the inventory widget that is displayed on the client side. More... | |
UYomPlayerInventoryWidget * | Widget |
Instance of the inventory widget that is displayed on the client side. More... | |
FOnInvetoryFetched | OnInventoryFetched |
Called when the items of the player are fetched on the server. More... | |
TArray< FKey > | OpenInventoryKeys = { EKeys::I } |
Key that should be pressed to open the inventory. More... | |
TArray< FKey > | RemoveAllItemsKeys = { EKeys::G } |
Key that should be pressed to remove all items from the space. More... | |
void UYomInventoryComponent::AddItem | ( | AYomInventoryItem * | pItem | ) |
Adds item to the wallet of the player.
pItem | The item that needs to be added |
void UYomInventoryComponent::DespawnAllItems | ( | ) |
Despawns all of the placed items of the player.
AYomInventoryItem * UYomInventoryComponent::GetItemByID | ( | const FString & | pID | ) |
Retrieves an item of the player by ID.
pID | The id of the item |
TArray< AYomInventoryItem * > UYomInventoryComponent::GetItemsByMasterID | ( | const FString & | pMasterID | ) |
TArray< AYomInventoryItem * > UYomInventoryComponent::GetSpawnedYomInventoryItems | ( | ) |
Returns the wallet items that have been spawned in the game.
const TArray< AYomInventoryItem * > & UYomInventoryComponent::GetYomInventoryItems | ( | ) |
Returns the wallet items in the player wallet.
void UYomInventoryComponent::SpawnItem | ( | int | pIndex | ) |
Spawns an item at a given index in the YomInventoryItems array.
pIndex | The index of the YomInventoryItems array |
TSubclassOf<UYomPlayerInventoryWidget> UYomInventoryComponent::InventoryWidget |
The class of the inventory widget that is displayed on the client side.
FOnInvetoryFetched UYomInventoryComponent::OnInventoryFetched |
Called when the items of the player are fetched on the server.
TArray<FKey> UYomInventoryComponent::OpenInventoryKeys = { EKeys::I } |
Key that should be pressed to open the inventory.
TArray<FKey> UYomInventoryComponent::RemoveAllItemsKeys = { EKeys::G } |
Key that should be pressed to remove all items from the space.
UYomPlayerInventoryWidget* UYomInventoryComponent::Widget |
Instance of the inventory widget that is displayed on the client side.