Implement most of the net var networking functionality

This commit is contained in:
Evil Factory
2026-02-08 11:51:09 -03:00
parent 224e32ccf1
commit ce4cd1fefd
3 changed files with 75 additions and 16 deletions
@@ -9,10 +9,10 @@ namespace Barotrauma.LuaCs;
#if CLIENT
public delegate void NetMessageReceived(IReadMessage netMessage);
#elif SERVER
public delegate void NetMessageReceived(IReadMessage netMessage, NetworkConnection connection);
internal delegate void NetMessageReceived(IReadMessage netMessage, Client connection);
#endif
public interface INetworkingService : IReusableService, ILuaCsNetworking, IEntityNetworkingService
internal interface INetworkingService : IReusableService, ILuaCsNetworking, IEntityNetworkingService
{
bool IsActive { get; }
bool IsSynchronized { get; }