Ejemplo n.º 1
0
        /// <summary>
        /// Handle incoming packets.
        /// </summary>
        /// <param name="packet">Incoming packet</param>
        public override void HandleMessage(NetPacketBase packet)
        {
            packet.Position += 13;
            var packetHeaderNumber = packet.Read <uint>();
            var packetHeader       = (PacketType)packetHeaderNumber;
            var pak = packet as FFPacket;

            if (!FFPacketHandler.Invoke(this, packetHeader, packet))
            {
                FFPacket.UnknowPacket <PacketType>(packetHeaderNumber, 2);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handle incoming packets.
        /// </summary>
        /// <param name="packet">Incoming packet</param>
        public override void HandleMessage(NetPacketBase packet)
        {
            packet.Position = 17;

            var packetHeaderNumber = packet.Read <uint>();
            var packetHeader       = (PacketType)packetHeaderNumber;

            Log.Debug("Recieve World packet: {0}", packetHeader);

            if (!FFPacketHandler.Invoke(this, packetHeader, packet))
            {
                FFPacket.UnknowPacket <PacketType>(packetHeaderNumber, 8);
            }
        }