Bazaar developer reference

CvBaseInfo::operator==(const CvBaseInfo &) const

Defined in
CvInfos.cpp, line 88
Class
CvBaseInfo
Hook name
CivHooks::CvBaseInfo_op_eq

Hooks

static bool BeforeCvBaseInfo_op_eq(const CvBaseInfo* self, const CvBaseInfo& rhs, bool& result);static void AfterCvBaseInfo_op_eq(const CvBaseInfo* self, const CvBaseInfo& rhs, bool& result);static bool ReplaceCvBaseInfo_op_eq(bool (*original)(const CvBaseInfo*, const CvBaseInfo&), const CvBaseInfo* self, const CvBaseInfo& rhs);CivRegisterBefore<CivHooks::CvBaseInfo_op_eq>(host, &BeforeCvBaseInfo_op_eq);CivRegisterAfter<CivHooks::CvBaseInfo_op_eq>(host, &AfterCvBaseInfo_op_eq);CivRegisterReplace<CivHooks::CvBaseInfo_op_eq>(host, &ReplaceCvBaseInfo_op_eq);

Code

88bool CvBaseInfo::operator==(const CvBaseInfo& rhs) const89{90	if(this == &rhs) return true;91	if(m_iID != rhs.m_iID) return false;92	if(m_strCivilopedia != rhs.m_strCivilopedia) return false;93	if(m_strDescription != rhs.m_strDescription) return false;94	if(m_strHelp != rhs.m_strHelp) return false;95	if(m_strDisabledHelp != rhs.m_strDisabledHelp) return false;96	if(m_strStrategy != rhs.m_strStrategy) return false;97	if(m_strType != rhs.m_strType) return false;98	if(m_strTextKey != rhs.m_strTextKey) return false;99	if(m_strText != rhs.m_strText) return false;100	return true;101}

Calls

Called by