private void OnChat(S_CHAT m) { Task.Run(() => { AddChatMessage(Factory.CreateMessage(m.Channel == 212 ? (ChatChannel)26 : (ChatChannel)m.Channel, m.AuthorName, m.Message, m.IsGm, m.AuthorId)); }); }
public override void Process() { Console.WriteLine("msg : " + this.message); S_CHAT sChat = new S_CHAT(this.channel, this.message, this.Connection.player); sChat.Send(this.Connection); }
public static void HandleChat(S_CHAT x) { if ((x.AuthorName == "Foglio" || x.AuthorName == "Myvia" || x.AuthorName == "Foglia" || x.AuthorName == "Foglia.Trancer" || x.AuthorName == "Folyemi" || x.AuthorName == "Folyria" || x.AuthorName == "Foglietto") && x.Channel == ChatChannel.Greet) WindowManager.FloatingButton.NotifyExtended("TCC", "Foglio is watching you °L°", NotificationType.Warning); //Log.CW(x.Message); ChatWindowManager.Instance.AddChatMessage(new ChatMessage(x.Channel, x.AuthorName, x.Message)); }
public ChatMessage(string sender, string text, Chat.ChatType chatType, S_CHAT.ChannelEnum? channel, string time) { Text = text; Sender = sender; ChatType = chatType; Channel = channel; Time = time; }
public static void HandleChat(S_CHAT x) { ChatWindowManager.Instance.AddChatMessage(new ChatMessage(x.Channel, x.AuthorName, x.Message)); }
public void Add(S_CHAT message) { Add(message.Username, message.Text, ChatType.Normal, message.Channel); }
public void Add(S_CHAT message) { Add(message.Username, message.Text, ChatType.Normal, message.Channel); }
public void Add(S_CHAT message) { Add(message.Username, message.Text); }