Bazaar developer reference

CvDllGameDeals::GetHistoricDeal(PlayerTypes, unsigned int)

Defined in
CvDllGameDeals.cpp, line 144
Class
CvDllGameDeals
Hook name
CivHooks::CvDllGameDeals_GetHistoricDeal

Hooks

static bool BeforeCvDllGameDeals_GetHistoricDeal(CvDllGameDeals* self, PlayerTypes ePlayer, unsigned int indx, ICvDeal1*& result);static void AfterCvDllGameDeals_GetHistoricDeal(CvDllGameDeals* self, PlayerTypes ePlayer, unsigned int indx, ICvDeal1*& result);static ICvDeal1* ReplaceCvDllGameDeals_GetHistoricDeal(ICvDeal1* (*original)(CvDllGameDeals*, PlayerTypes, unsigned int), CvDllGameDeals* self, PlayerTypes ePlayer, unsigned int indx);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameDeals_GetHistoricDeal::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameDeals_GetHistoricDeal);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameDeals_GetHistoricDeal::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameDeals_GetHistoricDeal);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameDeals_GetHistoricDeal::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameDeals_GetHistoricDeal);

Code

144ICvDeal1* CvDllGameDeals::GetHistoricDeal(PlayerTypes ePlayer, unsigned int indx)145{146	CvDeal* pDeal = m_pGameDeals->GetHistoricDeal(ePlayer, indx);147	return (NULL != pDeal)? new CvDllDeal(pDeal) : NULL;148}

Calls