Bazaar developer reference

CvGame::DoMinorGiftGold(PlayerTypes, int)

Defined in
CvGame.cpp, line 10526
Class
CvGame
Hook name
CivHooks::CvGame_DoMinorGiftGold

Hooks

static bool BeforeCvGame_DoMinorGiftGold(CvGame* self, PlayerTypes eMinor, int iNumGold);static void AfterCvGame_DoMinorGiftGold(CvGame* self, PlayerTypes eMinor, int iNumGold);static void ReplaceCvGame_DoMinorGiftGold(void (*original)(CvGame*, PlayerTypes, int), CvGame* self, PlayerTypes eMinor, int iNumGold);CivRegisterBefore<CivHooks::CvGame_DoMinorGiftGold>(host, &BeforeCvGame_DoMinorGiftGold);CivRegisterAfter<CivHooks::CvGame_DoMinorGiftGold>(host, &AfterCvGame_DoMinorGiftGold);CivRegisterReplace<CivHooks::CvGame_DoMinorGiftGold>(host, &ReplaceCvGame_DoMinorGiftGold);

Code

10525/// Amount of Gold being gifted to the Minor by the active player10526void CvGame::DoMinorGiftGold(PlayerTypes eMinor, int iNumGold)10527{10528	CvAssertMsg(eMinor >= MAX_MAJOR_CIVS, "eMinor is not in expected range (invalid Index)");10529	CvAssertMsg(eMinor < MAX_CIV_PLAYERS, "eMinor is not in expected range (invalid Index)");1053010531	gDLL->sendMinorGiftGold(eMinor, iNumGold);10532}

Calls

Called by