CvLuaCity::lGetSeaPlotYield(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 3185
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lGetSeaPlotYield
Hooks
static bool BeforeCvLuaCity_lGetSeaPlotYield(lua_State* L, int& result);static void AfterCvLuaCity_lGetSeaPlotYield(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetSeaPlotYield(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetSeaPlotYield>(host, &BeforeCvLuaCity_lGetSeaPlotYield);CivRegisterAfter<CivHooks::CvLuaCity_lGetSeaPlotYield>(host, &AfterCvLuaCity_lGetSeaPlotYield);CivRegisterReplace<CivHooks::CvLuaCity_lGetSeaPlotYield>(host, &ReplaceCvLuaCity_lGetSeaPlotYield);
Code
3184//int getSeaPlotYield(YieldTypes eIndex);3185int CvLuaCity::lGetSeaPlotYield(lua_State* L)3186{3187 CvCity* pkCity = GetInstance(L);3188 const YieldTypes eIndex = (YieldTypes)lua_tointeger(L, 2);3189 const int iResult = pkCity->getSeaPlotYield(eIndex);31903191 lua_pushinteger(L, iResult);3192 return 1;3193}
Calls
- CvCity::getSeaPlotYield(YieldTypes) const
CvLuaScopedInstance::GetInstancelua_pushintegerlua_tointeger