Bazaar developer reference

CvPreGame::CustomOption::operator==(const CustomOption &) const

Defined in
CvPreGame.cpp, line 123
Class
CvPreGame::CustomOption
Hook name
CivHooks::CvPreGame_CustomOption_op_eq

Hooks

static bool BeforeCvPreGame_CustomOption_op_eq(const CvPreGame::CustomOption* self, const CvPreGame::CustomOption & option, bool& result);static void AfterCvPreGame_CustomOption_op_eq(const CvPreGame::CustomOption* self, const CvPreGame::CustomOption & option, bool& result);static bool ReplaceCvPreGame_CustomOption_op_eq(bool (*original)(const CvPreGame::CustomOption*, const CvPreGame::CustomOption &), const CvPreGame::CustomOption* self, const CvPreGame::CustomOption & option);CivRegisterBefore<CivHooks::CvPreGame_CustomOption_op_eq>(host, &BeforeCvPreGame_CustomOption_op_eq);CivRegisterAfter<CivHooks::CvPreGame_CustomOption_op_eq>(host, &AfterCvPreGame_CustomOption_op_eq);CivRegisterReplace<CivHooks::CvPreGame_CustomOption_op_eq>(host, &ReplaceCvPreGame_CustomOption_op_eq);

Code

123bool CustomOption::operator ==(const CustomOption& option) const124{125	if(m_iValue == option.m_iValue)126	{127		if(strncmp(m_szOptionName, option.m_szOptionName, 64) == 0)128			return true;129	}130131	return false;132}

Calls