Skip to content

Commit d54ec84

Browse files
committed
Added Region's to NetworkingManager and NetworkedBehaviour
1 parent 8d38960 commit d54ec84

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ private void SetDirtyness()
616616
}
617617
#endregion
618618

619+
#region SEND METHODS
619620
protected void SendToServer(string messageType, string channelName, byte[] data)
620621
{
621622
if(MessageManager.messageTypes[messageType] < 32)
@@ -825,6 +826,7 @@ protected void SendToClientsTarget(string messageType, string channelName, byte[
825826
}
826827
NetworkingManager.singleton.Send(messageType, channelName, data, networkId, networkedObject.GetOrderIndex(this));
827828
}
829+
#endregion
828830

829831
protected NetworkedObject GetNetworkedObject(uint networkId)
830832
{

MLAPI/MonoBehaviours/Core/NetworkingManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ private void HandleIncomingData(int clientId, byte[] data, int channelId)
868868
}
869869
}
870870

871+
#region SEND METHODS
871872
internal void PassthroughSend(int targetId, int sourceId, ushort messageType, int channelId, byte[] data, uint? networkId = null, ushort? orderId = null)
872873
{
873874
if (isHost && targetId == -1)
@@ -1131,6 +1132,7 @@ internal void Send(string messageType, string channelName, byte[] data, int clie
11311132
}
11321133
}
11331134
}
1135+
#endregion
11341136

11351137
private void DisconnectClient(int clientId)
11361138
{

0 commit comments

Comments
 (0)