Home › Class layouts

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

Class layouts

Member names, offsets and sizes of 1915 GameCore classes, taken from the Linux port's debug information. Offsets are from the Linux build (debug info). Where a Windows offset was checked against Windows code it is shown in the Windows column with its relation to the Linux offset. For classes built from tracked variables the Windows offset is usually the Linux offset minus 8, but this is only stated where it was checked; plain classes are usually identical; classes holding STL containers can differ.

Namespace Classes
AI 445
AiCityBuild 1
AiDiplomatic 1
AiGrandStrategic 1
Analysis 5
BOUNDEDKNAPSACK_ALGORITHM 1
Barbarian 7
Boost 1
Cache 262
City 74
CityCulturalIdentity 4
CityCulture 1
CityDistricts 1
CityGrowth 1
CityPower 5
CityReligion 3
CityTrade 2
Combat 3
Configuration 3
Congress 22
Context 2
Definition 328
Diplomacy 29
DiplomaticRelations 2
District 6
Emergency 6
Events 5
Exports 68
Formation 5
Fractal 2
FreeCities 2
Game 106
GameCulture 1
GameEras 4
GameGreatPeople 1
GameHistoryManager 1
GameNationalParks 1
GameReligion 1
GameSummary 10
GameTechs 1
Governor 4
Interfaces 3
Lua 20
Map 101
Message 2
Messages 22
ObjectPairing 1
Operations 3
Other 9
Pathfinder 7
Player 99
PlayerCulture 2
PlayerDiplomacy 1
PlayerGreatPeoplePoints 1
PlayerInfluence 1
PlayerReligion 1
PlayerStats 1
PlayerTechs 1
PlayerTrade 1
PlayerTreasury 1
Quests 11
Reflection 6
Reporting 9
Requirements 1
Rules 24
Scripting 2
Serializer 1
Shared 3
SharedParameters 4
Tag 1
Trade 12
Tuner 2
Tutorial 1
Unit 66
UnitAbility 1
UnitArchaeology 1
UnitExperience 1
UnitGreatPerson 1
UnitRockBand 1
UnitTrade 1
WorldBuilder 58
YieldMonitor 3