Bazaar developer reference

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

Defined in
CvPreGame.cpp, line 116
Class
CvPreGame::CustomOption
Hook name
CivHooks::CvPreGame_CustomOption_op_assign

Hooks

static bool BeforeCvPreGame_CustomOption_op_assign(CvPreGame::CustomOption* self, const CvPreGame::CustomOption & rhs, CvPreGame::CustomOption*& result);static void AfterCvPreGame_CustomOption_op_assign(CvPreGame::CustomOption* self, const CvPreGame::CustomOption & rhs, CvPreGame::CustomOption*& result);static CvPreGame::CustomOption & ReplaceCvPreGame_CustomOption_op_assign(CvPreGame::CustomOption & (*original)(CvPreGame::CustomOption*, const CvPreGame::CustomOption &), CvPreGame::CustomOption* self, const CvPreGame::CustomOption & rhs);CivRegisterBefore<CivHooks::CvPreGame_CustomOption_op_assign>(host, &BeforeCvPreGame_CustomOption_op_assign);CivRegisterAfter<CivHooks::CvPreGame_CustomOption_op_assign>(host, &AfterCvPreGame_CustomOption_op_assign);CivRegisterReplace<CivHooks::CvPreGame_CustomOption_op_assign>(host, &ReplaceCvPreGame_CustomOption_op_assign);

Code

116CustomOption& CustomOption::operator=(const CustomOption& rhs)117{118	m_iValue = rhs.m_iValue;119	strcpy_s(m_szOptionName, rhs.m_szOptionName);120	return (*this);121}

Calls