Fixed networking references errors.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user