Bazaar developer reference

CvDllPlayer::GetInstance()

Defined in
CvDllPlayer.cpp, line 89
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetInstance

Hooks

static bool BeforeCvDllPlayer_GetInstance(CvDllPlayer* self, CvPlayerAI*& result);static void AfterCvDllPlayer_GetInstance(CvDllPlayer* self, CvPlayerAI*& result);static CvPlayerAI* ReplaceCvDllPlayer_GetInstance(CvPlayerAI* (*original)(CvDllPlayer*), CvDllPlayer* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetInstance::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetInstance);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetInstance::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetInstance);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetInstance::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetInstance);

Code

89CvPlayerAI* CvDllPlayer::GetInstance()90{91	return m_pPlayer;92}