Added Region's to NetworkingManager and NetworkedBehaviour

This commit is contained in:
Albin Corén 2018-03-30 23:54:31 +02:00
parent 8d389602af
commit d54ec84209
2 changed files with 4 additions and 0 deletions

View File

@ -616,6 +616,7 @@ namespace MLAPI
} }
#endregion #endregion
#region SEND METHODS
protected void SendToServer(string messageType, string channelName, byte[] data) protected void SendToServer(string messageType, string channelName, byte[] data)
{ {
if(MessageManager.messageTypes[messageType] < 32) if(MessageManager.messageTypes[messageType] < 32)
@ -825,6 +826,7 @@ namespace MLAPI
} }
NetworkingManager.singleton.Send(messageType, channelName, data, networkId, networkedObject.GetOrderIndex(this)); NetworkingManager.singleton.Send(messageType, channelName, data, networkId, networkedObject.GetOrderIndex(this));
} }
#endregion
protected NetworkedObject GetNetworkedObject(uint networkId) protected NetworkedObject GetNetworkedObject(uint networkId)
{ {

View File

@ -868,6 +868,7 @@ namespace MLAPI
} }
} }
#region SEND METHODS
internal void PassthroughSend(int targetId, int sourceId, ushort messageType, int channelId, byte[] data, uint? networkId = null, ushort? orderId = null) internal void PassthroughSend(int targetId, int sourceId, ushort messageType, int channelId, byte[] data, uint? networkId = null, ushort? orderId = null)
{ {
if (isHost && targetId == -1) if (isHost && targetId == -1)
@ -1131,6 +1132,7 @@ namespace MLAPI
} }
} }
} }
#endregion
private void DisconnectClient(int clientId) private void DisconnectClient(int clientId)
{ {