Bazaar developer reference

CvDllPlayer::GetID() const

Defined in
CvDllPlayer.cpp, line 213
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetID

Hooks

static bool BeforeCvDllPlayer_GetID(const CvDllPlayer* self, PlayerTypes& result);static void AfterCvDllPlayer_GetID(const CvDllPlayer* self, PlayerTypes& result);static PlayerTypes ReplaceCvDllPlayer_GetID(PlayerTypes (*original)(const CvDllPlayer*), const CvDllPlayer* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetID::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetID);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetID::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetID);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetID::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetID);

Code

213PlayerTypes CvDllPlayer::GetID() const214{215	return m_pPlayer->GetID();216}

Calls