Update Base Item for BP Properties
This commit is contained in:
parent
55e9321288
commit
17ecf7a3e6
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
BIN
EndlessVendetta/Content/AI/Enemy/Basic/BT_BasicEnemy.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/AI/Enemy/Basic/BT_BasicEnemy.uasset
(Stored with Git LFS)
Binary file not shown.
@ -6,37 +6,55 @@
|
|||||||
#include "UObject/NoExportTypes.h"
|
#include "UObject/NoExportTypes.h"
|
||||||
#include "BaseItem.generated.h"
|
#include "BaseItem.generated.h"
|
||||||
|
|
||||||
USTRUCT()
|
USTRUCT(BlueprintType)
|
||||||
struct FItemSize
|
struct FItemSize
|
||||||
{
|
{
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
int x;
|
int X;
|
||||||
int y;
|
int Y;
|
||||||
|
|
||||||
FItemSize(int _x, int _y)
|
FItemSize(const int _X, const int _Y)
|
||||||
{
|
{
|
||||||
x = _x;
|
X = _X;
|
||||||
y = _y;
|
Y = _Y;
|
||||||
}
|
}
|
||||||
|
|
||||||
FItemSize()
|
FItemSize()
|
||||||
{
|
{
|
||||||
x = 1;
|
X = 1;
|
||||||
y = 1;
|
Y = 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
UENUM(BlueprintType)
|
||||||
|
enum EItemRotation
|
||||||
|
{
|
||||||
|
Horizontal UMETA(DisplayName = "Up"),
|
||||||
|
Vertical UMETA(DisplayName = "Down")
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
UCLASS()
|
UCLASS(Abstract)
|
||||||
class ENDLESSVENDETTA_API UBaseItem : public UObject
|
class ENDLESSVENDETTA_API UBaseItem : public UObject
|
||||||
{
|
{
|
||||||
GENERATED_BODY()
|
GENERATED_BODY()
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Item")
|
||||||
const FName ItemName;
|
int ItemID;
|
||||||
const FText Description;
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Item")
|
||||||
const FItemSize ItemSize = FItemSize(1, 1);
|
FName ItemName;
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Item")
|
||||||
|
FText Description;
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Item")
|
||||||
|
FItemSize ItemSize = FItemSize();
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Instanced, Category = "Item")
|
||||||
|
TArray<UTexture2D*> ItemTextures;
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Item")
|
||||||
|
TEnumAsByte<EItemRotation> CurrentItemRotation = Horizontal;
|
||||||
|
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Item")
|
||||||
|
TSubclassOf<AActor> ItemActor;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user