Home › Class layouts › AI › AI::CityKnowledge

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).

AI::CityKnowledge

GameCore::AI::CityKnowledge — class, size 224 bytes (0xe0).

Linux offset Member Type
0x0 m_id Player::CityID
0x8 m_location PlotCoord
0x10 m_region IDType
0x14 m_isOriginalCapital bool
0x15 m_isCapital bool
0x16 m_isOccupied bool
0x18 m_turnsSinceObservation int
0x1c m_population int
0x20 m_currentLoyalty FixedPoint
0x24 m_loyaltyChangePerTurn FixedPoint
0x28 m_nextCivIdentity PlayerTypes
0x2c m_cityReligion ReligionTypes
0x30 m_expectedYield Types::Vector<int, Types::LinearAlloc::Default<1, 0> >
0x48 m_cityDefenses Types::Vector<GameCore::AI::DistrictDefenses, Types::LinearAlloc::Default<1, 0> >
0x60 m_cityDistricts Types::Vector<int, Types::LinearAlloc::Default<1, 0> >
0x78 m_hasBuildings Types::Vector<bool, Types::LinearAlloc::Default<1, 0> >
0x90 m_buildingsInProgress Types::Vector<bool, Types::LinearAlloc::Default<1, 0> >
0xa8 m_greatWorksInCity Types::Vector<GameCore::GreatWorkListIndex, Types::LinearAlloc::Default<1, 0> >
0xc0 m_ownedResources ResourceIndexList<int>