Asgard.BifrostServer.Send C# (CSharp) Метод

Send() публичный Метод

public Send ( Asgard.Core.Network.Packets.Packet packet, IList sendToList, IList excludeGroup, int channel ) : void
packet Asgard.Core.Network.Packets.Packet
sendToList IList
excludeGroup IList
channel int
Результат void
        public void Send(Packet packet, IList<NetNode> sendToList, IList<NetNode> excludeGroup, int channel = 0)
        {
            var msg = packet.SendMessage(this);

            var group = sendToList.Except(excludeGroup).Cast<NetConnection>().ToList();

            if (group.Count == 0) return;
            Peer.SendMessage(msg, group, (Lidgren.Network.NetDeliveryMethod)packet.Method, channel);
        }

Same methods

BifrostServer::Send ( Asgard.Core.Network.Packets.Packet packet, IList sendToList, NetNode excludeNode = null, int channel ) : void