ChrisMAN Posted October 14, 2012 Posted October 14, 2012 I have abstracting a component of my gui library out for general consumption. https://github.com/friesencr/lua_emitter Fork and publish issues. OSS <3 It allows for simple event communication between objects. Check out the readme. If you want a similar experience as SendMessage but with a small decoupled object. Try emitter!!! I will be creating a promise system for lua which will allow for a really nice asynchronous story over the next week. A deferred value system is vastly superior to a system where the server takes callbacks. I find that dealing with certain problems using events and callbacks clearly states the problems and therefore simpler solutions. STATE MACHINE Y U NO EVENTS. Thanks, Chris 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.