crafting system is fully functional

This commit is contained in:
Ji Yoon Rhee
2024-09-17 00:05:53 +09:00
parent 63d4092c2c
commit 564f2a80cd
19 changed files with 83 additions and 21 deletions

View File

@ -38,7 +38,7 @@ public:
bool AddItemToInventoryByID(FName ID);
UFUNCTION(BlueprintCallable, Category = "Utils")
void CraftItem(FInventoryItem ItemA, FInventoryItem ItemB, FInventoryItem ItemC, FInventoryItem ItemD);
void CraftItem(FInventoryItem ItemA);
UPROPERTY(BlueprintReadWrite, VisibleAnywhere)
class AHYInteractableActor* CurrentInteractable;
@ -55,6 +55,10 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 Currency;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
TSet<FName> CraftingItems;
//interacts with the Interactable objects
UFUNCTION(BlueprintCallable, Category = "Utils")
void Interact();