pub struct EventEntry {
pub kind: i32,
pub severity: i32,
pub color: u32,
pub month: usize,
pub year: i32,
pub args: [String; 3],
pub cell: i32,
pub category: i32,
pub icon: i32,
pub text: Option<String>,
pub dated: bool,
}Expand description
One log entry (0x28 bytes: colour, formatted text, type, severity, cell, category, icon). The port keeps the format arguments; the text is formatted with the string tables when shown, from the month and year the event happened in.
Fields§
§kind: i32The event type.
severity: i32How important the event is.
color: u32ARGB from the severity.
Original: FUN_14009a2d0.
month: usizeThe month (@0, an index into :seasons).
year: i32The year (@1).
args: [String; 3]@2, @3, @4.
cell: i32The entity’s map-rectangle centre cell, or -1.
Original: FUN_14009a500.
category: i32Notification category.
Original: FUN_14009a5a0.
icon: i32Popup icon (12, 13 for types 0x1a-0x1d), -1 otherwise.
text: Option<String>The text as formatted when the event was posted, for entries loaded from a save (the original keeps only the text); shown as is.
Original: FUN_14009a790.
dated: boolWhether text is shown after the event’s season and year, as the game’s own lines are
(“Autumn 22: …”): a rule hook’s line. Deviation: not in the original, which has no rule
hooks.
Trait Implementations§
Source§impl Clone for EventEntry
impl Clone for EventEntry
Source§fn clone(&self) -> EventEntry
fn clone(&self) -> EventEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more