Bazaar developer reference

CvPreGame::setGameType(GameTypes)

Defined in
CvPreGame.cpp, line 2551
Hook name
CivHooks::CvPreGame_setGameType_with_GameTypes

Hooks

static bool BeforeCvPreGame_setGameType_with_GameTypes(GameTypes g);static void AfterCvPreGame_setGameType_with_GameTypes(GameTypes g);static void ReplaceCvPreGame_setGameType_with_GameTypes(void (*original)(GameTypes), GameTypes g);CivRegisterBefore<CivHooks::CvPreGame_setGameType_with_GameTypes>(host, &BeforeCvPreGame_setGameType_with_GameTypes);CivRegisterAfter<CivHooks::CvPreGame_setGameType_with_GameTypes>(host, &AfterCvPreGame_setGameType_with_GameTypes);CivRegisterReplace<CivHooks::CvPreGame_setGameType_with_GameTypes>(host, &ReplaceCvPreGame_setGameType_with_GameTypes);

Code

2551void setGameType(GameTypes g)2552{2553	s_gameType = g;2554	if(s_gameType != GAME_NETWORK_MULTIPLAYER)2555		s_isInternetGame = false;2556}

Calls

Called by