did some work on the inventory item
This commit is contained in:
parent
ce5240bfd9
commit
90d6e5af17
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user