Skip to content

Commit a793dc6

Browse files
committed
Added additional regions to NetworkingManager
1 parent d54ec84 commit a793dc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MLAPI/MonoBehaviours/Core/NetworkingManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ private void HandleIncomingData(int clientId, byte[] data, int channelId)
502502

503503
if (messageType >= 32)
504504
{
505+
#region CUSTOM MESSAGE
505506
//Custom message, invoke all message handlers
506507
if(targeted)
507508
{
@@ -532,9 +533,11 @@ private void HandleIncomingData(int clientId, byte[] data, int channelId)
532533
pair.Value(clientId, incommingData);
533534
}
534535
}
536+
#endregion
535537
}
536538
else
537539
{
540+
#region INTERNAL MESSAGE
538541
//MLAPI message
539542
switch (messageType)
540543
{
@@ -863,6 +866,7 @@ private void HandleIncomingData(int clientId, byte[] data, int channelId)
863866
}
864867
break;
865868
}
869+
#endregion
866870
}
867871
}
868872
}

0 commit comments

Comments
 (0)