CvLuaCity::lAlterWorkingPlot(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 3917
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lAlterWorkingPlot
Hooks
static bool BeforeCvLuaCity_lAlterWorkingPlot(lua_State* L, int& result);static void AfterCvLuaCity_lAlterWorkingPlot(lua_State* L, int& result);static int ReplaceCvLuaCity_lAlterWorkingPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lAlterWorkingPlot>(host, &BeforeCvLuaCity_lAlterWorkingPlot);CivRegisterAfter<CivHooks::CvLuaCity_lAlterWorkingPlot>(host, &AfterCvLuaCity_lAlterWorkingPlot);CivRegisterReplace<CivHooks::CvLuaCity_lAlterWorkingPlot>(host, &ReplaceCvLuaCity_lAlterWorkingPlot);
Code
3916//void alterWorkingPlot(int iIndex);3917int CvLuaCity::lAlterWorkingPlot(lua_State* L)3918{3919// return BasicLuaMethod(L, &CvCity::GetCityCitizens()->DoAlterWorkingPlot);3920 CvCity* pkCity = GetInstance(L);3921 const int iIndex = lua_tointeger(L, 2);3922 pkCity->GetCityCitizens()->DoAlterWorkingPlot(iIndex);39233924 return 1;3925}
Calls
- CvCity::GetCityCitizens() const
- CvCityCitizens::DoAlterWorkingPlot(int)
CvLuaScopedInstance::GetInstancelua_tointeger