Event Bus
Last updated
Was this helpful?
Last updated
Was this helpful?
The event bus is a design pattern, it serves the purpose of a "global event system" as it can be invoked from anyone, anywhere and can be listened by anyone, anywhere.
The implementation we use was created by the and we use it to create new event buses. To understand further on the design pattern itself, you can .
We use these events when we want something that will be used in more than one place, without having to care about object relation.
We usually want events to be fired by systems when we want to inform other objects something has happened, like a round timer being updated, a player that spawned, an object that was picked up.
Pretty straight-forward isn't it? Well, now for the usage.