idk if i'm doing this correctly bro please help me lord

This commit is contained in:
Ji Yoon Rhee
2023-12-25 16:47:15 +09:00
parent 36bcb08c75
commit 6235bcb85c
49 changed files with 4404 additions and 1964 deletions

View File

@ -2,7 +2,8 @@
#pragma once
#include "Interactable.h"
#include "HYInteractableActor.h"
#include "InventoryItem.h"
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
@ -16,6 +17,39 @@ class HWANYOUNG2_API AHYPlayerCharacController : public APlayerController
{
GENERATED_BODY()
public:
#pragma region inventory
AHYPlayerCharacController();
UFUNCTION(BlueprintImplementableEvent)
void ReloadInventory();
UFUNCTION(BlueprintCallable, Category = "Utils")
int32 GetInventoryWeight();
UFUNCTION(BlueprintCallable, Category = "Utils")
bool AddItemToInventoryByID(FName ID);
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
class AHYInteractableActor* CurrentInteractable;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
TArray<FInventoryItem> Inventory;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 InventorySlotLimit;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 InventoryWeightLimit;
#pragma endregion
protected:
void Interact();
virtual void SetupInputComponent() override;
virtual void OnPossess(APawn* InPawn) override;
};