OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
GameStarter Class Reference

#include <GameStarter.h>

Public Member Functions

 GameStarter (GameStarterOptions options)
 
 ~GameStarter ()
 
PlatformApplicationapplication () const
 
GameConfigconfig () const
 
void run ()
 
void runInstrumented (std::function< void(EngineController *)> controlRoutine)
 

Private Member Functions

void initWithLogger ()
 

Static Private Member Functions

static void resolveUserPath (Environment *environment, GameStarterOptions *options)
 
static void resolveDataPath (Environment *environment, GameStarterOptions *options)
 
static void failOnInvalidPath (std::string_view dataPath, Platform *platform)
 
static void migrateUserData ()
 

Private Attributes

GameStarterOptions _options
 
FileSystemStarter _fsStarter
 
LogStarter _logStarter
 
std::unique_ptr< Environment_environment
 
std::shared_ptr< GameConfig_config
 
std::unique_ptr< Platform_platform
 
std::unique_ptr< PlatformApplication_application
 
std::unique_ptr< Renderer_renderer
 
std::unique_ptr< ScriptingSystem_scriptingSystem
 
std::unique_ptr< OverlaySystem_overlaySystem
 
std::unique_ptr< Engine_engine
 
std::shared_ptr< Game_game
 

Constructor & Destructor Documentation

◆ GameStarter()

GameStarter::GameStarter ( GameStarterOptions  options)
explicit

◆ ~GameStarter()

GameStarter::~GameStarter ( )

Member Function Documentation

◆ application()

PlatformApplication * GameStarter::application ( ) const
inline

◆ config()

GameConfig * GameStarter::config ( ) const
inline

◆ failOnInvalidPath()

void GameStarter::failOnInvalidPath ( std::string_view  dataPath,
Platform platform 
)
staticprivate

◆ initWithLogger()

void GameStarter::initWithLogger ( )
private

◆ migrateUserData()

void GameStarter::migrateUserData ( )
staticprivate

◆ resolveDataPath()

void GameStarter::resolveDataPath ( Environment environment,
GameStarterOptions options 
)
staticprivate

◆ resolveUserPath()

void GameStarter::resolveUserPath ( Environment environment,
GameStarterOptions options 
)
staticprivate

◆ run()

void GameStarter::run ( )

◆ runInstrumented()

void GameStarter::runInstrumented ( std::function< void(EngineController *)>  controlRoutine)

Member Data Documentation

◆ _application

std::unique_ptr<PlatformApplication> GameStarter::_application
private

◆ _config

std::shared_ptr<GameConfig> GameStarter::_config
private

◆ _engine

std::unique_ptr<Engine> GameStarter::_engine
private

◆ _environment

std::unique_ptr<Environment> GameStarter::_environment
private

◆ _fsStarter

FileSystemStarter GameStarter::_fsStarter
private

◆ _game

std::shared_ptr<Game> GameStarter::_game
private

◆ _logStarter

LogStarter GameStarter::_logStarter
private

◆ _options

GameStarterOptions GameStarter::_options
private

◆ _overlaySystem

std::unique_ptr<OverlaySystem> GameStarter::_overlaySystem
private

◆ _platform

std::unique_ptr<Platform> GameStarter::_platform
private

◆ _renderer

std::unique_ptr<Renderer> GameStarter::_renderer
private

◆ _scriptingSystem

std::unique_ptr<ScriptingSystem> GameStarter::_scriptingSystem
private

The documentation for this class was generated from the following files: