CvLuaCity::lGetCityIndexPlot(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 688
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lGetCityIndexPlot
Hooks
static bool BeforeCvLuaCity_lGetCityIndexPlot(lua_State* L, int& result);static void AfterCvLuaCity_lGetCityIndexPlot(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetCityIndexPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetCityIndexPlot>(host, &BeforeCvLuaCity_lGetCityIndexPlot);CivRegisterAfter<CivHooks::CvLuaCity_lGetCityIndexPlot>(host, &AfterCvLuaCity_lGetCityIndexPlot);CivRegisterReplace<CivHooks::CvLuaCity_lGetCityIndexPlot>(host, &ReplaceCvLuaCity_lGetCityIndexPlot);
Code
687//CyPlot* getCityIndexPlot(int iIndex);688int CvLuaCity::lGetCityIndexPlot(lua_State* L)689{690 CvCity* pkCity = GetInstance(L);691 const int iIndex = lua_tointeger(L, 2);692693 CvPlot* pkPlot = pkCity->GetCityCitizens()->GetCityPlotFromIndex(iIndex);694 CvLuaPlot::Push(L, pkPlot);695 return 1;696}
Calls
- CvCity::GetCityCitizens() const
- CvCityCitizens::GetCityPlotFromIndex(int) const
CvLuaScopedInstance::GetInstanceCvLuaScopedInstance::Pushlua_tointeger