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>,
}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.
Trait Implementations§
Source§impl Clone for EventEntry
impl Clone for EventEntry
Source§fn clone(&self) -> EventEntry
fn clone(&self) -> EventEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventEntry
impl Debug for EventEntry
Source§impl PartialEq for EventEntry
impl PartialEq for EventEntry
impl StructuralPartialEq for EventEntry
Auto Trait Implementations§
impl Freeze for EventEntry
impl RefUnwindSafe for EventEntry
impl Send for EventEntry
impl Sync for EventEntry
impl Unpin for EventEntry
impl UnsafeUnpin for EventEntry
impl UnwindSafe for EventEntry
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