mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
QNetworkServer.RegisterHandlerSafe
This commit is contained in:
parent
c9f4e10389
commit
b9d95a16fb
@ -20,7 +20,7 @@ namespace QSB.Utility.VariableSync
|
||||
|
||||
public virtual void Awake()
|
||||
{
|
||||
QNetworkServer.instance.m_SimpleServerSimple.RegisterHandlerSafe(short.MaxValue, HandleVariable);
|
||||
QNetworkServer.RegisterHandlerSafe(short.MaxValue, HandleVariable);
|
||||
|
||||
if (LocalPlayerAuthority)
|
||||
{
|
||||
|
@ -615,6 +615,8 @@ namespace QuantumUNET
|
||||
|
||||
public static void RegisterHandler(short msgType, QNetworkMessageDelegate handler) => instance.m_SimpleServerSimple.RegisterHandler(msgType, handler);
|
||||
|
||||
public static void RegisterHandlerSafe(short msgType, QNetworkMessageDelegate handler) => instance.m_SimpleServerSimple.RegisterHandlerSafe(msgType, handler);
|
||||
|
||||
public static void UnregisterHandler(short msgType) => instance.m_SimpleServerSimple.UnregisterHandler(msgType);
|
||||
|
||||
public static void ClearHandlers() => instance.m_SimpleServerSimple.ClearHandlers();
|
||||
@ -1348,7 +1350,7 @@ namespace QuantumUNET
|
||||
|
||||
private readonly HashSet<int> m_ExternalConnections;
|
||||
|
||||
public readonly ServerSimpleWrapper m_SimpleServerSimple;
|
||||
private readonly ServerSimpleWrapper m_SimpleServerSimple;
|
||||
|
||||
private float m_MaxDelay = 0.1f;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user