Home › Class layouts › Game › Game::Stats

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

Game::Stats

GameCore::Game::Stats — class, size 464 bytes (0x1d0).

Bases: Game::Component::IInstance at 0x0

Linux offset Member Type
0x18 m_syncArchive FAutoArchiveClassContainer<GameCore::Game::Stats>
0xb0 m_aiNumUnitsConstructed FAutoVariable<eastl::vector<int, eastl::allocator>, GameCore::Game::Stats>
0xe0 m_wondersBuilt FAutoVariable<GameCore::IndexList<int, GameCore::Definition::DefinitionCollectionWithTypeIndex<GameCore::Definition::Building>, &GameCore::Definitions::GetBuildingDefinitions, void>, GameCore::Game::Stats>
0x110 m_TotalAlliancesFormed FAutoVariable<int, GameCore::Game::Stats>
0x128 m_TotalEmergencyAlliancesFormed FAutoVariable<int, GameCore::Game::Stats>
0x140 m_TotalFreeCities FAutoVariable<int, GameCore::Game::Stats>
0x158 m_SmallestEmergencyAllianceSize FAutoVariable<int, GameCore::Game::Stats>
0x170 m_LargestEmergencyAllianceSize FAutoVariable<int, GameCore::Game::Stats>
0x188 m_AverageEmergencyAllianceSize FAutoVariable<float, GameCore::Game::Stats>
0x1a0 m_NumUnitsKilled FAutoVariable<int, GameCore::Game::Stats>
0x1b8 m_pGame const GameCore::Game::Instance*
0x1c0 m_buildingConstructedHandle Message::Handle

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 \~Stats 0x245ec0
1 0x8 Initialize 0x245fb0
2 0x10 Uninitialize 0x2463f0
3 0x18 Reset 0x2461e0
4 0x20 DoTurn 0x8972d0
5 0x28 Update (Game::Component::IInstance) 0x8972d0
6 0x30 RestoreVisualState (Game::Component::IInstance) 0x9b1040
7 0x38 InitializeVisualState (Game::Component::IInstance) 0x9b1040
8 0x40 InitializeNewGame (Game::Component::IInstance) 0x8972d0