Bazaar developer reference

CvLuaCity::lSetNumFreeBuilding(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 3998
Class
CvLuaCity
Not a hook point
member without a separate declaration

Code

3997//void SetNumFreeBuilding(BuildingTypes iIndex, int iNewValue);3998int CvLuaCity::lSetNumFreeBuilding(lua_State* L)3999{4000	CvCity* pkCity = GetInstance(L);4001	const BuildingTypes iIndex = toValue<BuildingTypes>(L, 2);4002	if(iIndex != NO_BUILDING)4003	{4004		const int iNewValue = lua_tointeger(L, 3);4005		pkCity->GetCityBuildings()->SetNumFreeBuilding(iIndex, iNewValue);4006	}40074008	return 0;4009}

Calls

Called by