Bazaar developer reference

CvDllGameDeals::GetCurrentDeal(PlayerTypes, unsigned int)

Defined in
CvDllGameDeals.cpp, line 138
Class
CvDllGameDeals
Hook name
CivHooks::CvDllGameDeals_GetCurrentDeal

Hooks

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

Code

138ICvDeal1* CvDllGameDeals::GetCurrentDeal(PlayerTypes ePlayer, unsigned int index)139{140	CvDeal* pDeal = m_pGameDeals->GetCurrentDeal(ePlayer, index);141	return (NULL != pDeal)? new CvDllDeal(pDeal) : NULL;142}

Calls