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.
45 lines
921 B
45 lines
921 B
12 months ago
|
// 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)
|
||
|
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;
|
||
|
};
|