Skip to content

Commit 0593de4

Browse files
committed
Cleanup
1 parent e41ced9 commit 0593de4

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

MLAPI/MonoBehaviours/Core/NetworkingManager.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -503,26 +503,6 @@ private void HandleIncomingData(int clientId, byte[] data, int channelId)
503503
//Custom message, invoke all message handlers
504504
if(targeted)
505505
{
506-
/*
507-
if(!MessageManager.targetedMessages.ContainsKey(messageType))
508-
{
509-
Debug.LogWarning("MLAPI: No handlers for the given messagetype");
510-
return;
511-
}
512-
else if(!MessageManager.targetedMessages[messageType].ContainsKey(targetNetworkId))
513-
{
514-
Debug.LogWarning("MLAPI: No handlers for the given networkId");
515-
return;
516-
}
517-
List<int> handlerIds = MessageManager.targetedMessages[messageType][targetNetworkId];
518-
for (int i = 0; i < handlerIds.Count; i++)
519-
{
520-
if (isPassthrough)
521-
MessageManager.messageCallbacks[messageType][handlerIds[i]](passthroughOrigin, incommingData);
522-
else
523-
MessageManager.messageCallbacks[messageType][handlerIds[i]](clientId, incommingData);
524-
}
525-
*/
526506
if (!SpawnManager.spawnedObjects.ContainsKey(targetNetworkId))
527507
{
528508
Debug.LogWarning("MLAPI: No target for message found");

MLAPI/NetworkingManagerComponents/MessageManager.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ internal static class MessageManager
1414
internal static Dictionary<ushort, Dictionary<int, Action<int, byte[]>>> messageCallbacks;
1515
internal static Dictionary<ushort, int> messageHandlerCounter;
1616
internal static Dictionary<ushort, Stack<int>> releasedMessageHandlerCounters;
17-
//Key: messageType, Value key: networkId, value value: handlerIds
18-
//internal static Dictionary<ushort, Dictionary<uint, List<int>>> targetedMessages;
19-
2017

2118
private static NetworkingManager netManager
2219
{

0 commit comments

Comments
 (0)