Home › Class layouts › AI › AI::UnitEfficiencyInfo

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

GameCore::AI::UnitEfficiencyInfo — structure, size 360 bytes (0x168).

Linux offset Member Type
0x0 UnitType UnitTypes
0x4 MaxDamage int
0x8 IsObsolete bool
0x9 IsRanged bool
0xa IsNaval bool
0xb HasZoneOfControl bool
0xc CivUnique bool
0xd ExcludeFromEfficiencyCalculation bool
0xe CanBuild bool
0x10 Speed int
0x14 Range int
0x18 MainCombatStrength int
0x1c Defense int
0x20 NumInUse int
0x24 MaintenainceResource ResourceTypes
0x28 NumResourceNeeded int
0x2c EfficiencyAgainstAllEnemies FixedPoint
0x30 EfficiencyAgainstEveryone FixedPoint
0x38 EfficiencyAgainstPlayer InlineVector<GameCore::FixedPoint, MAX_PLAYERS>
0x160 RawEfficiency FixedPoint