You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-19 08:36:34 +09:00
All SendMessage methods now return a boolean
This commit is contained in:
@@ -84,15 +84,16 @@ namespace Lidgren.Network
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends message to server
|
/// Sends message to server
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void SendMessage(NetOutgoingMessage msg, NetDeliveryMethod method)
|
public bool SendMessage(NetOutgoingMessage msg, NetDeliveryMethod method)
|
||||||
{
|
{
|
||||||
NetConnection serverConnection = ServerConnection;
|
NetConnection serverConnection = ServerConnection;
|
||||||
if (serverConnection == null)
|
if (serverConnection == null)
|
||||||
{
|
{
|
||||||
//LogError("Cannot send message, no server connection!");
|
//LogError("Cannot send message, no server connection!");
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
serverConnection.SendMessage(msg, method, 0);
|
|
||||||
|
return serverConnection.SendMessage(msg, method, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user