Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "GameFramework/Actor.h"
- #include "Item.generated.h"
- UENUM(BlueprintType)
- namespace EItemType
- {
- enum Type
- {
- IT_ARMOR UMETA(DisplayName = "Armor"),
- IT_ARMOR_MOD UMETA(DisplayName = "Armor Mod"),
- IT_WEAPON UMETA(DisplayName = "Weapon"),
- IT_WEAPON_MOD UMETA(DisplayName = "Weapon Mod")
- };
- }
- UCLASS(BlueprintType, Blueprintable)
- class AItem : public AActor
- {
- GENERATED_UCLASS_BODY()
- UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
- TEnumAsByte<EItemType::Type> ItemType;
- UPROPERTY(EditAnywhere, Category = "Item")
- FString _name;
- UPROPERTY(EditAnywhere, Category = "Item")
- FString _description;
- UPROPERTY(VisibleAnywhere, Category = "Mesh")
- TSubobjectPtr<USkeletalMeshComponent> ItemMesh;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement