Bazaar developer reference

CvDllPathFinderUpdateList::GetCurrent()

Defined in
CvDllPathFinderUpdate.cpp, line 179
Class
CvDllPathFinderUpdateList
Hook name
CivHooks::CvDllPathFinderUpdateList_GetCurrent

Hooks

static bool BeforeCvDllPathFinderUpdateList_GetCurrent(CvDllPathFinderUpdateList* self, ICvUnknown*& result);static void AfterCvDllPathFinderUpdateList_GetCurrent(CvDllPathFinderUpdateList* self, ICvUnknown*& result);static ICvUnknown* ReplaceCvDllPathFinderUpdateList_GetCurrent(ICvUnknown* (*original)(CvDllPathFinderUpdateList*), CvDllPathFinderUpdateList* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPathFinderUpdateList_GetCurrent::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPathFinderUpdateList_GetCurrent);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPathFinderUpdateList_GetCurrent::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPathFinderUpdateList_GetCurrent);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPathFinderUpdateList_GetCurrent::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPathFinderUpdateList_GetCurrent);

Code

179ICvUnknown* CvDllPathFinderUpdateList::GetCurrent()180{181	if(m_iIndex > -1 && (size_t)m_iIndex < m_updates.size())182	{183		const CvDllPathFinderUpdateListData& data = m_updates[m_iIndex];184185		return new CvDllPathFinderUpdate(data.iX, data.iY, data.iTurnNumber);186	}187188	return NULL;189}

Calls