idk if i'm doing this correctly bro please help me lord
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user