Bazaar developer reference

CvDllPlayer::CalculateBaseNetGold()

Defined in
CvDllPlayer.cpp, line 366
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_CalculateBaseNetGold

Hooks

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

Code

366int CvDllPlayer::CalculateBaseNetGold()367{368	return m_pPlayer->GetTreasury()->CalculateBaseNetGold();369}

Calls