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

33 lines
644 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();
protected:
UPROPERTY(BlueprintReadWrite)
int32 BattleTier;
UPROPERTY(BlueprintReadWrite)
TArray<FSelectedUpgrade> SelectedUpgrades;
};