-- Squash:

- In progress implementation of services model.
This commit is contained in:
MapleWheels
2024-09-18 20:54:56 -04:00
committed by Maplewheels
parent 9e957a75b0
commit 01cc1d331b
68 changed files with 3083 additions and 152 deletions
@@ -0,0 +1,25 @@
using Barotrauma.LuaCs.Configuration;
using Barotrauma.LuaCs.Data;
using Barotrauma.LuaCs.Networking;
using Barotrauma.Networking;
namespace Barotrauma.LuaCs.Networking;
public interface INetVar : IVarId
{
/// <summary>
/// Synchronized network id, uninitialized if value is zero/0. Used by Networking service.
/// </summary>
ushort NetId { get; }
/// <summary>
/// Synchronization type
/// </summary>
NetSync SyncType { get; }
/// <summary>
/// Permissions needed by clients to send net-events or receive net messages.
/// </summary>
ClientPermissions WritePermissions { get; }
void ReadNetMessage(INetReadMessage message);
void WriteNetMessage(INetWriteMessage message);
void Initialize(ushort netId, NetSync syncMode, ClientPermissions writePermissions);
}