CvLuaCity::lIsForcedWorkingPlot(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 3928
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lIsForcedWorkingPlot
Hooks
static bool BeforeCvLuaCity_lIsForcedWorkingPlot(lua_State* L, int& result);static void AfterCvLuaCity_lIsForcedWorkingPlot(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsForcedWorkingPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsForcedWorkingPlot>(host, &BeforeCvLuaCity_lIsForcedWorkingPlot);CivRegisterAfter<CivHooks::CvLuaCity_lIsForcedWorkingPlot>(host, &AfterCvLuaCity_lIsForcedWorkingPlot);CivRegisterReplace<CivHooks::CvLuaCity_lIsForcedWorkingPlot>(host, &ReplaceCvLuaCity_lIsForcedWorkingPlot);
Code
3927//bool IsForcedWorkingPlot(CyPlot* pPlot);3928int CvLuaCity::lIsForcedWorkingPlot(lua_State* L)3929{3930 CvCity* pkCity = GetInstance(L);3931 CvPlot* pkPlot = CvLuaPlot::GetInstance(L, 2);3932 const bool bResult = pkCity->GetCityCitizens()->IsForcedWorkingPlot(pkPlot);39333934 lua_pushboolean(L, bResult);3935 return 1;3936}
Calls
- CvCity::GetCityCitizens() const
- CvCityCitizens::IsForcedWorkingPlot(const CvPlot *) const
CvLuaScopedInstance::GetInstanceCvLuaScopedInstance::GetInstancelua_pushboolean