zibonbadi / flowerdefense

Other
4 stars 0 forks source link

Implement event bus #1

Closed zibonbadi closed 2 years ago

zibonbadi commented 2 years ago

The base engine still needs and event system for central message communication between game objects and internal engine components.

Implement an central event bus (possibly singleton) and hook the most important engine components into it. It should a Bus-Style broadcast algorithm. Send everything to all subscribers and let recipients check for suitability.