示例#1
0
        /// <summary>
        /// Helper method for adding a chat message into the game.
        /// </summary>
        /// <param name="message">Message to insert.</param>
        /// <param name="color">Color of the message text.</param>
        private void InsertChatMessage(string message, Color color)
        {
            ServiceManager.Game.Console.DebugPrint(
                String.Format("[CHAT] {0}", message));

            buffer.Enqueue(new ChatMessageEvent(game, message, color));
        }