Bazaar developer reference

CvTechEntry::IsTradeAgreementTradingAllowed() const

Defined in
CvTechClasses.cpp, line 448
Class
CvTechEntry
Hook name
CivHooks::CvTechEntry_IsTradeAgreementTradingAllowed

Hooks

static bool BeforeCvTechEntry_IsTradeAgreementTradingAllowed(const CvTechEntry* self, bool& result);static void AfterCvTechEntry_IsTradeAgreementTradingAllowed(const CvTechEntry* self, bool& result);static bool ReplaceCvTechEntry_IsTradeAgreementTradingAllowed(bool (*original)(const CvTechEntry*), const CvTechEntry* self);CivRegisterBefore<CivHooks::CvTechEntry_IsTradeAgreementTradingAllowed>(host, &BeforeCvTechEntry_IsTradeAgreementTradingAllowed);CivRegisterAfter<CivHooks::CvTechEntry_IsTradeAgreementTradingAllowed>(host, &AfterCvTechEntry_IsTradeAgreementTradingAllowed);CivRegisterReplace<CivHooks::CvTechEntry_IsTradeAgreementTradingAllowed>(host, &ReplaceCvTechEntry_IsTradeAgreementTradingAllowed);

Code

447/// Can you form Trade Agreements?448bool CvTechEntry::IsTradeAgreementTradingAllowed() const449{450	return m_bTradeAgreementTradingAllowed;451}

Called by