// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Upgrade.h" #include "SelectedUpgrade.generated.h" /** * */ UCLASS(BlueprintType) class SPACEBATTLER_API USelectedUpgrade : public UObject { GENERATED_BODY() public: UFUNCTION(BlueprintCallable) UUpgrade* GetUpgradeData() const; UFUNCTION(BlueprintCallable) void SetUpgradeData(UUpgrade* UpgradeToAdd); UFUNCTION(BlueprintCallable) int32 IncreaseUpgradeLevel(); UFUNCTION(BlueprintCallable) int32 GetUpgradeLevel() const; protected: UPROPERTY(BlueprintReadWrite, meta=(ExposeOnSpawn=true)) UUpgrade* UpgradeData; UPROPERTY(BlueprintReadWrite) int32 TimesSelected; };