Home › Class layouts › City › City::Gold

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::Gold

GameCore::City::Gold — class, size 168 bytes (0xa8).

Linux offset Member Type
0x0 m_pCity ParentPtr<GameCore::City::Instance>
0x8 m_aiUnitCostModifier Types::Vector<int, Types::LinearAlloc::Default<1, 0> >
0x20 m_aiBuildingCostModifier Types::Vector<int, Types::LinearAlloc::Default<1, 0> >
0x38 m_aiUnitFaithPurchaseEnabled Types::Vector<int, Types::LinearAlloc::Default<1, 0> >
0x50 m_aiBuildingFaithPurchaseEnabled Types::Vector<int, Types::LinearAlloc::Default<1, 0> >
0x68 m_aiDistrictCostModifier Types::Vector<int, Types::LinearAlloc::Default<1, 0> >
0x80 m_aiPlotCostTerrainModifier Types::Vector<int, Types::LinearAlloc::Default<1, 0> >
0x98 m_iPlotCostModifier int
0x9c m_iSiphonedGold int
0xa0 m_bCanPurchaseDistricts bool
0xa4 m_iGoldFromCitizens int