Would it be possible to move to a proper even system, where events are passed around (that have the necessary properties/methods to get whats on them now). One where we can control event propagation better?
Proper Events
Discussion in 'Rust Development' started by ColonelAngus, Feb 9, 2015.
-
what are you talking about XD?
-
http://www.codeproject.com/Articles/20550/C-Event-Implementation-Fundamentals-Best-Practices
Right now, we have no way to stop most of the hooks from continuing, and nothing follows the above practices. -
Feel free to open up a pull request or join the irc to discuss possible changes to the api.
As of right now most hooks can be canceled by returning null. -
-
Wulf Community Admin
Ex. https://github.com/OxideMod/Oxide/blob/master/Oxide.Ext.Rust/hooks.txt#L39 -
-
Wulf Community Admin
-
Good to hear better docs are coming though -
Wulf Community Admin