Track LocalMods as part of monolith
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using Barotrauma;
|
||||
using Barotrauma.Networking;
|
||||
|
||||
namespace MoreLevelContent.Networking
|
||||
{
|
||||
/// <summary>
|
||||
/// Server
|
||||
/// </summary>
|
||||
public static partial class NetUtil
|
||||
{
|
||||
/// <summary>
|
||||
/// Send a message to the specified client
|
||||
/// </summary>
|
||||
/// <param name="outMsg"></param>
|
||||
/// <param name="connection"></param>
|
||||
/// <param name="deliveryMethod"></param>
|
||||
internal static void SendClient(IWriteMessage outMsg, NetworkConnection connection, DeliveryMethod deliveryMethod = DeliveryMethod.Reliable)
|
||||
{
|
||||
if (GameMain.IsSingleplayer) return;
|
||||
GameMain.LuaCs.Networking.Send(outMsg, connection, deliveryMethod);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Send message to all connected clients
|
||||
/// </summary>
|
||||
/// <param name="outMsg"></param>
|
||||
/// <param name="deliveryMethod"></param>
|
||||
internal static void SendAll(IWriteMessage outMsg, DeliveryMethod deliveryMethod = DeliveryMethod.Reliable)
|
||||
{
|
||||
if (GameMain.IsSingleplayer) return;
|
||||
GameMain.LuaCs.Networking.Send(outMsg, null, deliveryMethod);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user