Ejemplo n.º 1
0
 public SayingEventArgs(TasClient.SayPlace sayPlace, string channel, string text, bool isEmote)
 {
     SayPlace = sayPlace;
     Channel  = channel;
     Text     = text;
     IsEmote  = isEmote;
 }
Ejemplo n.º 2
0
        public static void Respond(TasClient tas, Spring spring, TasSayEventArgs e, string text)
        {
            TasClient.SayPlace p = TasClient.SayPlace.User;
            bool emote           = false;

            if (e.Place == TasSayEventArgs.Places.Battle)
            {
                p     = TasClient.SayPlace.Battle;
                emote = true;
            }
            if (e.Place == TasSayEventArgs.Places.Game && spring.IsRunning)
            {
                spring.SayGame(text);
            }
            else
            {
                tas.Say(p, e.UserName, text, emote);
            }
        }