Bazaar developer reference

CvLuaCity::lGetFood(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2847
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetFood

Hooks

static bool BeforeCvLuaCity_lGetFood(lua_State* L, int& result);static void AfterCvLuaCity_lGetFood(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetFood(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetFood>(host, &BeforeCvLuaCity_lGetFood);CivRegisterAfter<CivHooks::CvLuaCity_lGetFood>(host, &AfterCvLuaCity_lGetFood);CivRegisterReplace<CivHooks::CvLuaCity_lGetFood>(host, &ReplaceCvLuaCity_lGetFood);

Code

2846//int getFood();2847int CvLuaCity::lGetFood(lua_State* L)2848{2849	return BasicLuaMethod(L, &CvCity::getFood);2850}

Calls

Called by