Bazaar developer reference

CvPlotManager::GetLayerIndexID(int) const

Defined in
CvPlotManager.cpp, line 158
Class
CvPlotManager
Hook name
CivHooks::CvPlotManager_GetLayerIndexID

Hooks

static bool BeforeCvPlotManager_GetLayerIndexID(const CvPlotManager* self, int iLayerIndex, uint& result);static void AfterCvPlotManager_GetLayerIndexID(const CvPlotManager* self, int iLayerIndex, uint& result);static uint ReplaceCvPlotManager_GetLayerIndexID(uint (*original)(const CvPlotManager*, int), const CvPlotManager* self, int iLayerIndex);CivRegisterBefore<CivHooks::CvPlotManager_GetLayerIndexID>(host, &BeforeCvPlotManager_GetLayerIndexID);CivRegisterAfter<CivHooks::CvPlotManager_GetLayerIndexID>(host, &AfterCvPlotManager_GetLayerIndexID);CivRegisterReplace<CivHooks::CvPlotManager_GetLayerIndexID>(host, &ReplaceCvPlotManager_GetLayerIndexID);

Code

158uint CvPlotManager::GetLayerIndexID(int iLayerIndex) const159{160	if (iLayerIndex >= 0 && iLayerIndex < (int)m_aLayers.size())161		return m_aLayers[iLayerIndex].GetID();162163	return (uint)-1;164}

Calls