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.
36 lines
684 B
36 lines
684 B
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "EngineUtils.h"
|
|
#include "MyPlayerController.h"
|
|
#include "MyGameState.h"
|
|
#include "MyPawn.h"
|
|
#include "MyPlayerStart.h"
|
|
#include "GameFramework/GameMode.h"
|
|
#include "MyGameMode.generated.h"
|
|
|
|
|
|
|
|
UCLASS()
|
|
class TURNBASEDTUTORIAL_API AMyGameMode : public AGameMode
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
AMyGameMode();
|
|
|
|
void BeginPlay() override;
|
|
|
|
AActor *ChoosePlayerStart(AController * Player);
|
|
private:
|
|
void StartGame();
|
|
|
|
void InitializeSpawnPointsIfNeeded();
|
|
|
|
AMyPlayerController *GetPlayerController();
|
|
|
|
TMap<uint8, AMyPlayerStart*> SpawnPoints;
|
|
};
|