You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
991 B
48 lines
991 B
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Engine/DataAsset.h"
|
|
#include "UnitInfo.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class SPACEBATTLER_API UUnitInfo : public UPrimaryDataAsset
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
int32 GetTier() const;
|
|
TSubclassOf<AActor> GetCharacterClass() const;
|
|
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
|
FText Name;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta = (MultiLine = true))
|
|
FText Description;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
|
UTexture2D* Texture2D;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
|
float BaseHP;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
|
float Attack;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
|
float Cooldown;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
|
bool IsRanged;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
|
int32 Tier;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
|
TSubclassOf<AActor> CharacterClass;
|
|
};
|