Home › Class layouts › Unit › Unit::CInstance

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

GameCore::Unit::CInstance — class, size 760 bytes (0x2f8).

Bases: Unit::IInstance at 0x0

Linux offset Member Type Lua methods (inferred)
0x268 m_eAutomation FAutoVariable<GameCore::UnitAutomateTypes, GameCore::Unit::CInstance>
0x280 m_eActivity FAutoVariable<GameCore::UnitActivityTypes, GameCore::Unit::CInstance> reads: Unit:IsEmbarked
0x298 m_eDomain FAutoVariable<GameCore::DomainTypes, GameCore::Unit::CInstance>
0x2b0 m_bEmbarked FAutoVariable<bool, GameCore::Unit::CInstance> reads: Unit:IsEmbarked
0x2c8 m_bImmobile FAutoVariable<bool, GameCore::Unit::CInstance>
0x2e0 m_bDelayedDeath FAutoVariable<bool, GameCore::Unit::CInstance>

Virtual functions

Slot order of the class's own vtable (inferred, see Virtual function tables). A virtual call call [vptr+offset] uses the byte offset. Owner is shown when the entry is inherited or overridden elsewhere.

Slot Offset Method Address in current build
0 0x0 \~CInstance 0x66860
1 0x8 __cxa_pure_virtual () 0x9b0f88
2 0x10 __cxa_pure_virtual () 0x9b0f88
3 0x18 Initialize 0x668c0
4 0x20 InitializePostLoad 0x669e0
5 0x28 __cxa_pure_virtual () 0x9b0f88
6 0x30 InitializeDomain 0x66940