/Engine/Source/Runtime/Engine/Classes/GameFramework/GameStateBase.h
Helper template to returns the GameModeBase default object cast to the right type
template<class T> const T * GetDefaultGameMode() const