Bazaar developer reference

CvDllDeal::GetDuration()

Defined in
CvDllDeal.cpp, line 100
Class
CvDllDeal
Hook name
CivHooks::CvDllDeal_GetDuration

Hooks

static bool BeforeCvDllDeal_GetDuration(CvDllDeal* self, unsigned int& result);static void AfterCvDllDeal_GetDuration(CvDllDeal* self, unsigned int& result);static unsigned int ReplaceCvDllDeal_GetDuration(unsigned int (*original)(CvDllDeal*), CvDllDeal* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllDeal_GetDuration::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllDeal_GetDuration);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDeal_GetDuration::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllDeal_GetDuration);host->RegisterHook(host->pluginIndex, CivHooks::CvDllDeal_GetDuration::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllDeal_GetDuration);

Code

100unsigned int CvDllDeal::GetDuration()101{102	return m_pDeal->GetDuration();103}

Calls