Commit graph

18 commits

Author SHA1 Message Date
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
3df683edb7 util.events: Remove varargs, event handlers can now only accept a single parameter 2013-07-15 12:15:51 +01:00
Waqas Hussain
3909d24931 util.events: Remove an event's table when it has no more handlers. 2010-12-19 00:53:19 +05:00
Waqas Hussain
152638d87b util.events: Event handler indices are now built lazily (faster server startup for large number of hosts). 2010-09-19 17:51:00 +05:00
Waqas Hussain
191c3849e2 util.events: Create new index on handler change instead of modifying existing one (this makes util.events fully reentrant). 2010-09-17 04:09:59 +05:00
Waqas Hussain
6f95b4de93 util.events: Fixed the exposed API for adding/removing sets of event handlers. 2010-09-17 04:09:58 +05:00
Waqas Hussain
af976e466d util.events: Removed dispatcher creation functions (these weren't being used). 2010-09-17 04:09:58 +05:00
Matthew Wild
46c0b8c7f9 Merge 0.6->0.7 2010-03-22 17:24:55 +00:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Matthew Wild
4d626a622e util.events: Rename add_plugin() and remove_plugin() to add_handlers() and remove_handlers() respectively 2009-12-31 02:39:40 +00:00
Matthew Wild
e45610ce6e Add copyright header to those files missing one 2009-07-10 03:08:38 +01:00
Matthew Wild
b5dd531212 util.events: Convert from Windows line endings 2009-07-09 22:57:32 +01:00
Waqas Hussain
d9a71da220 util.events: Replaced ipairs with slightly faster numeric for loop - #optimization 2009-06-26 08:52:26 +05:00
Waqas Hussain
b782b7ad92 util.events: Dispatch code now accepts a variable number of arguments 2009-05-17 04:50:32 +05:00
Waqas Hussain
ec51346b51 util.events: Much more efficient index building 2009-05-17 02:06:35 +05:00
Waqas Hussain
9e0d2195f1 util.events: handler priorities 2009-05-16 15:56:45 +05:00
Waqas Hussain
cfc9bf6a35 util.events: event handlers can now return a result, which also interrupts further handling of the event 2009-05-15 06:23:55 +05:00
Waqas Hussain
1192c1a1f5 Added: util/events.lua: An event handling library 2009-03-30 03:58:59 +05:00