Bazaar developer reference

CvLuaCity::lGetMaxFoodKeptPercent(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2877
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetMaxFoodKeptPercent

Hooks

static bool BeforeCvLuaCity_lGetMaxFoodKeptPercent(lua_State* L, int& result);static void AfterCvLuaCity_lGetMaxFoodKeptPercent(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetMaxFoodKeptPercent(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetMaxFoodKeptPercent>(host, &BeforeCvLuaCity_lGetMaxFoodKeptPercent);CivRegisterAfter<CivHooks::CvLuaCity_lGetMaxFoodKeptPercent>(host, &AfterCvLuaCity_lGetMaxFoodKeptPercent);CivRegisterReplace<CivHooks::CvLuaCity_lGetMaxFoodKeptPercent>(host, &ReplaceCvLuaCity_lGetMaxFoodKeptPercent);

Code

2876//int getMaxFoodKeptPercent();2877int CvLuaCity::lGetMaxFoodKeptPercent(lua_State* L)2878{2879	return BasicLuaMethod(L, &CvCity::getMaxFoodKeptPercent);2880}

Calls

Called by