26 lines
984 B
C++
26 lines
984 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "TerraformingAnubisGameMode.h"
|
|
#include "TerraformingAnubisPlayerController.h"
|
|
#include "TerraformingAnubisCharacter.h"
|
|
#include "UObject/ConstructorHelpers.h"
|
|
|
|
ATerraformingAnubisGameMode::ATerraformingAnubisGameMode()
|
|
{
|
|
// use our custom PlayerController class
|
|
PlayerControllerClass = ATerraformingAnubisPlayerController::StaticClass();
|
|
|
|
// set default pawn class to our Blueprinted character
|
|
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/TopDown/Blueprints/BP_TopDownCharacter"));
|
|
if (PlayerPawnBPClass.Class != nullptr)
|
|
{
|
|
DefaultPawnClass = PlayerPawnBPClass.Class;
|
|
}
|
|
|
|
// set default controller to our Blueprinted controller
|
|
static ConstructorHelpers::FClassFinder<APlayerController> PlayerControllerBPClass(TEXT("/Game/TopDown/Blueprints/BP_TopDownPlayerController"));
|
|
if(PlayerControllerBPClass.Class != NULL)
|
|
{
|
|
PlayerControllerClass = PlayerControllerBPClass.Class;
|
|
}
|
|
} |