Table of Contents

Struct DiplomacyOpinionChangedEvent

Namespace
Core.Diplomacy
Assembly
Core.dll

Emitted when opinion changes between two countries AI uses this to: detect improving/worsening relations, adjust diplomacy UI uses this to: update relations panel, show opinion trends

public struct DiplomacyOpinionChangedEvent : IGameEvent
Implements

Constructors

DiplomacyOpinionChangedEvent(ushort, ushort, FixedPoint64, FixedPoint64, ushort, int)

public DiplomacyOpinionChangedEvent(ushort c1, ushort c2, FixedPoint64 oldOp, FixedPoint64 newOp, ushort modType, int tick)

Parameters

c1 ushort
c2 ushort
oldOp FixedPoint64
newOp FixedPoint64
modType ushort
tick int

Fields

country1

public readonly ushort country1

Field Value

ushort

country2

public readonly ushort country2

Field Value

ushort

modifierType

public readonly ushort modifierType

Field Value

ushort

newOpinion

public readonly FixedPoint64 newOpinion

Field Value

FixedPoint64

oldOpinion

public readonly FixedPoint64 oldOpinion

Field Value

FixedPoint64

tick

public readonly int tick

Field Value

int

Properties

TimeStamp

Timestamp when the event was emitted (set automatically by EventBus).

public float TimeStamp { readonly get; set; }

Property Value

float