Bazaar developer reference

CvLuaCity::lIsForcedAvoidGrowth(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 3745
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lIsForcedAvoidGrowth

Hooks

static bool BeforeCvLuaCity_lIsForcedAvoidGrowth(lua_State* L, int& result);static void AfterCvLuaCity_lIsForcedAvoidGrowth(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsForcedAvoidGrowth(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsForcedAvoidGrowth>(host, &BeforeCvLuaCity_lIsForcedAvoidGrowth);CivRegisterAfter<CivHooks::CvLuaCity_lIsForcedAvoidGrowth>(host, &AfterCvLuaCity_lIsForcedAvoidGrowth);CivRegisterReplace<CivHooks::CvLuaCity_lIsForcedAvoidGrowth>(host, &ReplaceCvLuaCity_lIsForcedAvoidGrowth);

Code

3744//int GetForcedAvoidGrowth();3745int CvLuaCity::lIsForcedAvoidGrowth(lua_State* L)3746{3747	CvCity* pkCity = GetInstance(L);3748	const int iResult = pkCity->GetCityCitizens()->IsForcedAvoidGrowth();37493750	lua_pushboolean(L, iResult);37513752	return 1;3753}

Calls

Called by