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

42 lines
866 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);
UFUNCTION(BlueprintCallable)
USelectedUpgrade* FindSelectedUpgrade(UUpgrade* SystemToFind);
protected:
UPROPERTY(BlueprintReadWrite)
int32 BattleTier = 1;
UPROPERTY(BlueprintReadWrite)
TArray<USelectedUpgrade*> SelectedUpgrades;
UPROPERTY(BlueprintReadWrite)
int32 MaxUnits;
};