Home › Class layouts › Game › Game::DiplomaticRelations

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

GameCore::Game::DiplomaticRelations — class, size 952 bytes (0x3b8).

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

Linux offset Member Type Lua methods (inferred)
0x18 m_syncArchive FAutoArchiveClassContainer<GameCore::Game::DiplomaticRelations>
0xb0 m_maxNumPlayers FAutoVariable<int, GameCore::Game::DiplomaticRelations>
0xc8 m_hasMet FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<bool>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0xf0 m_hasDeclaredFriendship FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<bool>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x118 m_isPermanentlyAllied FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<bool>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x140 m_isInDefensivePact FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<bool>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x168 m_researchAgreementTech FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<GameCore::TechTypes>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x190 m_atWar FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<GameCore::WarTypes>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x1b8 m_warInitiator FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<GameCore::PlayerTypes>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x1e0 m_jointWarTarget FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<GameCore::PlayerTypes>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x208 m_TypeofAlliance FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<GameCore::AllianceTypes>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x230 m_SharesSuzerain FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<bool>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x258 m_AmountOfAlliance FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<GameCore::AllianceTypes>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x280 m_numGrievances FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<int>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x2a8 m_grievanceHolder FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<GameCore::PlayerTypes>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x2d0 m_TensionScore FAutoVariable<Types::Vector<GameCore::Game::DiplomaticRelationship<int>, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x2f8 m_GrievanceLog FAutoVariable<Types::Vector<GameCore::Game::GrievanceLogItem, Types::LinearAlloc::Default<1, 0> >, GameCore::Game::DiplomaticRelations>
0x320 m_alliesShareVis FAutoVariable<bool, GameCore::Game::DiplomaticRelations> writes: GameDiplomacy:SetAlliesShareVisFlag
0x338 m_allianceStartsHandle Message::Handle
0x348 m_allianceEndsHandle Message::Handle
0x358 m_gaveInfluenceHandle Message::Handle
0x368 m_dealOfferedHandle Message::Handle
0x378 m_denouncedHandle Message::Handle
0x388 m_cityConqueredHandle Message::Handle
0x398 m_delegationHandle Message::Handle
0x3a8 m_embassyHandle 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 \~DiplomaticRelations 0x1ce940
1 0x8 Initialize 0x1d11f0
2 0x10 Uninitialize 0x1d4380
3 0x18 Reset 0x8972d0
4 0x20 DoTurn 0x1cf680
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