Пример #1
0
        private LoginNetwork()
        {
            _handler = new LoginProtocolHandler();

            RegisterPacket(0x01, typeof(CARequestAuthPacket)); // TODO +---
            RegisterPacket(0x02, typeof(CARequestAuthTencentPacket));
            RegisterPacket(0x03, typeof(CARequestAuthGameOnPacket));
            RegisterPacket(0x04, typeof(CARequestAuthMailRuPacket)); // TODO +
            RegisterPacket(0x05, typeof(CAChallengeResponsePacket));
            RegisterPacket(0x06, typeof(CAChallengeResponse2Packet));
            RegisterPacket(0x07, typeof(CAOtpNumberPacket));
            RegisterPacket(0x09, typeof(CAPcCertNumberPacket));
            RegisterPacket(0x0a, typeof(CAListWorldPacket));        // TODO +
            RegisterPacket(0x0b, typeof(CAEnterWorldPacket));       // TODO +
            RegisterPacket(0x0c, typeof(CACancelEnterWorldPacket));
            RegisterPacket(0x0d, typeof(CARequestReconnectPacket)); // TODO +
        }
        private LoginNetwork()
        {
            _handler = new LoginProtocolHandler();

            RegisterPacket(0x01, typeof(CARequestAuthPacket)); // требует клиент 3.5.1.4 tw
            //RegisterPacket(0x02, typeof(CARequestAuthTencentPacket));
            //RegisterPacket(0x03, typeof(CARequestAuthGameOnPacket));
            //RegisterPacket(0x05, typeof(CARequestAuthMailRuPacket)); // TODO +
            RegisterPacket(0x05, typeof(CAChallengeResponsePacket));
            //RegisterPacket(0x08, typeof(CAOtpNumberPacket));
            //RegisterPacket(0x0a, typeof(CAPcCertNumberPacket));
            //RegisterPacket(0x0d, typeof(CACancelEnterWorldPacket));
            RegisterPacket(0x06, typeof(CAChallengeResponse2Packet)); // требует клиент 3.0.3.0
            RegisterPacket(0x0C, typeof(CAListWorldPacket));          // TODO +
            RegisterPacket(0x0D, typeof(CAEnterWorldPacket));         // TODO +
            RegisterPacket(0x0F, typeof(CARequestReconnectPacket));   // TODO +
            RegisterPacket(0x11, typeof(CARequestAuthTWPacket));      // TODO +
            RegisterPacket(0x05, typeof(CARequestAuthTrionPacket));
        }