CvLuaCity::lIsWorkingPlot(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 3906
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lIsWorkingPlot
Hooks
static bool BeforeCvLuaCity_lIsWorkingPlot(lua_State* L, int& result);static void AfterCvLuaCity_lIsWorkingPlot(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsWorkingPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsWorkingPlot>(host, &BeforeCvLuaCity_lIsWorkingPlot);CivRegisterAfter<CivHooks::CvLuaCity_lIsWorkingPlot>(host, &AfterCvLuaCity_lIsWorkingPlot);CivRegisterReplace<CivHooks::CvLuaCity_lIsWorkingPlot>(host, &ReplaceCvLuaCity_lIsWorkingPlot);
Code
3905//bool isWorkingPlot(CyPlot* pPlot);3906int CvLuaCity::lIsWorkingPlot(lua_State* L)3907{3908 CvCity* pkCity = GetInstance(L);3909 CvPlot* pkPlot = CvLuaPlot::GetInstance(L, 2);3910 const bool bResult = pkCity->GetCityCitizens()->IsWorkingPlot(pkPlot);39113912 lua_pushboolean(L, bResult);3913 return 1;3914}
Calls
- CvCity::GetCityCitizens() const
- CvCityCitizens::IsWorkingPlot(const CvPlot *) const
CvLuaScopedInstance::GetInstanceCvLuaScopedInstance::GetInstancelua_pushboolean