You've already forked LuckyWorld
Organize some structures and enum
This commit is contained in:
@ -119,6 +119,7 @@ enum class ELogItemType : uint8
|
||||
UENUM(BlueprintType)
|
||||
enum class EFurniture : uint8
|
||||
{
|
||||
None UMETA(DisplayName = "None"),
|
||||
Sofas UMETA(DisplayName = "Sofas"),
|
||||
Chairs UMETA(DisplayName = "Chairs"),
|
||||
Tables UMETA(DisplayName = "Tables"),
|
||||
@ -133,6 +134,7 @@ enum class EFurniture : uint8
|
||||
UENUM(BlueprintType)
|
||||
enum class EDecoration : uint8
|
||||
{
|
||||
None UMETA(DisplayName = "None"),
|
||||
Carpets UMETA(DisplayName = "Carpets"),
|
||||
Paintings UMETA(DisplayName = "Paintings"),
|
||||
Vases UMETA(DisplayName = "Vases"),
|
||||
@ -153,6 +155,7 @@ enum class EDecoration : uint8
|
||||
UENUM(BlueprintType)
|
||||
enum class EKitchenware : uint8
|
||||
{
|
||||
None UMETA(DisplayName = "None"),
|
||||
Plates UMETA(DisplayName = "Plates"),
|
||||
Glasses UMETA(DisplayName = "Glasses"),
|
||||
Cutlery UMETA(DisplayName = "Cutlery"),
|
||||
@ -165,6 +168,7 @@ enum class EKitchenware : uint8
|
||||
UENUM(BlueprintType)
|
||||
enum class EElectronics : uint8
|
||||
{
|
||||
None UMETA(DisplayName = "None"),
|
||||
Television UMETA(DisplayName = "Television"),
|
||||
LargeAppliances UMETA(DisplayName = "Large Appliances"),
|
||||
Oven UMETA(DisplayName = "Oven"),
|
||||
@ -177,6 +181,7 @@ enum class EElectronics : uint8
|
||||
UENUM(BlueprintType)
|
||||
enum class EBathroom : uint8
|
||||
{
|
||||
None UMETA(DisplayName = "None"),
|
||||
Towels UMETA(DisplayName = "Towels"),
|
||||
SoapDispenser UMETA(DisplayName = "Soap Dispenser"),
|
||||
ShowerCurtains UMETA(DisplayName = "Shower Curtains"),
|
||||
@ -194,6 +199,23 @@ enum class EItemCategory : uint8
|
||||
Bathroom UMETA(DisplayName = "Bathroom")
|
||||
};
|
||||
|
||||
UENUM(BlueprintType)
|
||||
enum class EHoldItemType : uint8
|
||||
{
|
||||
None UMETA(DisplayName = "None"),
|
||||
HoldObject UMETA(DisplayName = "Hold Object"),
|
||||
DontTouch UMETA(DisplayName = "Don't Touch")
|
||||
};
|
||||
|
||||
UENUM(BlueprintType)
|
||||
enum class EScenarioEnum : uint8
|
||||
{
|
||||
None UMETA(DisplayName = "None"),
|
||||
TidyUp UMETA(DisplayName = "Tidy Up"),
|
||||
Draw UMETA(DisplayName = "Draw"),
|
||||
StoveOff UMETA(DisplayName = "Stove Off")
|
||||
};
|
||||
|
||||
USTRUCT(BlueprintType)
|
||||
struct FRobotData : public FTableRowBase
|
||||
{
|
||||
@ -525,11 +547,11 @@ public:
|
||||
FSelectableItemData()
|
||||
: ID(0)
|
||||
, Category(EItemCategory::Furniture)
|
||||
, FurnitureType(EFurniture::Sofas)
|
||||
, DecorationType(EDecoration::Carpets)
|
||||
, KitchenwareType(EKitchenware::Plates)
|
||||
, ElectronicsType(EElectronics::Television)
|
||||
, BathroomType(EBathroom::Towels)
|
||||
, FurnitureType(EFurniture::None)
|
||||
, DecorationType(EDecoration::None)
|
||||
, KitchenwareType(EKitchenware::None)
|
||||
, ElectronicsType(EElectronics::None)
|
||||
, BathroomType(EBathroom::None)
|
||||
, Name(TEXT(""))
|
||||
, Icon(nullptr)
|
||||
, Mesh(nullptr)
|
||||
@ -538,4 +560,47 @@ public:
|
||||
, Transform(FTransform::Identity)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
USTRUCT(BlueprintType)
|
||||
struct FHoldItemStruct : public FTableRowBase
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
|
||||
int32 ID;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
|
||||
FString Name;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
|
||||
TSoftObjectPtr<UTexture2D> Icon;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
|
||||
TSoftObjectPtr<UStaticMesh> Mesh;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
|
||||
FString Description;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
|
||||
EHoldItemType Type;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
|
||||
EScenarioEnum ScenarioEnum;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
|
||||
FTransform Transform;
|
||||
|
||||
FHoldItemStruct()
|
||||
: ID(0)
|
||||
, Name(TEXT(""))
|
||||
, Icon(nullptr)
|
||||
, Mesh(nullptr)
|
||||
, Description(TEXT(""))
|
||||
, Type(EHoldItemType::None)
|
||||
, ScenarioEnum(EScenarioEnum::None)
|
||||
, Transform(FTransform::Identity)
|
||||
{
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user