Bazaar developer reference

CvPreGame::SetGameOptions(const std::vector<CustomOption> &)

Defined in
CvPreGame.cpp, line 1050
Hook name
CivHooks::CvPreGame_SetGameOptions

Hooks

static bool BeforeCvPreGame_SetGameOptions(const std::vector<CvPreGame::CustomOption> & gameOptions, bool& result);static void AfterCvPreGame_SetGameOptions(const std::vector<CvPreGame::CustomOption> & gameOptions, bool& result);static bool ReplaceCvPreGame_SetGameOptions(bool (*original)(const std::vector<CvPreGame::CustomOption> &), const std::vector<CvPreGame::CustomOption> & gameOptions);CivRegisterBefore<CivHooks::CvPreGame_SetGameOptions>(host, &BeforeCvPreGame_SetGameOptions);CivRegisterAfter<CivHooks::CvPreGame_SetGameOptions>(host, &AfterCvPreGame_SetGameOptions);CivRegisterReplace<CivHooks::CvPreGame_SetGameOptions>(host, &ReplaceCvPreGame_SetGameOptions);

Code

1050bool SetGameOptions(const std::vector<CustomOption>& gameOptions)1051{1052	s_GameOptions = gameOptions;1053	s_GameOptionsHash.clear();1054	for(size_t i = 0; i < s_GameOptions.size(); i++)1055	{1056		const CustomOption& kOption = s_GameOptions[i];1057		s_GameOptionsHash[FString::Hash(kOption.GetName())] = i;1058	}10591060	SyncGameOptionsWithEnumList();1061	return true;1062}

Calls

Called by