CvPreGame::pushGameType(GameTypes)
- Defined in
- CvPreGame.cpp, line 2583
- Hook name
CivHooks::CvPreGame_pushGameType
Hooks
static bool BeforeCvPreGame_pushGameType(GameTypes g);static void AfterCvPreGame_pushGameType(GameTypes g);static void ReplaceCvPreGame_pushGameType(void (*original)(GameTypes), GameTypes g);CivRegisterBefore<CivHooks::CvPreGame_pushGameType>(host, &BeforeCvPreGame_pushGameType);CivRegisterAfter<CivHooks::CvPreGame_pushGameType>(host, &AfterCvPreGame_pushGameType);CivRegisterReplace<CivHooks::CvPreGame_pushGameType>(host, &ReplaceCvPreGame_pushGameType);
Code
2582#if defined(MOD_API_EXTENSIONS)2583void pushGameType(GameTypes g)2584{2585 if (s_pushedGameType == GAME_TYPE_NONE) {2586 s_pushedGameType = gameType();2587 setGameType(g);2588 }2589}