Bazaar developer reference

CvDllPlayer::GetLeaderType() const

Defined in
CvDllPlayer.cpp, line 228
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetLeaderType

Hooks

static bool BeforeCvDllPlayer_GetLeaderType(const CvDllPlayer* self, LeaderHeadTypes& result);static void AfterCvDllPlayer_GetLeaderType(const CvDllPlayer* self, LeaderHeadTypes& result);static LeaderHeadTypes ReplaceCvDllPlayer_GetLeaderType(LeaderHeadTypes (*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_GetLeaderType::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetLeaderType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetLeaderType::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetLeaderType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetLeaderType::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetLeaderType);

Code

228LeaderHeadTypes CvDllPlayer::GetLeaderType() const229{230	return m_pPlayer->getLeaderType();231}

Calls