1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 06:36:30 +09:00

Fixed NetServer missing SendToAll with sequence channel parameter

This commit is contained in:
chrisnobrega
2018-08-30 22:59:04 -04:00
parent d0931dcf9f
commit 14df22ff9a

View File

@@ -35,6 +35,25 @@ namespace Lidgren.Network
SendMessage(msg, all, method, 0);
}
/// <summary>
/// Send a message to all connections
/// </summary>
/// <param name="msg">The message to send</param>
/// <param name="method">How to deliver the message</param>
/// <param name="sequenceChannel">Which sequence channel to use for the message</param>
public void SendToAll(NetOutgoingMessage msg, NetDeliveryMethod method, int sequenceChannel)
{
// Modifying m_connections will modify the list of the connections of the NetPeer. Do only reads here
var all = m_connections;
if (all.Count <= 0) {
if (msg.m_isSent == false)
Recycle(msg);
return;
}
SendMessage(msg, all, method, sequenceChannel);
}
/// <summary>
/// Send a message to all connections except one
/// </summary>