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.
absg/Source/SpaceBattler/Public/UpgradeSubsystem.h

36 lines
718 B

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "SelectedUpgrade.h"
#include "Unit.h"
#include "Subsystems/LocalPlayerSubsystem.h"
#include "UpgradeSubsystem.generated.h"
/**
*
*/
UCLASS()
class SPACEBATTLER_API UUpgradeSubsystem : public ULocalPlayerSubsystem
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable)
void ApplyUnitUpgrades(AUnit* Unit);
UFUNCTION(BlueprintCallable)
void ApplyGlobalUpgrades();
UFUNCTION(BlueprintCallable)
void AddUpgrade(UUpgrade* UpgradeToAdd);
protected:
UPROPERTY(BlueprintReadWrite)
int32 BattleTier;
UPROPERTY(BlueprintReadWrite)
TArray<USelectedUpgrade*> SelectedUpgrades;
};