예제 #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;
 }
예제 #2
0
 public ModuleManager(EventSystem EventSystem)
 {
     this.EventSystem = EventSystem;
     this.SetupModule(new ErrorHandler(this));
 }