Bazaar developer reference

CvDllPathFinderUpdateList::MoveNext()

Defined in
CvDllPathFinderUpdate.cpp, line 155
Class
CvDllPathFinderUpdateList
Hook name
CivHooks::CvDllPathFinderUpdateList_MoveNext

Hooks

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

Code

155bool CvDllPathFinderUpdateList::MoveNext()156{157	if(m_iIndex == -1)	// In the uninitialized state?158	{159		if(!m_updates.empty())	// Any in the list?160		{161			m_iIndex = 0;	// then we can start162			return true;163		}164		else165			return false;	// Nope, just leave as -1 and return false166	}167168	if((size_t)m_iIndex < m_updates.size())169		m_iIndex++;170171	return (size_t)m_iIndex < m_updates.size();172}

Calls