Currently, Forge modules cannot easily pass data back and forth. This forces modules to either be strongly coupled to each other or for the developer who is using Forge as a library to build some sort of connection between modules (see controller.js). An example of this is the drawBuffer and how it is shared between the render context and input context objects.
It would be useful if we had some way to more easily pass information between modules. Some ideas include an event manager module to allow modules to register callbacks with other modules or some sort of publisher-subscriber inter-thread communication message-passing layer.
Currently, Forge modules cannot easily pass data back and forth. This forces modules to either be strongly coupled to each other or for the developer who is using Forge as a library to build some sort of connection between modules (see controller.js). An example of this is the drawBuffer and how it is shared between the render context and input context objects.
It would be useful if we had some way to more easily pass information between modules. Some ideas include an event manager module to allow modules to register callbacks with other modules or some sort of publisher-subscriber inter-thread communication message-passing layer.