public void ProcessPacket(Guid sourcePlayerId, Packet packet) { if (!router.ProcessPacket(sourcePlayerId, packet)) { #if DEBUG Console.WriteLine("Unknown packet dropped: " + packet.GetType().FullName); #else Console.WriteLine("Unknown packet dropped: " + packet.GetType().Name); #endif } }
public void ProcessPackets() { Packet packet; while (packetQueue.TryDequeue(out packet)) { if (!router.ProcessPacket(Guid.Empty, packet)) { Debug.Log("Unhandled packet received: " + packet.GetType().FullName); } } }