Jump to content

Lua Emitter


ChrisMAN
 Share

Recommended Posts

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

  • Upvote 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...