Cleanup
This commit is contained in:
parent
e41ced9e8f
commit
0593de44a5
@ -503,26 +503,6 @@ namespace MLAPI
|
|||||||
//Custom message, invoke all message handlers
|
//Custom message, invoke all message handlers
|
||||||
if(targeted)
|
if(targeted)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
if(!MessageManager.targetedMessages.ContainsKey(messageType))
|
|
||||||
{
|
|
||||||
Debug.LogWarning("MLAPI: No handlers for the given messagetype");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
else if(!MessageManager.targetedMessages[messageType].ContainsKey(targetNetworkId))
|
|
||||||
{
|
|
||||||
Debug.LogWarning("MLAPI: No handlers for the given networkId");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
List<int> handlerIds = MessageManager.targetedMessages[messageType][targetNetworkId];
|
|
||||||
for (int i = 0; i < handlerIds.Count; i++)
|
|
||||||
{
|
|
||||||
if (isPassthrough)
|
|
||||||
MessageManager.messageCallbacks[messageType][handlerIds[i]](passthroughOrigin, incommingData);
|
|
||||||
else
|
|
||||||
MessageManager.messageCallbacks[messageType][handlerIds[i]](clientId, incommingData);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
if (!SpawnManager.spawnedObjects.ContainsKey(targetNetworkId))
|
if (!SpawnManager.spawnedObjects.ContainsKey(targetNetworkId))
|
||||||
{
|
{
|
||||||
Debug.LogWarning("MLAPI: No target for message found");
|
Debug.LogWarning("MLAPI: No target for message found");
|
||||||
|
@ -14,9 +14,6 @@ namespace MLAPI.NetworkingManagerComponents
|
|||||||
internal static Dictionary<ushort, Dictionary<int, Action<int, byte[]>>> messageCallbacks;
|
internal static Dictionary<ushort, Dictionary<int, Action<int, byte[]>>> messageCallbacks;
|
||||||
internal static Dictionary<ushort, int> messageHandlerCounter;
|
internal static Dictionary<ushort, int> messageHandlerCounter;
|
||||||
internal static Dictionary<ushort, Stack<int>> releasedMessageHandlerCounters;
|
internal static Dictionary<ushort, Stack<int>> releasedMessageHandlerCounters;
|
||||||
//Key: messageType, Value key: networkId, value value: handlerIds
|
|
||||||
//internal static Dictionary<ushort, Dictionary<uint, List<int>>> targetedMessages;
|
|
||||||
|
|
||||||
|
|
||||||
private static NetworkingManager netManager
|
private static NetworkingManager netManager
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user