Bazaar developer reference

CvDllPlayer::GetCivilizationType() const

Defined in
CvDllPlayer.cpp, line 223
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetCivilizationType

Hooks

static bool BeforeCvDllPlayer_GetCivilizationType(const CvDllPlayer* self, CivilizationTypes& result);static void AfterCvDllPlayer_GetCivilizationType(const CvDllPlayer* self, CivilizationTypes& result);static CivilizationTypes ReplaceCvDllPlayer_GetCivilizationType(CivilizationTypes (*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_GetCivilizationType::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetCivilizationType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetCivilizationType::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetCivilizationType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetCivilizationType::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetCivilizationType);

Code

223CivilizationTypes CvDllPlayer::GetCivilizationType() const224{225	return m_pPlayer->getCivilizationType();226}

Calls