Exemple #1
0
 public void OnChat(object sender, DHJassEventArgs e)
 {
     string s = e.args["chatString"] as string;
     if (exactMatchOnly)
     {
         if (chatString == s)
             OnMatch(e);
     }
     else
         if (s.Contains(chatString))
             OnMatch(e);
 }
Exemple #2
0
 public void Callback(object sender, DHJassEventArgs args)
 {
     if (DHJassExecutor.ShowTriggerActions)
         Console.WriteLine("Callback: " + this.Name);
     this.Execute();
 }
Exemple #3
0
 protected void OnMatch(DHJassEventArgs e)
 {
     if (match != null)
         match(null, e);
 }