Bazaar developer reference

CvDllGameAsynch::GetActivePlayer()

Defined in
CvDllGameAsynch.cpp, line 77
Class
CvDllGameAsynch
Hook name
CivHooks::CvDllGameAsynch_GetActivePlayer

Hooks

static bool BeforeCvDllGameAsynch_GetActivePlayer(CvDllGameAsynch* self, PlayerTypes& result);static void AfterCvDllGameAsynch_GetActivePlayer(CvDllGameAsynch* self, PlayerTypes& result);static PlayerTypes ReplaceCvDllGameAsynch_GetActivePlayer(PlayerTypes (*original)(CvDllGameAsynch*), CvDllGameAsynch* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameAsynch_GetActivePlayer::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameAsynch_GetActivePlayer);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameAsynch_GetActivePlayer::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameAsynch_GetActivePlayer);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameAsynch_GetActivePlayer::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameAsynch_GetActivePlayer);

Code

77PlayerTypes CvDllGameAsynch::GetActivePlayer()78{79	return m_pGame->getActivePlayer();80}

Calls