Skip to content

Rework Eventing System #44

@OliverWich

Description

@OliverWich

Currently we consume all events instantly, maybe delay them to try to get the order right. This is ugly and hacky.

Possible Solution:

  1. Reveive an event
  2. Check if it belongs to us
  3. Save it in a repo
  4. Build the dependency tree for this event (i.e. "neighbours" needs "trading" or "movement"; "bank_created" needs "player_status" after registration.)
  5. Somehow tell the System Services when all Dependencies for one Event were consumed
  6. Then start executing the actions caused by the events

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions