Bazaar developer reference

CvDllPathFinderUpdate::GetTurnNumber() const

Defined in
CvDllPathFinderUpdate.cpp, line 87
Class
CvDllPathFinderUpdate
Hook name
CivHooks::CvDllPathFinderUpdate_GetTurnNumber

Hooks

static bool BeforeCvDllPathFinderUpdate_GetTurnNumber(const CvDllPathFinderUpdate* self, int& result);static void AfterCvDllPathFinderUpdate_GetTurnNumber(const CvDllPathFinderUpdate* self, int& result);static int ReplaceCvDllPathFinderUpdate_GetTurnNumber(int (*original)(const CvDllPathFinderUpdate*), const CvDllPathFinderUpdate* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPathFinderUpdate_GetTurnNumber::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPathFinderUpdate_GetTurnNumber);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPathFinderUpdate_GetTurnNumber::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPathFinderUpdate_GetTurnNumber);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPathFinderUpdate_GetTurnNumber::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPathFinderUpdate_GetTurnNumber);

Code

87int CvDllPathFinderUpdate::GetTurnNumber() const88{89	return m_iTurnNumber;90}