enthusiastic-hat-club/Source/FF/FFGameModeBase.cpp
Dexter Haslem 9ec0b52420 def going to need a full blown player controller, so..
move input to the player controller, need to fwd  to character
2017-03-28 21:15:40 -06:00

22 lines
653 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "FF.h"
#include "FFGameModeBase.h"
#include "Private/FFPlayerController.h"
AFFGameModeBase::AFFGameModeBase() : Super()
{
static ConstructorHelpers::FClassFinder<APawn> BaseCharacterClassFinder(TEXT("/Game/Blueprints/FFCharacterBase"));
if (BaseCharacterClassFinder.Succeeded())
{
DefaultPawnClass = BaseCharacterClassFinder.Class;
}
else
{
DefaultPawnClass = ADefaultPawn::StaticClass();
UE_LOG(LogTemp, Error, TEXT("Failed to find FFCharacterBase, check data blueprint exists"));
}
PlayerControllerClass = AFFPlayerController::StaticClass();
}