示例#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);
 }
示例#2
0
文件: _Types.cs 项目: sonygod/dotahit
 public void Callback(object sender, DHJassEventArgs args)
 {
     if (DHJassExecutor.ShowTriggerActions)
         Console.WriteLine("Callback: " + this.Name);
     this.Execute();
 }
示例#3
0
 protected void OnMatch(DHJassEventArgs e)
 {
     if (match != null)
         match(null, e);
 }