Bazaar developer reference

CvLuaPlayer::lSetBaseBuildingGoldMaintenance(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 1998
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lSetBaseBuildingGoldMaintenance

Hooks

static bool BeforeCvLuaPlayer_lSetBaseBuildingGoldMaintenance(lua_State* L, int& result);static void AfterCvLuaPlayer_lSetBaseBuildingGoldMaintenance(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lSetBaseBuildingGoldMaintenance(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lSetBaseBuildingGoldMaintenance>(host, &BeforeCvLuaPlayer_lSetBaseBuildingGoldMaintenance);CivRegisterAfter<CivHooks::CvLuaPlayer_lSetBaseBuildingGoldMaintenance>(host, &AfterCvLuaPlayer_lSetBaseBuildingGoldMaintenance);CivRegisterReplace<CivHooks::CvLuaPlayer_lSetBaseBuildingGoldMaintenance>(host, &ReplaceCvLuaPlayer_lSetBaseBuildingGoldMaintenance);

Code

1997//int SetBaseBuildingGoldMaintenance();1998int CvLuaPlayer::lSetBaseBuildingGoldMaintenance(lua_State* L)1999{2000	CvPlayerAI* pkPlayer = GetInstance(L);2001	const int iValue = lua_tointeger(L, 2);20022003	pkPlayer->GetTreasury()->SetBaseBuildingGoldMaintenance(iValue);2004	return 1;2005}

Calls

Called by