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.
37 lines
723 B
37 lines
723 B
// 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;
|
|
};
|