public void IsCheckPassTest()
 {
     LoginZoneClusterResult target = new LoginZoneClusterResult(); // TODO: 初始化为适当的值
     bool actual;
     actual = target.IsCheckPass;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="packetReader"></param>
        /// <returns></returns>
        public static LoginZoneClusterResult GetLoginZoneClusterResult(PacketReader packetReader)
        {
            LoginZoneClusterResult returnLoginZoneClusterResult = new LoginZoneClusterResult();

            returnLoginZoneClusterResult.m_IsCheckPass = packetReader.ReadBoolean();

            return(returnLoginZoneClusterResult);
        }
 public void GetLoginZoneClusterResultTest()
 {
     PacketReader packetReader = null; // TODO: 初始化为适当的值
     LoginZoneClusterResult expected = new LoginZoneClusterResult(); // TODO: 初始化为适当的值
     LoginZoneClusterResult actual;
     actual = LoginZoneClusterResult.GetLoginZoneClusterResult( packetReader );
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
Esempio n. 4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="netState"></param>
        /// <param name="packetReader"></param>
        internal static void Zone_HandlerLoginZoneClusterResult(NetState netState, PacketReader packetReader)
        {
            Zone_ConnecterExtendData extendData = netState.GetComponent <Zone_ConnecterExtendData>(Zone_ConnecterExtendData.COMPONENT_ID);

            if (extendData == null)
            {
                throw new Exception("Zone_PacketHandlers.Zone_HandlerLoginZoneClusterResult(...) - extendData == null error!");
            }

            if (extendData.IsLoggedIn == true)
            {
                LOGs.WriteLine(LogMessageType.MSG_ERROR, "Zone_PacketHandlers.Zone_HandlerLoginZoneClusterResult(...) - extendData.IsLoggedIn == true error!");
                return;
            }

            LoginZoneClusterResult loginZoneClusterResult = LoginZoneClusterResult.GetLoginZoneClusterResult(packetReader);

            if (loginZoneClusterResult.IsCheckPass)
            {
                LOGs.WriteLine(LogMessageType.MSG_INFO, "ZoneWorld:登陆ZoneCluster服务器 成功!");

                extendData.IsLoggedIn = true;
            }
        }
Esempio n. 5
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="packetReader"></param>
        /// <returns></returns>
        public static LoginZoneClusterResult GetLoginZoneClusterResult( PacketReader packetReader )
        {
            LoginZoneClusterResult returnLoginZoneClusterResult = new LoginZoneClusterResult();

            returnLoginZoneClusterResult.m_IsCheckPass = packetReader.ReadBoolean();

            return returnLoginZoneClusterResult;
        }