// 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 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) float Range; UPROPERTY(BlueprintReadWrite, EditAnywhere) int32 Tier; UPROPERTY(BlueprintReadWrite, EditAnywhere) TSubclassOf CharacterClass; };