示例#1
0
        private void MessageSay(Message message)
        {
            var inputMessage = GetData <ChatRequest>(message);

            if (inputMessage != null && message?.Player != null)
            {
                Console.WriteLine(message.Player.Name + ": " + inputMessage.Message);
                _chatSender.Say(message.Player, inputMessage.Message);
            }
        }