Home › Class layouts › City › City::Citizens

Needs the Community Extension. Not available in the unmodified game; works while the Community Extension mod is active (its own functions, or raw memory access with Mem/ObjMem).

City::Citizens

GameCore::City::Citizens — class, size 120 bytes (0x78).

Linux offset Member Type Lua methods (inferred)
0x0 m_pCity ParentPtr<GameCore::City::Instance>
0x8 m_aiWorkingPlot Types::Vector<int, Types::LinearAlloc::Default<1, 0> >
0x20 m_aiForcedWorkingPlot Types::Vector<int, Types::LinearAlloc::Default<1, 0> >
0x38 m_favoredYields Types::Vector<bool, Types::LinearAlloc::Default<1, 0> > reads: CityCitizens:IsYieldFavored, CityCitizens:SetDisfavoredYield, CityCitizens:SetFavoredYield
0x50 m_disfavoredYields Types::Vector<bool, Types::LinearAlloc::Default<1, 0> > reads: CityCitizens:IsYieldDisfavored, CityCitizens:SetDisfavoredYield, CityCitizens:SetFavoredYield
0x68 m_iNumUnassignedCitizens int
0x6c m_iNumCitizensWorkingPlots int
0x70 m_forceUpdatePlotAppeal bool