This commit is contained in:
2023-06-12 22:46:06 +02:00
commit 25559b81e3
784 changed files with 2284 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
// All rights reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "CustomDataTypes.h"
#include "GameFramework/Pawn.h"
#include "InventoryManager.generated.h"
UCLASS()
class FIREWORKDUELS_API AInventoryManager : public AActor
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadOnly)
TMap<APawn*, FInventory> Inventory;
UFUNCTION(BlueprintCallable)
void AddToInventory(const FFireworkData& Item, const int32& Quantity, const APawn* Pawn);
UFUNCTION(BlueprintCallable)
void RemoveFromInventory(const FFireworkData& Item, const APawn* Pawn);
UFUNCTION(BlueprintCallable)
void RemovePlayerItems(const APawn* Pawn);
UFUNCTION(BlueprintCallable)
FInventory GetInventory();
};