Home › Class layouts › Unit › Unit::IInstance

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

Unit::IInstance

GameCore::Unit::IInstance — class, size 616 bytes (0x268).

Bases: Interfaces::ICore at 0x0

Linux offset Member Type Windows
0x8 m_syncArchive FAutoArchiveClassContainer<GameCore::Unit::IInstance>
0xa0 m_kDefinitionRef UnitReference
0xa8 m_id FAutoVariable<unsigned int, GameCore::Unit::IInstance>
0xc0 m_eTypeIndex FAutoVariable<GameCore::UnitTypes, GameCore::Unit::IInstance>
0xd8 m_eAIType FAutoVariable<GameCore::UnitAITypes, GameCore::Unit::IInstance>
0xf0 m_kLocation FAutoVariable<GameCore::PlotCoord, GameCore::Unit::IInstance>
0x108 m_eFacingDirection FAutoVariable<GameCore::DirectionTypes, GameCore::Unit::IInstance>
0x120 m_eOwner FAutoVariable<GameCore::PlayerTypes, GameCore::Unit::IInstance> 0x120 (Windows = Linux − 8; verified)
0x138 m_eOriginalOwner FAutoVariable<GameCore::PlayerTypes, GameCore::Unit::IInstance>
0x150 m_kAttributes FAutoVariable<Data::VariantMap, GameCore::Unit::IInstance>
0x1e8 m_kProperties FAutoVariable<Data::TypedVariantMap, GameCore::Unit::IInstance>
0x250 m_bProcessedTurn FAutoVariable<bool, GameCore::Unit::IInstance>

The Windows column is filled in only for members that were checked against Windows code. For the rest, use the Linux offset with the rule above.