Fixed networking references errors.

This commit is contained in:
MapleWheels
2026-02-03 19:48:35 -05:00
committed by Maplewheels
parent cae3741953
commit 9cc20a03c0
6 changed files with 21 additions and 32 deletions
@@ -46,28 +46,6 @@ internal partial class NetworkingService : INetworkingService
#endif
}
public void RegisterNetVar(INetworkSyncEntity netVar)
{
netVars[netVar.InstanceId] = netVar;
netReceives[netVar.InstanceId] = (IReadMessage netMessage) =>
{
INetReadMessage internalMind = new NetReadMessage();
internalMind.SetMessage(netMessage);
netVar.ReadNetMessage(internalMind);
};
}
public void SendNetVar(INetworkSyncEntity netVar)
{
if (netVars.ContainsKey(netVar.InstanceId))
{
INetWriteMessage message = Start(netVar.InstanceId);
netVar.WriteNetMessage(message);
Send(message.Message);
}
}
public void Receive(Guid netId, NetMessageReceived callback)
{
#if SERVER
@@ -125,4 +103,14 @@ internal partial class NetworkingService : INetworkingService
{
IsDisposed = true;
}
public void RegisterNetVar(INetworkSyncEntity netVar)
{
throw new NotImplementedException();
}
public void SendNetVar(INetworkSyncEntity netVar)
{
throw new NotImplementedException();
}
}