pub enum EventKind {
MoveOrdered {
army: ArmyId,
from: TerritoryId,
to: TerritoryId,
arrival_at: SimTime,
},
ArmyArrived {
army: ArmyId,
territory: TerritoryId,
},
PersonMoveOrdered {
person: PersonId,
from: TerritoryId,
to: TerritoryId,
arrival_at: SimTime,
},
PersonArrived {
person: PersonId,
territory: TerritoryId,
},
LetterDelivered {
letter: LetterId,
carrier: PersonId,
recipient: PersonId,
territory: TerritoryId,
},
ReportDispatched {
recipient: PersonId,
army: ArmyId,
arrives_at: SimTime,
},
KnowledgeUpdated {
recipient: PersonId,
army: ArmyId,
known_location: TerritoryId,
},
KnowledgePublished {
holder: KnowledgeHolderRef,
record_count: u32,
},
DebugFieldChanged {
entity: EntityRef,
field: String,
old_value: String,
new_value: String,
},
Plugin {
plugin: String,
event_type: String,
},
}Variants§
MoveOrdered
ArmyArrived
PersonMoveOrdered
PersonArrived
LetterDelivered
ReportDispatched
KnowledgeUpdated
KnowledgePublished
DebugFieldChanged
Plugin
Implementations§
Source§impl EventKind
impl EventKind
pub const fn event_type(&self) -> &'static str
Sourcepub fn qualified_event_type(&self) -> String
pub fn qualified_event_type(&self) -> String
Returns the stable, display-oriented type identity for this event.
Built-in event kinds retain the same snake-case labels returned by
Self::event_type. Plugin events are qualified with their registered
plugin name and event type, separated by a dot. The two plugin-provided
components are preserved as registered; no case folding or additional
normalization is applied.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EventKind
Source§impl Serialize for EventKind
impl Serialize for EventKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more