コード例 #1
0
        // 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);
            }
        }
コード例 #2
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);
            }
        }