Bazaar developer reference

CvDllPlayer::GetCity(int)

Defined in
CvDllPlayer.cpp, line 280
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetCity

Hooks

static bool BeforeCvDllPlayer_GetCity(CvDllPlayer* self, int iID, ICvCity1*& result);static void AfterCvDllPlayer_GetCity(CvDllPlayer* self, int iID, ICvCity1*& result);static ICvCity1* ReplaceCvDllPlayer_GetCity(ICvCity1* (*original)(CvDllPlayer*, int), CvDllPlayer* self, int iID);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetCity::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetCity);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetCity::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetCity);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetCity::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetCity);

Code

280ICvCity1* CvDllPlayer::GetCity(int iID)281{282	CvCity* pkCity = m_pPlayer->getCity(iID);283	return (NULL != pkCity)? new CvDllCity(pkCity) : NULL;284}

Calls