CvLuaCity::lIsFoodProduction(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 1274
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lIsFoodProduction
Hooks
static bool BeforeCvLuaCity_lIsFoodProduction(lua_State* L, int& result);static void AfterCvLuaCity_lIsFoodProduction(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsFoodProduction(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsFoodProduction>(host, &BeforeCvLuaCity_lIsFoodProduction);CivRegisterAfter<CivHooks::CvLuaCity_lIsFoodProduction>(host, &AfterCvLuaCity_lIsFoodProduction);CivRegisterReplace<CivHooks::CvLuaCity_lIsFoodProduction>(host, &ReplaceCvLuaCity_lIsFoodProduction);
Code
1273//bool isFoodProduction();1274int CvLuaCity::lIsFoodProduction(lua_State* L)1275{1276 //return BasicLuaMethod<bool, UnitTypes>(L, &CvCity::isFoodProduction);1277 CvCity* pkCity = GetInstance(L);1278 const int iResult = pkCity->isFoodProduction();12791280 lua_pushboolean(L, iResult);1281 return 1;1282}
Calls
- CvCity::isFoodProduction() const
CvLuaScopedInstance::GetInstancelua_pushboolean