Advertisement
Guest User

Item.h

a guest
Nov 6th, 2014
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include "GameFramework/Actor.h"
  4. #include "Item.generated.h"
  5.  
  6. UENUM(BlueprintType)
  7. namespace EItemType
  8. {
  9.     enum Type
  10.     {
  11.         IT_ARMOR UMETA(DisplayName = "Armor"),
  12.         IT_ARMOR_MOD UMETA(DisplayName = "Armor Mod"),
  13.         IT_WEAPON UMETA(DisplayName = "Weapon"),
  14.         IT_WEAPON_MOD UMETA(DisplayName = "Weapon Mod")
  15.     };
  16. }
  17.  
  18. UCLASS(BlueprintType, Blueprintable)
  19. class AItem : public AActor
  20. {
  21.     GENERATED_UCLASS_BODY()
  22.  
  23.     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
  24.     TEnumAsByte<EItemType::Type> ItemType;
  25.  
  26.     UPROPERTY(EditAnywhere, Category = "Item")
  27.     FString _name;
  28.  
  29.     UPROPERTY(EditAnywhere, Category = "Item")
  30.     FString _description;
  31.  
  32.     UPROPERTY(VisibleAnywhere, Category = "Mesh")
  33.     TSubobjectPtr<USkeletalMeshComponent> ItemMesh;
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement