Bazaar developer reference

CvPreGame::SetGameOption(GameOptionTypes, int)

Defined in
CvPreGame.cpp, line 1039
Hook name
CivHooks::CvPreGame_SetGameOption_with_GameOptionTypes_int

Hooks

static bool BeforeCvPreGame_SetGameOption_with_GameOptionTypes_int(GameOptionTypes eOption, int iValue, bool& result);static void AfterCvPreGame_SetGameOption_with_GameOptionTypes_int(GameOptionTypes eOption, int iValue, bool& result);static bool ReplaceCvPreGame_SetGameOption_with_GameOptionTypes_int(bool (*original)(GameOptionTypes, int), GameOptionTypes eOption, int iValue);CivRegisterBefore<CivHooks::CvPreGame_SetGameOption_with_GameOptionTypes_int>(host, &BeforeCvPreGame_SetGameOption_with_GameOptionTypes_int);CivRegisterAfter<CivHooks::CvPreGame_SetGameOption_with_GameOptionTypes_int>(host, &AfterCvPreGame_SetGameOption_with_GameOptionTypes_int);CivRegisterReplace<CivHooks::CvPreGame_SetGameOption_with_GameOptionTypes_int>(host, &ReplaceCvPreGame_SetGameOption_with_GameOptionTypes_int);

Code

1039bool SetGameOption(GameOptionTypes eOption, int iValue)1040{1041	const char* str = ConvertGameOptionTypeToString(eOption);1042	if(str)1043	{1044		return SetGameOption(str, iValue);1045	}10461047	return false;1048}

Calls

Called by