Ejemplo n.º 1
0
 public bool Watch(EventSystem EventSystem, string event_identifier, params object[] o)
 {
     //If the message type correspond to the type of message watched by the watcher
     if (event_identifier == this.event_identifier)
     {
         //If the watcher's condition is validated
         if (condition != null && condition(o))
         {
             effect.Raise(EventSystem, event_identifier, o);
             return true;
         }
     }
     return false;
 }
Ejemplo n.º 2
0
 public ModuleManager(EventSystem EventSystem)
 {
     this.EventSystem = EventSystem;
     this.SetupModule(new ErrorHandler(this));
 }