Пример #1
0
        // Token: 0x06001106 RID: 4358 RVA: 0x0001A6A8 File Offset: 0x000188A8
        public static MemberAuthenticationResultView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            MemberAuthenticationResultView memberAuthenticationResultView = new MemberAuthenticationResultView();

            if ((num & 1) != 0)
            {
                memberAuthenticationResultView.AuthToken = StringProxy.Deserialize(bytes);
            }
            memberAuthenticationResultView.IsAccountComplete = BooleanProxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                memberAuthenticationResultView.LuckyDraw = LuckyDrawUnityViewProxy.Deserialize(bytes);
            }
            memberAuthenticationResultView.MemberAuthenticationResult = EnumProxy <MemberAuthenticationResult> .Deserialize(bytes);

            if ((num & 4) != 0)
            {
                memberAuthenticationResultView.MemberView = MemberViewProxy.Deserialize(bytes);
            }
            if ((num & 8) != 0)
            {
                memberAuthenticationResultView.PlayerStatisticsView = PlayerStatisticsViewProxy.Deserialize(bytes);
            }
            memberAuthenticationResultView.ServerTime = DateTimeProxy.Deserialize(bytes);
            return(memberAuthenticationResultView);
        }
        // Token: 0x060010EF RID: 4335 RVA: 0x0001915C File Offset: 0x0001735C
        public static void Serialize(Stream stream, UberstrikeMemberView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                if (instance.PlayerCardView != null)
                {
                    PlayerCardViewProxy.Serialize(memoryStream, instance.PlayerCardView);
                }
                else
                {
                    num |= 1;
                }
                if (instance.PlayerStatisticsView != null)
                {
                    PlayerStatisticsViewProxy.Serialize(memoryStream, instance.PlayerStatisticsView);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
        // Token: 0x060010F0 RID: 4336 RVA: 0x000191E4 File Offset: 0x000173E4
        public static UberstrikeMemberView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            UberstrikeMemberView uberstrikeMemberView = new UberstrikeMemberView();

            if ((num & 1) != 0)
            {
                uberstrikeMemberView.PlayerCardView = PlayerCardViewProxy.Deserialize(bytes);
            }
            if ((num & 2) != 0)
            {
                uberstrikeMemberView.PlayerStatisticsView = PlayerStatisticsViewProxy.Deserialize(bytes);
            }
            return(uberstrikeMemberView);
        }
Пример #4
0
        // Token: 0x06001105 RID: 4357 RVA: 0x0001A5BC File Offset: 0x000187BC
        public static void Serialize(Stream stream, MemberAuthenticationResultView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                if (instance.AuthToken != null)
                {
                    StringProxy.Serialize(memoryStream, instance.AuthToken);
                }
                else
                {
                    num |= 1;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsAccountComplete);
                if (instance.LuckyDraw != null)
                {
                    LuckyDrawUnityViewProxy.Serialize(memoryStream, instance.LuckyDraw);
                }
                else
                {
                    num |= 2;
                }
                EnumProxy <MemberAuthenticationResult> .Serialize(memoryStream, instance.MemberAuthenticationResult);

                if (instance.MemberView != null)
                {
                    MemberViewProxy.Serialize(memoryStream, instance.MemberView);
                }
                else
                {
                    num |= 4;
                }
                if (instance.PlayerStatisticsView != null)
                {
                    PlayerStatisticsViewProxy.Serialize(memoryStream, instance.PlayerStatisticsView);
                }
                else
                {
                    num |= 8;
                }
                DateTimeProxy.Serialize(memoryStream, instance.ServerTime);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }