Bazaar developer reference

CvDllGame::GetElapsedGameTurns() const

Defined in
CvDllGame.cpp, line 178
Class
CvDllGame
Hook name
CivHooks::CvDllGame_GetElapsedGameTurns

Hooks

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

Code

178int CvDllGame::GetElapsedGameTurns() const179{180	return m_pGame->getElapsedGameTurns();181}

Calls