Once it's implemented in a class it provide a "void Notify(DOLEvent e, object sender, EventArgs args);" method to any object who would need event notification.
I can just add this Interface to some objects like Brain and GameObject without any modification to test them for Event Handling compatibility ! (they already implement the Notify() Handler)
useful for
- Code: Select all
if(object is IDOLEventHandler) { object.Notify(dolevent, this, new EventArgs()); }