Skip to main content

Module events

Module events 

Source
Expand description

The town event log (Game) and the stock warnings that post to it. See docs/EVENT-LOG.md.

Modules§

kind
Event types: entry type of Dialog/StringTable.rsc:events.

Structs§

EventEntry
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.
EventLog
The event log: its entries and which categories notify the player.
StockWarnings
The stock manager’s warning state (Game: slots, capacity records).

Functions§

category
The category of an event type, which the log filters by.
severity_color
The colour of an event’s severity, 0xAARRGGBB.