Bazaar developer reference

CvDllCity::GetCityPlotFromIndex(int) const

Defined in
CvDllCity.cpp, line 198
Class
CvDllCity
Hook name
CivHooks::CvDllCity_GetCityPlotFromIndex

Hooks

static bool BeforeCvDllCity_GetCityPlotFromIndex(const CvDllCity* self, int iIndex, ICvPlot1*& result);static void AfterCvDllCity_GetCityPlotFromIndex(const CvDllCity* self, int iIndex, ICvPlot1*& result);static ICvPlot1* ReplaceCvDllCity_GetCityPlotFromIndex(ICvPlot1* (*original)(const CvDllCity*, int), const CvDllCity* self, int iIndex);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllCity_GetCityPlotFromIndex::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllCity_GetCityPlotFromIndex);host->RegisterHook(host->pluginIndex, CivHooks::CvDllCity_GetCityPlotFromIndex::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllCity_GetCityPlotFromIndex);host->RegisterHook(host->pluginIndex, CivHooks::CvDllCity_GetCityPlotFromIndex::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllCity_GetCityPlotFromIndex);

Code

198ICvPlot1* CvDllCity::GetCityPlotFromIndex(int iIndex) const199{200	CvPlot* pkPlot = m_pCity->GetCityCitizens()->GetCityPlotFromIndex(iIndex);201	return (NULL != pkPlot)? new CvDllPlot(pkPlot) : NULL;202}

Calls