Bazaar developer reference

CvLuaPlayer::lGetLifetimeGrossGold(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 2335
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetLifetimeGrossGold

Hooks

static bool BeforeCvLuaPlayer_lGetLifetimeGrossGold(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetLifetimeGrossGold(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetLifetimeGrossGold(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetLifetimeGrossGold>(host, &BeforeCvLuaPlayer_lGetLifetimeGrossGold);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetLifetimeGrossGold>(host, &AfterCvLuaPlayer_lGetLifetimeGrossGold);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetLifetimeGrossGold>(host, &ReplaceCvLuaPlayer_lGetLifetimeGrossGold);

Code

2334//int GetLifetimeGrossGold();2335int CvLuaPlayer::lGetLifetimeGrossGold(lua_State* L)2336{2337	CvPlayerAI* pkPlayer = GetInstance(L);2338	lua_pushinteger(L, pkPlayer->GetTreasury()->GetLifetimeGrossGold());2339	return 1;2340}

Calls

Called by