Bazaar developer reference

CvDllGame::ChangeNumGameTurnActive(int, const char *)

Defined in
CvDllGame.cpp, line 113
Class
CvDllGame
Hook name
CivHooks::CvDllGame_ChangeNumGameTurnActive

Hooks

static bool BeforeCvDllGame_ChangeNumGameTurnActive(CvDllGame* self, int iChange, const char* why);static void AfterCvDllGame_ChangeNumGameTurnActive(CvDllGame* self, int iChange, const char* why);static void ReplaceCvDllGame_ChangeNumGameTurnActive(void (*original)(CvDllGame*, int, const char*), CvDllGame* self, int iChange, const char* why);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_ChangeNumGameTurnActive::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGame_ChangeNumGameTurnActive);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_ChangeNumGameTurnActive::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGame_ChangeNumGameTurnActive);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_ChangeNumGameTurnActive::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGame_ChangeNumGameTurnActive);

Code

113void CvDllGame::ChangeNumGameTurnActive(int iChange, const char* why)114{115	std::string strWhy;116	if(why != NULL && strlen(why) > 0)117		strWhy = why;118119	m_pGame->changeNumGameTurnActive(iChange, strWhy);120}

Calls