debugging for inventory system
This commit is contained in:
parent
15f41865fa
commit
cdd5f7f67a
BIN
hwanyoung2/Content/Hwanyoung/Character/NPC/Spring-Sanin/Anims-Sanin/ABP_SaninSemiFinal.uasset
(Stored with Git LFS)
BIN
hwanyoung2/Content/Hwanyoung/Character/NPC/Spring-Sanin/Anims-Sanin/ABP_SaninSemiFinal.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
hwanyoung2/Content/Hwanyoung/Character/NPC/Spring-Sanin/BP_SanIn.uasset
(Stored with Git LFS)
BIN
hwanyoung2/Content/Hwanyoung/Character/NPC/Spring-Sanin/BP_SanIn.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
hwanyoung2/Content/Hwanyoung/Character/PlayerCharacter/BP_HYPlayerCharacController.uasset
(Stored with Git LFS)
BIN
hwanyoung2/Content/Hwanyoung/Character/PlayerCharacter/BP_HYPlayerCharacController.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
hwanyoung2/Content/Hwanyoung/Character/PlayerCharacter/Playables/Haesol/BP_Haesol.uasset
(Stored with Git LFS)
BIN
hwanyoung2/Content/Hwanyoung/Character/PlayerCharacter/Playables/Haesol/BP_Haesol.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
hwanyoung2/Content/Hwanyoung/Character/PlayerCharacter/Playables/Haesol/Weapons/BP_HaesolHwando.uasset
(Stored with Git LFS)
BIN
hwanyoung2/Content/Hwanyoung/Character/PlayerCharacter/Playables/Haesol/Weapons/BP_HaesolHwando.uasset
(Stored with Git LFS)
Binary file not shown.
@ -12,7 +12,7 @@ AHYManualPickUp::AHYManualPickUp()
|
|||||||
ItemID = FName("No ID");
|
ItemID = FName("No ID");
|
||||||
|
|
||||||
Super::Name = "Item";
|
Super::Name = "Item";
|
||||||
Super::Action = "Pick up";
|
Super::Action = "pick up";
|
||||||
}
|
}
|
||||||
|
|
||||||
void AHYManualPickUp::Interact_Implementation(APlayerController* Controller)
|
void AHYManualPickUp::Interact_Implementation(APlayerController* Controller)
|
||||||
@ -22,5 +22,6 @@ void AHYManualPickUp::Interact_Implementation(APlayerController* Controller)
|
|||||||
AHYPlayerCharacController* IController = Cast<AHYPlayerCharacController>(Controller);
|
AHYPlayerCharacController* IController = Cast<AHYPlayerCharacController>(Controller);
|
||||||
if (IController->AddItemToInventoryByID(ItemID))
|
if (IController->AddItemToInventoryByID(ItemID))
|
||||||
Destroy();
|
Destroy();
|
||||||
|
else UE_LOG(LogTemp, Warning, TEXT("Item not found."))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include "HYPlayerCharacController.h"
|
#include "HYPlayerCharacController.h"
|
||||||
#include "HYGameStateBase.h"
|
#include "HYGameStateBase.h"
|
||||||
|
#include "Engine/DataTable.h"
|
||||||
#include "hwanyoung2Character.h"
|
#include "hwanyoung2Character.h"
|
||||||
|
|
||||||
AHYPlayerCharacController::AHYPlayerCharacController()
|
AHYPlayerCharacController::AHYPlayerCharacController()
|
||||||
|
@ -49,6 +49,18 @@ public:
|
|||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
bool CanBeUsed;
|
bool CanBeUsed;
|
||||||
|
|
||||||
|
//can this item be bought at the store?
|
||||||
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
|
bool CanBeBought;
|
||||||
|
|
||||||
|
//is this a crafting item?
|
||||||
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
|
bool IsCraftItem;
|
||||||
|
|
||||||
|
//is this a cooking item?
|
||||||
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
|
bool IsCookingItem;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||||
UTexture2D* ItemIcon;
|
UTexture2D* ItemIcon;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user