1
0
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:
lidgren
2010-08-05 13:57:53 +00:00
parent d8308e584a
commit 44089457f9

View File

@@ -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>