Struct DiplomacyOpinionChangedEvent
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
c1ushortc2ushortoldOpFixedPoint64newOpFixedPoint64modTypeushorttickint
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
oldOpinion
public readonly FixedPoint64 oldOpinion
Field Value
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