Add event system #11

Open
opened 2 years ago by ncc1988 · 0 comments
ncc1988 commented 2 years ago
Owner

An event handling system shall be added to the engine:

  • Events are categorised according to subsystems: Network, MarkupParser, StylesheetParser, ...
  • An EventSource can emit events. The event category is passed, together with a short string as event identifier and an ID as uint64_t.
  • The EventManager is a singleton that recevies events from everywhere inside the engine.
  • An EventHandler can register itself for some events at the EventManager.
  • If an event is emitted to the EventManager, it calls every event handler that has registered itself for that event.
An event handling system shall be added to the engine: - Events are categorised according to subsystems: Network, MarkupParser, StylesheetParser, ... - An EventSource can emit events. The event category is passed, together with a short string as event identifier and an ID as uint64_t. - The EventManager is a singleton that recevies events from everywhere inside the engine. - An EventHandler can register itself for some events at the EventManager. - If an event is emitted to the EventManager, it calls every event handler that has registered itself for that event.
ncc1988 added this to the Version 0.0.1 - "Uyghur lives matter!" milestone 2 years ago
ncc1988 self-assigned this 2 years ago
ncc1988 added the
TODO
label 1 year ago
ncc1988 added the
enhancement
label 1 year ago
ncc1988 added the
wiki-doc-TODO
label 1 year ago
ncc1988 modified the milestone from Version 0.0.1 - "Uyghur lives matter!" to Version 0.0.2 1 year ago
Sign in to join this conversation.
Loading…
There is no content yet.