/// <summary> /// Removes the user in the given message from this model since he or /// she was kicked. /// Call this method when a Client Kicked Message (306) is /// received from the server. /// </summary> /// <param name="message"></param> public void OnClientKickedMessage(MessageEventArgs_306307 message) { var user = GetUser(message.Victim); if (user != null) { userList.Remove(user); ClientLeft(user); //TODO: Send a message for why this user was kicked } }
// 306 private void OnClientKickedEvent(object sender, int messageId, string messageName, string message) { if (ClientKickedEvent != null) { var words = SplitMessage(message); var victimId = int.Parse(words[0]); var killerId = int.Parse(words[1]); var parsedMessage = words[2]; var m = new MessageEventArgs_306307(messageId, messageName, parsedMessage, victimId, killerId); ClientKickedEvent(m); } }