Home › Class layouts › Definition › Definition::RandomEvent

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

Definition::RandomEvent

GameCore::Definition::RandomEvent — class, size 336 bytes (0x150).

Bases: Definition::IProperties at 0x0

Linux offset Member Type
0x10 m_DatabaseRowId int32
0x14 m_CollectionIndex uint32
0x18 m_RandomEventTypeHash uint32
0x1c m_EffectOperatorTypeHash uint32
0x20 m_ChanceIncreasePerDegree int32
0x24 m_ClimateChangePoints int32
0x28 m_Duration int32
0x2c m_FertilityRemovalChance int32
0x30 m_Hexes int32
0x34 m_IceLoss int32
0x38 m_MinTurnAtRisk int32
0x3c m_MitigatedYieldReduction int32
0x40 m_Movement int32
0x44 m_Severity int32
0x48 m_Spacing int32
0x50 m_Description Basic
0x58 m_Name Basic
0x60 m_RandomEventType Basic
0x68 m_EffectOperatorType Optional<String::BasicT<String::BasicStringAlloc, ASCII> >
0x78 m_EffectString Optional<String::BasicT<String::BasicStringAlloc, ASCII> >
0x88 m_IconLarge Optional<String::BasicT<String::BasicStringAlloc, ASCII> >
0x98 m_IconSmall Optional<String::BasicT<String::BasicStringAlloc, ASCII> >
0xa8 m_LongDescription Optional<String::BasicT<String::BasicStringAlloc, ASCII> >
0xb8 m_NaturalWonder Optional<String::BasicT<String::BasicStringAlloc, ASCII> >
0xc8 m_AvoidTerritory (bit-field, 1 bits) bool
0xc8 m_Global (bit-field, 1 bits) bool
0xc8 m_HaltsFloodFertility (bit-field, 1 bits) bool
0xc8 m_HaltsStormFertility (bit-field, 1 bits) bool
0xc8 m_TargetCities (bit-field, 1 bits) bool
0xc8 m_UnitTriggered (bit-field, 1 bits) bool
0xd0 m_DamageCollection RandomEvent_DamageReferenceCollection
0xe8 m_FrequencyCollection RandomEvent_FrequencyReferenceCollection
0x100 m_NaturalWonderReference const GameCore::Definition::Feature*
0x108 m_PillagedImprovementCollection RandomEvent_PillagedImprovementReferenceCollection
0x120 m_TerrainCollection RandomEvent_TerrainReferenceCollection
0x138 m_YieldCollection RandomEvent_YieldReferenceCollection