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); }
public void Callback(object sender, DHJassEventArgs args) { if (DHJassExecutor.ShowTriggerActions) Console.WriteLine("Callback: " + this.Name); this.Execute(); }
protected void OnMatch(DHJassEventArgs e) { if (match != null) match(null, e); }