enthusiastic-hat-club/Source/FF/FFGameModeBase.cpp

19 lines
550 B
C++
Raw Normal View History

2017-03-29 01:25:14 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#include "FF.h"
#include "FFGameModeBase.h"
2017-03-29 02:21:20 +00:00
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"));
}
}