Commit graph

4 commits

Author SHA1 Message Date
Lucas Nicodemus
bf9d0137f1 Added any missing license headers to all files 2012-01-01 03:06:48 -07:00
high
5ba0efb5cc Forgot to implement handlelist -= handler 2011-12-30 22:34:53 -05:00
high
5816b5badd Added + operator to HandlerList<T>. Now it works just like events meaning you don't have to initialize it. Note that means you also cannot call 'Register' unless you create an instance first.
You can do 'TileEdit += HandlerList<TileEditEventArgs>.Create(test, priority, true);'. Which 'Create' takes the same parameters as Register.
Or if you don't need the parameters you can do 'TileEdit += test;'.
2011-12-30 21:36:40 -05:00
high
6437d2a977 Added HandlerList.cs so that we can have prioritized event handlers also so you can easily register a handler and not have to put 'if (e.Handled) return;' at the top. 2011-12-30 20:32:03 -05:00