Bazaar developer reference

CvTreasury::GetGold() const

Defined in
CvTreasury.cpp, line 121
Class
CvTreasury
Hook name
CivHooks::CvTreasury_GetGold

Hooks

static bool BeforeCvTreasury_GetGold(const CvTreasury* self, int& result);static void AfterCvTreasury_GetGold(const CvTreasury* self, int& result);static int ReplaceCvTreasury_GetGold(int (*original)(const CvTreasury*), const CvTreasury* self);CivRegisterBefore<CivHooks::CvTreasury_GetGold>(host, &BeforeCvTreasury_GetGold);CivRegisterAfter<CivHooks::CvTreasury_GetGold>(host, &AfterCvTreasury_GetGold);CivRegisterReplace<CivHooks::CvTreasury_GetGold>(host, &ReplaceCvTreasury_GetGold);

Code

120/// Returns current balance in treasury121int CvTreasury::GetGold() const122{123	return m_iGold / 100;124}

Called by

41 functions in 20 files