Home › Class layouts › Player › Player::Units

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

Player::Units

GameCore::Player::Units — class, size 1528 bytes (0x5f8).

Linux offset Member Type Lua methods (inferred)
0x0 m_syncArchive FAutoArchiveClassContainer<GameCore::Player::Units>
0x98 m_pkParent ParentPtr<GameCore::Player::Instance>
0xa0 m_kUnits UnitList writes: PlayerUnits:Create, PlayerUnits:Destroy; reads: AiMilitary:AddUnitToScriptedOperation, PlayerTechs:ReverseBoost, PlayerTechs:SetTech, PlayerUnits:Create (+2 more)
0xe8 m_uiPeakUnits uint
0xf0 m_kUnlimitedPromotionChoiceUnitTypes FAutoVariable<eastl::vector<GameCore::UnitTypes, eastl::allocator>, GameCore::Player::Units>
0x120 m_unitBuildMap FAutoVariable<Types::Vector<GameCore::UnitTypes, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units>
0x148 m_bNoSettlingCities FAutoVariable<bool, GameCore::Player::Units>
0x160 m_bNoForeignHeal FAutoVariable<bool, GameCore::Player::Units>
0x178 m_bNoNeutralHeal FAutoVariable<bool, GameCore::Player::Units>
0x190 m_bUnitBuildDisabled FAutoVariable<Types::Vector<bool, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units> reads: PlayerUnits:IsBuildDisabled
0x1b8 m_aCurrentUnitCost FAutoVariable<Types::Vector<int, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units> reads: PlayerCulture:SetCivic, PlayerTechs:SetTech
0x1e0 m_aiCurrentUnitResourceCost FAutoVariable<Types::Vector<int, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units> reads: PlayerCulture:SetCivic, PlayerTechs:SetTech
0x208 m_axUnitProductionMultiplier FAutoVariable<Types::Vector<FixedPointT<8>, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units>
0x230 m_aiExtraUnitCopy FAutoVariable<Types::Vector<int, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units>
0x258 m_aiEnableWallAttackWholeGamePromotionClass FAutoVariable<Types::Vector<int, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units>
0x280 m_aUnitFreePass FAutoVariable<Types::Vector<GameCore::UnitTypes, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units>
0x2a8 m_aUnitEmbarkationPass FAutoVariable<Types::Vector<GameCore::UnitTypes, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units>
0x2d0 m_aiAddOnDistrictFounding FAutoVariable<eastl::hash_map<unsigned int, eastl::hash_map<unsigned int, unsigned int, eastl::hash<unsigned int>, eastl::equal_to<unsigned int>, eastl::allocator, false>, eastl::hash<unsigned int>, eastl::equal_to<unsigned int>, eastl::allocator, false>, GameCore::Player::Units>
0x308 m_iExtraBuildCharges FAutoVariable<int, GameCore::Player::Units>
0x320 m_aiExtraBuildCharges FAutoVariable<Types::Vector<int, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units>
0x348 m_iExtraSpreadCharges FAutoVariable<int, GameCore::Player::Units>
0x360 m_iEmbarkedMovementModifier FAutoVariable<int, GameCore::Player::Units>
0x378 m_iUpgradeMilitaryFormationOnCityConquestCount FAutoVariable<int, GameCore::Player::Units>
0x390 m_PromotionSelections FAutoVariable<eastl::vector<GameCore::Player::RandomPromotionSelection, eastl::allocator>, GameCore::Player::Units>
0x3c0 m_ProposedPromotions FAutoVariable<eastl::vector<GameCore::Player::ProposedPromotion, eastl::allocator>, GameCore::Player::Units>
0x3f0 m_BasePromotions FAutoVariable<eastl::vector<GameCore::Player::BasePromotion, eastl::allocator>, GameCore::Player::Units>
0x420 m_eLandCorpsUnlockCivic FAutoVariable<GameCore::CivicTypes, GameCore::Player::Units>
0x438 m_eLandArmyUnlockCivic FAutoVariable<GameCore::CivicTypes, GameCore::Player::Units>
0x450 m_eNavalCorpsUnlockCivic FAutoVariable<GameCore::CivicTypes, GameCore::Player::Units>
0x468 m_eNavalArmyUnlockCivic FAutoVariable<GameCore::CivicTypes, GameCore::Player::Units>
0x480 m_eLandCorpsUnlockTech FAutoVariable<GameCore::TechTypes, GameCore::Player::Units>
0x498 m_eLandArmyUnlockTech FAutoVariable<GameCore::TechTypes, GameCore::Player::Units>
0x4b0 m_eNavalCorpsUnlockTech FAutoVariable<GameCore::TechTypes, GameCore::Player::Units>
0x4c8 m_eNavalArmyUnlockTech FAutoVariable<GameCore::TechTypes, GameCore::Player::Units>
0x4e0 m_iLandCorpsModifiedStrength FAutoVariable<int, GameCore::Player::Units>
0x4f8 m_iLandArmyModifiedStrength FAutoVariable<int, GameCore::Player::Units>
0x510 m_iNavalCorpsModifiedStrength FAutoVariable<int, GameCore::Player::Units>
0x528 m_iNavalArmyModifiedStrength FAutoVariable<int, GameCore::Player::Units>
0x540 m_iEnableWallAttackWholeGame FAutoVariable<int, GameCore::Player::Units>
0x558 m_iRockBandAlbumSalesModifier FAutoVariable<int, GameCore::Player::Units>
0x570 m_eBannedProductionYield FAutoVariable<GameCore::YieldTypes, GameCore::Player::Units>
0x588 m_eFavoredProductionYield FAutoVariable<GameCore::YieldTypes, GameCore::Player::Units>
0x5a0 m_xFavoredProductionModifier FAutoVariable<FixedPointT<8>, GameCore::Player::Units>
0x5b8 m_xUpgradeCostModifier FAutoVariable<FixedPointT<8>, GameCore::Player::Units>
0x5d0 m_aiUnitFuelDemands FAutoVariable<Types::Vector<int, Types::LinearAlloc::Default<1, 0> >, GameCore::Player::Units>