Bazaar developer reference

CvReplayInfo::isGameOption(GameOptionTypes) const

Defined in
CvReplayInfo.cpp, line 369
Class
CvReplayInfo
Hook name
CivHooks::CvReplayInfo_isGameOption

Hooks

static bool BeforeCvReplayInfo_isGameOption(const CvReplayInfo* self, GameOptionTypes eOption, bool& result);static void AfterCvReplayInfo_isGameOption(const CvReplayInfo* self, GameOptionTypes eOption, bool& result);static bool ReplaceCvReplayInfo_isGameOption(bool (*original)(const CvReplayInfo*, GameOptionTypes), const CvReplayInfo* self, GameOptionTypes eOption);CivRegisterBefore<CivHooks::CvReplayInfo_isGameOption>(host, &BeforeCvReplayInfo_isGameOption);CivRegisterAfter<CivHooks::CvReplayInfo_isGameOption>(host, &AfterCvReplayInfo_isGameOption);CivRegisterReplace<CivHooks::CvReplayInfo_isGameOption>(host, &ReplaceCvReplayInfo_isGameOption);

Code

369bool CvReplayInfo::isGameOption(GameOptionTypes eOption) const370{371	for(uint i = 0; i < m_listGameOptions.size(); i++)372	{373		if(m_listGameOptions[i] == eOption)374		{375			return true;376		}377	}378	return false;379}

Calls