Bazaar developer reference

CvLuaCity::lGetFoodTurnsLeft(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1124
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetFoodTurnsLeft

Hooks

static bool BeforeCvLuaCity_lGetFoodTurnsLeft(lua_State* L, int& result);static void AfterCvLuaCity_lGetFoodTurnsLeft(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetFoodTurnsLeft(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetFoodTurnsLeft>(host, &BeforeCvLuaCity_lGetFoodTurnsLeft);CivRegisterAfter<CivHooks::CvLuaCity_lGetFoodTurnsLeft>(host, &AfterCvLuaCity_lGetFoodTurnsLeft);CivRegisterReplace<CivHooks::CvLuaCity_lGetFoodTurnsLeft>(host, &ReplaceCvLuaCity_lGetFoodTurnsLeft);

Code

1123//int getFoodTurnsLeft();1124int CvLuaCity::lGetFoodTurnsLeft(lua_State* L)1125{1126	return BasicLuaMethod(L, &CvCity::getFoodTurnsLeft);11271128}

Calls

Called by