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.
awesome_game/Source/TurnBasedTutorial/SinglePlayerGS.h

37 lines
809 B

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "EnemyAIController.h"
#include "MyGameState.h"
#include "SinglePlayerGS.generated.h"
/**
*
*/
UCLASS()
class TURNBASEDTUTORIAL_API ASinglePlayerGS : public AMyGameState {
GENERATED_BODY()
public:
ASinglePlayerGS();
virtual void BeginPlay() override;
virtual void CycleTurns() override;
virtual void Tick(float DeltaSeconds) override;
AEnemyAIController *GetEnemyAIController() const;
const TArray<TSubclassOf<ATrooper>> &GetTroopersAssets() const;
protected:
UPROPERTY(Replicated)
AEnemyAIController *EnemyAiManager = nullptr;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TArray<TSubclassOf<ATrooper>> TrooperBpAssets;
};