Пример #1
0
        public static void DumpUnknown(PacketIn packet)
        {
            ServerConsole.Write(System.Drawing.Color.Red, "Dumping unknown packet with Id {0:X2}: ", packet.PacketType);

            for (int i = 0; i < (packet.PacketSize - 3); i++)
            {
                ServerConsole.Write(System.Drawing.Color.Red, "{0} ", packet.ReadByte());
            }

            ServerConsole.WriteLine("");
        }
Пример #2
0
        public static void DumpUnusedPacket(string name, PacketIn packet)
        {
            ServerConsole.Write(System.Drawing.Color.Red, "Dumping unused packet #{0} with Id {1:X2}: ", name, packet.PacketType);

            for (int i = 0; i < (packet.PacketSize - 3); i++)
            {
                ServerConsole.Write(System.Drawing.Color.Red, "{0} ", packet.ReadByte());
            }

            ServerConsole.WriteLine("");
        }