Bazaar developer reference

CvDllPlot::GetTerrainType() const

Defined in
CvDllPlot.cpp, line 220
Class
CvDllPlot
Hook name
CivHooks::CvDllPlot_GetTerrainType

Hooks

static bool BeforeCvDllPlot_GetTerrainType(const CvDllPlot* self, TerrainTypes& result);static void AfterCvDllPlot_GetTerrainType(const CvDllPlot* self, TerrainTypes& result);static TerrainTypes ReplaceCvDllPlot_GetTerrainType(TerrainTypes (*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_GetTerrainType::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlot_GetTerrainType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetTerrainType::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlot_GetTerrainType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlot_GetTerrainType::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlot_GetTerrainType);

Code

220TerrainTypes CvDllPlot::GetTerrainType() const221{222	return m_pPlot->getTerrainType();223}

Calls