Guest User

TTTGear.h

a guest
Jun 1st, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "GameFramework/Actor.h"
  6. #include "TTTGear.generated.h"
  7.  
  8. enum weaponType {
  9.     _wtHelmet,
  10.     _wtChest,
  11.     _wtGloves,
  12.     _wtBoots,
  13.     _wtBelt,
  14.     _wtWeapon,
  15.     _wtRing,
  16.     _wtAmulet,
  17.     _wtNone
  18. };
  19.  
  20. UCLASS()
  21. class TOTHETHRONE_API ATTTGear : public AActor
  22. {
  23.     GENERATED_BODY()
  24.    
  25. public:
  26.     // Sets default values for this actor's properties
  27.     ATTTGear();
  28.  
  29.     // Called when the game starts or when spawned
  30.     virtual void BeginPlay() override;
  31.    
  32.     // Called every frame
  33.     virtual void Tick( float DeltaSeconds ) override;
  34.  
  35.     void init(FString name, FString path, int lvlReq,
  36.         int strReq, int dexReq, int intReq, weaponType type);
  37.  
  38.     FString name;
  39.     FString path;
  40.     int lvlReq;
  41.     int strReq;
  42.     int dexReq;
  43.     int intReq;
  44.     weaponType type;
  45.     UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = TTT)
  46.     UStaticMeshComponent *model;
  47. };
Add Comment
Please, Sign In to add comment