diff --git a/hwanyoung2/Source/hwanyoung2/InventoryItem.h b/hwanyoung2/Source/hwanyoung2/InventoryItem.h index e93862db..b96dfb20 100644 --- a/hwanyoung2/Source/hwanyoung2/InventoryItem.h +++ b/hwanyoung2/Source/hwanyoung2/InventoryItem.h @@ -13,7 +13,35 @@ USTRUCT(BlueprintType) struct FInventoryItem : public FTableRowBase { - GENERATED_USTRUCT_BODY(); + GENERATED_BODY(); public: + FInventoryItem(); + + //unique ID for the item + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FName ItemID; + + //name of the item + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FText ItemName; + + //weight of the item + //(this may not be important, depends on how we re-design the inventory) + UPROPERTY(EditAnywhere, BlueprintReadWrite) + int32 ItemWeight; + + //is the item only available through drops? + UPROPERTY(EditAnywhere, BlueprintReadWrite) + bool OnlyDropped; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) + UTexture2D* ItemIcon; + + UPROPERTY(EditAnywhere, BlueprintReadWrite) + FText ItemDescription; + + bool operator==(const FInventoryItem& OtherItem) const { + return ItemID == OtherItem.ItemID; + } };