Exemplo n.º 1
0
        /// <summary>
        /// Sends a simple chat message to all online players in the area except for the player with the corresponding playerIdToIgnore
        /// </summary>
        /// <param name="area"></param>
        /// <param name="prefix"></param>
        /// <param name="text"></param>
        /// <param name="chatType"></param>
        /// <param name="playerIdToIgnore"></param>
        public void BroadcastSimpleChat(IArea area, string prefix, string text, ChatTypes chatType, int?playerIdToIgnore = null)
        {
            var outboundList = area.BuildReplyAllChatList(playerIdToIgnore, BuildChatLine(prefix, text, ChatHelpers.GetColor(ChatTypes.Alert)));

            SendChatList(outboundList);
        }