Bazaar developer reference

CvLuaCity::lIsUnitFoodProduction(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1315
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lIsUnitFoodProduction

Hooks

static bool BeforeCvLuaCity_lIsUnitFoodProduction(lua_State* L, int& result);static void AfterCvLuaCity_lIsUnitFoodProduction(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsUnitFoodProduction(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsUnitFoodProduction>(host, &BeforeCvLuaCity_lIsUnitFoodProduction);CivRegisterAfter<CivHooks::CvLuaCity_lIsUnitFoodProduction>(host, &AfterCvLuaCity_lIsUnitFoodProduction);CivRegisterReplace<CivHooks::CvLuaCity_lIsUnitFoodProduction>(host, &ReplaceCvLuaCity_lIsUnitFoodProduction);

Code

1314//bool isUnitFoodProduction(UnitTypes iUnit);1315int CvLuaCity::lIsUnitFoodProduction(lua_State* L)1316{1317	return BasicLuaMethod<bool, UnitTypes>(L, &CvCity::isFoodProduction);1318}

Calls

Called by