Bazaar developer reference

CvDllPlot::GetBuildTime(BuildTypes, PlayerTypes) const

Defined in
CvDllPlot.cpp, line 115
Class
CvDllPlot
Hook name
CivHooks::CvDllPlot_GetBuildTime

Hooks

static bool BeforeCvDllPlot_GetBuildTime(const CvDllPlot* self, BuildTypes eBuild, PlayerTypes ePlayer, int& result);static void AfterCvDllPlot_GetBuildTime(const CvDllPlot* self, BuildTypes eBuild, PlayerTypes ePlayer, int& result);static int ReplaceCvDllPlot_GetBuildTime(int (*original)(const CvDllPlot*, BuildTypes, PlayerTypes), const CvDllPlot* self, BuildTypes eBuild, PlayerTypes ePlayer);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetBuildTime::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlot_GetBuildTime);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetBuildTime::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlot_GetBuildTime);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetBuildTime::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlot_GetBuildTime);

Code

115int CvDllPlot::GetBuildTime(BuildTypes eBuild, PlayerTypes ePlayer) const116{117	return m_pPlot->getBuildTime(eBuild, ePlayer);118}

Calls