Bazaar developer reference

CvLuaPlayer::lChangeBaseBuildingGoldMaintenance(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 2008
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lChangeBaseBuildingGoldMaintenance

Hooks

static bool BeforeCvLuaPlayer_lChangeBaseBuildingGoldMaintenance(lua_State* L, int& result);static void AfterCvLuaPlayer_lChangeBaseBuildingGoldMaintenance(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lChangeBaseBuildingGoldMaintenance(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lChangeBaseBuildingGoldMaintenance>(host, &BeforeCvLuaPlayer_lChangeBaseBuildingGoldMaintenance);CivRegisterAfter<CivHooks::CvLuaPlayer_lChangeBaseBuildingGoldMaintenance>(host, &AfterCvLuaPlayer_lChangeBaseBuildingGoldMaintenance);CivRegisterReplace<CivHooks::CvLuaPlayer_lChangeBaseBuildingGoldMaintenance>(host, &ReplaceCvLuaPlayer_lChangeBaseBuildingGoldMaintenance);

Code

2007//int ChangeBaseBuildingGoldMaintenance();2008int CvLuaPlayer::lChangeBaseBuildingGoldMaintenance(lua_State* L)2009{2010	CvPlayerAI* pkPlayer = GetInstance(L);2011	const int iValue = lua_tointeger(L, 2);20122013	pkPlayer->GetTreasury()->ChangeBaseBuildingGoldMaintenance(iValue);2014	return 1;2015}

Calls

Called by