Bazaar developer reference

CvDllPlot::GetPlotCity() const

Defined in
CvDllPlot.cpp, line 270
Class
CvDllPlot
Hook name
CivHooks::CvDllPlot_GetPlotCity

Hooks

static bool BeforeCvDllPlot_GetPlotCity(const CvDllPlot* self, ICvCity1*& result);static void AfterCvDllPlot_GetPlotCity(const CvDllPlot* self, ICvCity1*& result);static ICvCity1* ReplaceCvDllPlot_GetPlotCity(ICvCity1* (*original)(const CvDllPlot*), const CvDllPlot* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetPlotCity::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlot_GetPlotCity);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetPlotCity::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlot_GetPlotCity);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetPlotCity::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlot_GetPlotCity);

Code

270ICvCity1* CvDllPlot::GetPlotCity() const271{272	CvCity* pkCity = m_pPlot->getPlotCity();273	return (NULL != pkCity)? new CvDllCity(pkCity) : NULL;274}

Calls