Track LocalMods as part of monolith

This commit is contained in:
2026-06-08 18:50:16 +03:00
parent 143f2fed7c
commit 1b214b44c2
1287 changed files with 139255 additions and 1 deletions
@@ -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);
}
}
}