This is a system that communicates game entities through Signal objects.
Signals manage listeners and emitters, creating a communication without entities holding references from each other. This system attempts to create something between the Observer and Mediator patterns.
Mediator promotes loose coupling by keeping objects from referring to each other explicitly.
Observer uses a listener approach so when an event is fired, all subscribers react through callbacks.
Using signals, a controlled, decoupled communication system between game entities is created. They can communicate from anywhere in the game hierarchy, using multiple emitters and multiple listeners if needed.
Emission methods describe parameters. Delegates are checked on callback passing. For debugging, connections, emissions and receptions can be printed on console.
Demo Video
Tutorial Videos
Web Demo
Support E-mail
Distribution graphic by Freepik and Tower graphic by Simpleicon from Flaticon are licensed under CC BY 3.0.
Made with Logo Maker