Bazaar developer reference

CvLuaCity::lIsBuildingsMaxed(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 831
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lIsBuildingsMaxed

Hooks

static bool BeforeCvLuaCity_lIsBuildingsMaxed(lua_State* L, int& result);static void AfterCvLuaCity_lIsBuildingsMaxed(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsBuildingsMaxed(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsBuildingsMaxed>(host, &BeforeCvLuaCity_lIsBuildingsMaxed);CivRegisterAfter<CivHooks::CvLuaCity_lIsBuildingsMaxed>(host, &AfterCvLuaCity_lIsBuildingsMaxed);CivRegisterReplace<CivHooks::CvLuaCity_lIsBuildingsMaxed>(host, &ReplaceCvLuaCity_lIsBuildingsMaxed);

Code

830//bool isBuildingsMaxed();831int CvLuaCity::lIsBuildingsMaxed(lua_State* L)832{833	CvCity* pkCity = GetInstance(L);834	const bool bResult = pkCity->isBuildingsMaxed();835836	lua_pushboolean(L, bResult);837	return 1;838}

Calls

Called by