You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 23:56:30 +09:00
Merge pull request #106 from chrisnobrega/master
Fixed NetServer missing SendToAll override with sequence channel parameter
This commit is contained in:
@@ -35,6 +35,25 @@ namespace Lidgren.Network
|
|||||||
SendMessage(msg, all, method, 0);
|
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>
|
/// <summary>
|
||||||
/// Send a message to all connections except one
|
/// Send a message to all connections except one
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user