did some work on the inventory item

This commit is contained in:
Ji Yoon Rhee 2023-12-26 23:49:01 +09:00
parent ce5240bfd9
commit 90d6e5af17

View File

@ -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;
}
};