Bazaar developer reference

CvDllPlayer::GetCurrentEra() const

Defined in
CvDllPlayer.cpp, line 238
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetCurrentEra

Hooks

static bool BeforeCvDllPlayer_GetCurrentEra(const CvDllPlayer* self, EraTypes& result);static void AfterCvDllPlayer_GetCurrentEra(const CvDllPlayer* self, EraTypes& result);static EraTypes ReplaceCvDllPlayer_GetCurrentEra(EraTypes (*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_GetCurrentEra::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetCurrentEra);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetCurrentEra::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetCurrentEra);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetCurrentEra::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetCurrentEra);

Code

238EraTypes CvDllPlayer::GetCurrentEra() const239{240	return m_pPlayer->GetCurrentEra();241}

Calls