01cc1d331b
- In progress implementation of services model.
24 lines
573 B
C#
24 lines
573 B
C#
using System;
|
|
using Barotrauma.LuaCs.Data;
|
|
using Barotrauma.LuaCs.Networking;
|
|
using Barotrauma.Networking;
|
|
|
|
namespace Barotrauma.LuaCs.Services;
|
|
|
|
public interface INetworkingService : IService
|
|
{
|
|
bool IsActive { get; }
|
|
bool IsSynchronized { get; }
|
|
bool TryRegisterVar(INetVar var, NetSync mode, ClientPermissions permissions);
|
|
void UnregisterVar(Guid varId);
|
|
bool SendEvent(Guid varId);
|
|
void SendMessageGlobal(string id, string message);
|
|
void Synchronize();
|
|
|
|
#region LegacyAPI
|
|
|
|
bool RestrictMessageSize { get; set; }
|
|
|
|
#endregion
|
|
}
|