// Token: 0x060010CC RID: 4300 RVA: 0x0001744C File Offset: 0x0001564C
        public static GameRoomData Deserialize(Stream bytes)
        {
            int          num          = Int32Proxy.Deserialize(bytes);
            GameRoomData gameRoomData = new GameRoomData();

            gameRoomData.ConnectedPlayers = Int32Proxy.Deserialize(bytes);
            gameRoomData.GameFlags        = Int32Proxy.Deserialize(bytes);
            gameRoomData.GameMode         = EnumProxy <GameModeType> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                gameRoomData.Guid = StringProxy.Deserialize(bytes);
            }
            gameRoomData.IsPasswordProtected = BooleanProxy.Deserialize(bytes);
            gameRoomData.IsPermanentGame     = BooleanProxy.Deserialize(bytes);
            gameRoomData.KillLimit           = Int32Proxy.Deserialize(bytes);
            gameRoomData.LevelMax            = ByteProxy.Deserialize(bytes);
            gameRoomData.LevelMin            = ByteProxy.Deserialize(bytes);
            gameRoomData.MapID = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                gameRoomData.Name = StringProxy.Deserialize(bytes);
            }
            gameRoomData.Number      = Int32Proxy.Deserialize(bytes);
            gameRoomData.PlayerLimit = Int32Proxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                gameRoomData.Server = ConnectionAddressProxy.Deserialize(bytes);
            }
            gameRoomData.TimeLimit = Int32Proxy.Deserialize(bytes);
            return(gameRoomData);
        }
        // Token: 0x060010C8 RID: 4296 RVA: 0x000171EC File Offset: 0x000153EC
        public static CommActorInfo Deserialize(Stream bytes)
        {
            int           num           = Int32Proxy.Deserialize(bytes);
            CommActorInfo commActorInfo = new CommActorInfo();

            commActorInfo.AccessLevel = EnumProxy <MemberAccessLevel> .Deserialize(bytes);

            commActorInfo.Channel = EnumProxy <ChannelType> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                commActorInfo.ClanTag = StringProxy.Deserialize(bytes);
            }
            commActorInfo.Cmid = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                commActorInfo.CurrentRoom = GameRoomProxy.Deserialize(bytes);
            }
            commActorInfo.ModerationFlag = ByteProxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                commActorInfo.ModInformation = StringProxy.Deserialize(bytes);
            }
            if ((num & 8) != 0)
            {
                commActorInfo.PlayerName = StringProxy.Deserialize(bytes);
            }
            return(commActorInfo);
        }
        // Token: 0x06001076 RID: 4214 RVA: 0x00014F70 File Offset: 0x00013170
        public static PublicProfileView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            PublicProfileView publicProfileView = new PublicProfileView();

            publicProfileView.AccessLevel = EnumProxy <MemberAccessLevel> .Deserialize(bytes);

            publicProfileView.Cmid = Int32Proxy.Deserialize(bytes);
            publicProfileView.EmailAddressStatus = EnumProxy <EmailAddressStatus> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                publicProfileView.FacebookId = StringProxy.Deserialize(bytes);
            }
            if ((num & 2) != 0)
            {
                publicProfileView.GroupTag = StringProxy.Deserialize(bytes);
            }
            publicProfileView.IsChatDisabled = BooleanProxy.Deserialize(bytes);
            publicProfileView.LastLoginDate  = DateTimeProxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                publicProfileView.Name = StringProxy.Deserialize(bytes);
            }
            return(publicProfileView);
        }
        // Token: 0x06001060 RID: 4192 RVA: 0x00014234 File Offset: 0x00012434
        public static MemberSessionDataView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            MemberSessionDataView memberSessionDataView = new MemberSessionDataView();

            memberSessionDataView.AccessLevel = EnumProxy <MemberAccessLevel> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                memberSessionDataView.AuthToken = StringProxy.Deserialize(bytes);
            }
            memberSessionDataView.Channel = EnumProxy <ChannelType> .Deserialize(bytes);

            if ((num & 2) != 0)
            {
                memberSessionDataView.ClanTag = StringProxy.Deserialize(bytes);
            }
            memberSessionDataView.Cmid      = Int32Proxy.Deserialize(bytes);
            memberSessionDataView.IsBanned  = BooleanProxy.Deserialize(bytes);
            memberSessionDataView.Level     = Int32Proxy.Deserialize(bytes);
            memberSessionDataView.LoginDate = DateTimeProxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                memberSessionDataView.Name = StringProxy.Deserialize(bytes);
            }
            memberSessionDataView.XP = Int32Proxy.Deserialize(bytes);
            return(memberSessionDataView);
        }
示例#5
0
        // Token: 0x0600105A RID: 4186 RVA: 0x00013E44 File Offset: 0x00012044
        public static LuckyDrawUnityView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            LuckyDrawUnityView luckyDrawUnityView = new LuckyDrawUnityView();

            luckyDrawUnityView.Category = EnumProxy <BundleCategoryType> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                luckyDrawUnityView.Description = StringProxy.Deserialize(bytes);
            }
            if ((num & 2) != 0)
            {
                luckyDrawUnityView.IconUrl = StringProxy.Deserialize(bytes);
            }
            luckyDrawUnityView.Id = Int32Proxy.Deserialize(bytes);
            luckyDrawUnityView.IsAvailableInShop = BooleanProxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                luckyDrawUnityView.LuckyDrawSets = ListProxy <LuckyDrawSetUnityView> .Deserialize(bytes, new ListProxy <LuckyDrawSetUnityView> .Deserializer <LuckyDrawSetUnityView>(LuckyDrawSetUnityViewProxy.Deserialize));
            }
            if ((num & 8) != 0)
            {
                luckyDrawUnityView.Name = StringProxy.Deserialize(bytes);
            }
            luckyDrawUnityView.Price = Int32Proxy.Deserialize(bytes);
            luckyDrawUnityView.UberStrikeCurrencyType = EnumProxy <UberStrikeCurrencyType> .Deserialize(bytes);

            return(luckyDrawUnityView);
        }
示例#6
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);
        }
示例#7
0
        // Token: 0x0600103A RID: 4154 RVA: 0x000127DC File Offset: 0x000109DC
        public static BundleView Deserialize(Stream bytes)
        {
            int        num        = Int32Proxy.Deserialize(bytes);
            BundleView bundleView = new BundleView();

            if ((num & 1) != 0)
            {
                bundleView.AndroidStoreUniqueId = StringProxy.Deserialize(bytes);
            }
            bundleView.ApplicationId = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                bundleView.Availability = ListProxy <ChannelType> .Deserialize(bytes, new ListProxy <ChannelType> .Deserializer <ChannelType>(EnumProxy <ChannelType> .Deserialize));
            }
            if ((num & 4) != 0)
            {
                bundleView.BundleItemViews = ListProxy <BundleItemView> .Deserialize(bytes, new ListProxy <BundleItemView> .Deserializer <BundleItemView>(BundleItemViewProxy.Deserialize));
            }
            bundleView.Category = EnumProxy <BundleCategoryType> .Deserialize(bytes);

            bundleView.Credits = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                bundleView.Description = StringProxy.Deserialize(bytes);
            }
            if ((num & 16) != 0)
            {
                bundleView.IconUrl = StringProxy.Deserialize(bytes);
            }
            bundleView.Id = Int32Proxy.Deserialize(bytes);
            if ((num & 32) != 0)
            {
                bundleView.ImageUrl = StringProxy.Deserialize(bytes);
            }
            if ((num & 64) != 0)
            {
                bundleView.IosAppStoreUniqueId = StringProxy.Deserialize(bytes);
            }
            bundleView.IsDefault  = BooleanProxy.Deserialize(bytes);
            bundleView.IsOnSale   = BooleanProxy.Deserialize(bytes);
            bundleView.IsPromoted = BooleanProxy.Deserialize(bytes);
            if ((num & 128) != 0)
            {
                bundleView.MacAppStoreUniqueId = StringProxy.Deserialize(bytes);
            }
            if ((num & 256) != 0)
            {
                bundleView.Name = StringProxy.Deserialize(bytes);
            }
            bundleView.Points = Int32Proxy.Deserialize(bytes);
            if ((num & 512) != 0)
            {
                bundleView.PromotionTag = StringProxy.Deserialize(bytes);
            }
            bundleView.USDPrice      = DecimalProxy.Deserialize(bytes);
            bundleView.USDPromoPrice = DecimalProxy.Deserialize(bytes);
            return(bundleView);
        }
 // Token: 0x06001038 RID: 4152 RVA: 0x00012564 File Offset: 0x00010764
 public static BundleItemView Deserialize(Stream bytes)
 {
     return(new BundleItemView
     {
         Amount = Int32Proxy.Deserialize(bytes),
         BundleId = Int32Proxy.Deserialize(bytes),
         Duration = EnumProxy <BuyingDurationType> .Deserialize(bytes),
         ItemId = Int32Proxy.Deserialize(bytes)
     });
 }
        // Token: 0x060010C2 RID: 4290 RVA: 0x00016D94 File Offset: 0x00014F94
        public static GameActorInfo Deserialize(Stream bytes)
        {
            int           num           = Int32Proxy.Deserialize(bytes);
            GameActorInfo gameActorInfo = new GameActorInfo();

            gameActorInfo.AccessLevel = EnumProxy <MemberAccessLevel> .Deserialize(bytes);

            gameActorInfo.ArmorPointCapacity = ByteProxy.Deserialize(bytes);
            gameActorInfo.ArmorPoints        = ByteProxy.Deserialize(bytes);
            gameActorInfo.Channel            = EnumProxy <ChannelType> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                gameActorInfo.ClanTag = StringProxy.Deserialize(bytes);
            }
            gameActorInfo.Cmid = Int32Proxy.Deserialize(bytes);
            gameActorInfo.CurrentFiringMode = EnumProxy <FireMode> .Deserialize(bytes);

            gameActorInfo.CurrentWeaponSlot = ByteProxy.Deserialize(bytes);
            gameActorInfo.Deaths            = Int16Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                gameActorInfo.FunctionalItems = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize));
            }
            if ((num & 4) != 0)
            {
                gameActorInfo.Gear = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize));
            }
            gameActorInfo.Health   = Int16Proxy.Deserialize(bytes);
            gameActorInfo.Kills    = Int16Proxy.Deserialize(bytes);
            gameActorInfo.Level    = Int32Proxy.Deserialize(bytes);
            gameActorInfo.Ping     = UInt16Proxy.Deserialize(bytes);
            gameActorInfo.PlayerId = ByteProxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                gameActorInfo.PlayerName = StringProxy.Deserialize(bytes);
            }
            gameActorInfo.PlayerState = EnumProxy <PlayerStates> .Deserialize(bytes);

            if ((num & 16) != 0)
            {
                gameActorInfo.QuickItems = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize));
            }
            gameActorInfo.Rank      = ByteProxy.Deserialize(bytes);
            gameActorInfo.SkinColor = ColorProxy.Deserialize(bytes);
            gameActorInfo.StepSound = EnumProxy <SurfaceType> .Deserialize(bytes);

            gameActorInfo.TeamID = EnumProxy <TeamID> .Deserialize(bytes);

            if ((num & 32) != 0)
            {
                gameActorInfo.Weapons = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize));
            }
            return(gameActorInfo);
        }
 // Token: 0x060010F4 RID: 4340 RVA: 0x00019344 File Offset: 0x00017544
 public static ItemPrice Deserialize(Stream bytes)
 {
     return(new ItemPrice
     {
         Amount = Int32Proxy.Deserialize(bytes),
         Currency = EnumProxy <UberStrikeCurrencyType> .Deserialize(bytes),
         Discount = Int32Proxy.Deserialize(bytes),
         Duration = EnumProxy <BuyingDurationType> .Deserialize(bytes),
         PackType = EnumProxy <PackType> .Deserialize(bytes),
         Price = Int32Proxy.Deserialize(bytes)
     });
 }
示例#11
0
 // Token: 0x06001072 RID: 4210 RVA: 0x00014CA4 File Offset: 0x00012EA4
 public static PointDepositView Deserialize(Stream bytes)
 {
     return(new PointDepositView
     {
         Cmid = Int32Proxy.Deserialize(bytes),
         DepositDate = DateTimeProxy.Deserialize(bytes),
         DepositType = EnumProxy <PointsDepositType> .Deserialize(bytes),
         IsAdminAction = BooleanProxy.Deserialize(bytes),
         PointDepositId = Int32Proxy.Deserialize(bytes),
         Points = Int32Proxy.Deserialize(bytes)
     });
 }
示例#12
0
        // Token: 0x06001048 RID: 4168 RVA: 0x00012FD0 File Offset: 0x000111D0
        public static ClanView Deserialize(Stream bytes)
        {
            int      num      = Int32Proxy.Deserialize(bytes);
            ClanView clanView = new ClanView();

            if ((num & 1) != 0)
            {
                clanView.Address = StringProxy.Deserialize(bytes);
            }
            clanView.ApplicationId = Int32Proxy.Deserialize(bytes);
            clanView.ColorStyle    = EnumProxy <GroupColor> .Deserialize(bytes);

            if ((num & 2) != 0)
            {
                clanView.Description = StringProxy.Deserialize(bytes);
            }
            clanView.FontStyle = EnumProxy <GroupFontStyle> .Deserialize(bytes);

            clanView.FoundingDate = DateTimeProxy.Deserialize(bytes);
            clanView.GroupId      = Int32Proxy.Deserialize(bytes);
            clanView.LastUpdated  = DateTimeProxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                clanView.Members = ListProxy <ClanMemberView> .Deserialize(bytes, new ListProxy <ClanMemberView> .Deserializer <ClanMemberView>(ClanMemberViewProxy.Deserialize));
            }
            clanView.MembersCount = Int32Proxy.Deserialize(bytes);
            clanView.MembersLimit = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                clanView.Motto = StringProxy.Deserialize(bytes);
            }
            if ((num & 16) != 0)
            {
                clanView.Name = StringProxy.Deserialize(bytes);
            }
            clanView.OwnerCmid = Int32Proxy.Deserialize(bytes);
            if ((num & 32) != 0)
            {
                clanView.OwnerName = StringProxy.Deserialize(bytes);
            }
            if ((num & 64) != 0)
            {
                clanView.Picture = StringProxy.Deserialize(bytes);
            }
            if ((num & 128) != 0)
            {
                clanView.Tag = StringProxy.Deserialize(bytes);
            }
            clanView.Type = EnumProxy <GroupType> .Deserialize(bytes);

            return(clanView);
        }
        // Token: 0x06001112 RID: 4370 RVA: 0x0001ABBC File Offset: 0x00018DBC
        public static RegisterClientApplicationViewModel Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            RegisterClientApplicationViewModel registerClientApplicationViewModel = new RegisterClientApplicationViewModel();

            if ((num & 1) != 0)
            {
                registerClientApplicationViewModel.ItemsAttributed = ListProxy <int> .Deserialize(bytes, new ListProxy <int> .Deserializer <int>(Int32Proxy.Deserialize));
            }
            registerClientApplicationViewModel.Result = EnumProxy <ApplicationRegistrationResult> .Deserialize(bytes);

            return(registerClientApplicationViewModel);
        }
        // Token: 0x06001108 RID: 4360 RVA: 0x0001A7AC File Offset: 0x000189AC
        public static MemberAuthenticationViewModel Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            MemberAuthenticationViewModel memberAuthenticationViewModel = new MemberAuthenticationViewModel();

            memberAuthenticationViewModel.MemberAuthenticationResult = EnumProxy <MemberAuthenticationResult> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                memberAuthenticationViewModel.MemberView = MemberViewProxy.Deserialize(bytes);
            }
            return(memberAuthenticationViewModel);
        }
        // Token: 0x0600103E RID: 4158 RVA: 0x00012AC0 File Offset: 0x00010CC0
        public static ClaimFacebookGiftView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            ClaimFacebookGiftView claimFacebookGiftView = new ClaimFacebookGiftView();

            claimFacebookGiftView.ClaimResult = EnumProxy <ClaimFacebookGiftResult> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                claimFacebookGiftView.ItemId = new int?(Int32Proxy.Deserialize(bytes));
            }
            return(claimFacebookGiftView);
        }
 // Token: 0x06001056 RID: 4182 RVA: 0x00013B4C File Offset: 0x00011D4C
 public static ItemTransactionView Deserialize(Stream bytes)
 {
     return new ItemTransactionView
     {
         Cmid = Int32Proxy.Deserialize(bytes),
         Credits = Int32Proxy.Deserialize(bytes),
         Duration = EnumProxy<BuyingDurationType>.Deserialize(bytes),
         IsAdminAction = BooleanProxy.Deserialize(bytes),
         ItemId = Int32Proxy.Deserialize(bytes),
         Points = Int32Proxy.Deserialize(bytes),
         WithdrawalDate = DateTimeProxy.Deserialize(bytes),
         WithdrawalId = Int32Proxy.Deserialize(bytes)
     };
 }
 // Token: 0x060010DC RID: 4316 RVA: 0x0001818C File Offset: 0x0001638C
 public static ItemQuickUseConfigView Deserialize(Stream bytes)
 {
     return(new ItemQuickUseConfigView
     {
         BehaviourType = EnumProxy <QuickItemLogic> .Deserialize(bytes),
         CoolDownTime = Int32Proxy.Deserialize(bytes),
         ItemId = Int32Proxy.Deserialize(bytes),
         LevelRequired = Int32Proxy.Deserialize(bytes),
         UsesPerGame = Int32Proxy.Deserialize(bytes),
         UsesPerLife = Int32Proxy.Deserialize(bytes),
         UsesPerRound = Int32Proxy.Deserialize(bytes),
         WarmUpTime = Int32Proxy.Deserialize(bytes)
     });
 }
示例#18
0
        // Token: 0x0600105C RID: 4188 RVA: 0x00013F84 File Offset: 0x00012184
        public static MemberPositionUpdateView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            MemberPositionUpdateView memberPositionUpdateView = new MemberPositionUpdateView();

            if ((num & 1) != 0)
            {
                memberPositionUpdateView.AuthToken = StringProxy.Deserialize(bytes);
            }
            memberPositionUpdateView.GroupId    = Int32Proxy.Deserialize(bytes);
            memberPositionUpdateView.MemberCmid = Int32Proxy.Deserialize(bytes);
            memberPositionUpdateView.Position   = EnumProxy <GroupPosition> .Deserialize(bytes);

            return(memberPositionUpdateView);
        }
        // Token: 0x060010BC RID: 4284 RVA: 0x0001681C File Offset: 0x00014A1C
        public static ServerConnectionView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            ServerConnectionView serverConnectionView = new ServerConnectionView();

            serverConnectionView.AccessLevel = EnumProxy <MemberAccessLevel> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                serverConnectionView.ApiVersion = StringProxy.Deserialize(bytes);
            }
            serverConnectionView.Channel = EnumProxy <ChannelType> .Deserialize(bytes);

            serverConnectionView.Cmid = Int32Proxy.Deserialize(bytes);
            return(serverConnectionView);
        }
示例#20
0
        // Token: 0x060010B8 RID: 4280 RVA: 0x00016550 File Offset: 0x00014750
        public static MatchStats Deserialize(Stream bytes)
        {
            int        num        = Int32Proxy.Deserialize(bytes);
            MatchStats matchStats = new MatchStats();

            matchStats.GameModeId = EnumProxy <GameModeType> .Deserialize(bytes);

            matchStats.MapId = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                matchStats.Players = ListProxy <PlayerMatchStats> .Deserialize(bytes, new ListProxy <PlayerMatchStats> .Deserializer <PlayerMatchStats>(PlayerMatchStatsProxy.Deserialize));
            }
            matchStats.PlayersLimit = Int32Proxy.Deserialize(bytes);
            matchStats.TimeLimit    = Int32Proxy.Deserialize(bytes);
            return(matchStats);
        }
        // Token: 0x06001042 RID: 4162 RVA: 0x00012C48 File Offset: 0x00010E48
        public static ClanMemberView Deserialize(Stream bytes)
        {
            int            num            = Int32Proxy.Deserialize(bytes);
            ClanMemberView clanMemberView = new ClanMemberView();

            clanMemberView.Cmid        = Int32Proxy.Deserialize(bytes);
            clanMemberView.JoiningDate = DateTimeProxy.Deserialize(bytes);
            clanMemberView.Lastlogin   = DateTimeProxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                clanMemberView.Name = StringProxy.Deserialize(bytes);
            }
            clanMemberView.Position = EnumProxy <GroupPosition> .Deserialize(bytes);

            return(clanMemberView);
        }
示例#22
0
        // Token: 0x060010FC RID: 4348 RVA: 0x00019A30 File Offset: 0x00017C30
        public static UberStrikeItemQuickView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            UberStrikeItemQuickView uberStrikeItemQuickView = new UberStrikeItemQuickView();

            uberStrikeItemQuickView.BehaviourType = EnumProxy <QuickItemLogic> .Deserialize(bytes);

            uberStrikeItemQuickView.CoolDownTime = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                uberStrikeItemQuickView.CustomProperties = DictionaryProxy <string, string> .Deserialize(bytes, new DictionaryProxy <string, string> .Deserializer <string>(StringProxy.Deserialize), new DictionaryProxy <string, string> .Deserializer <string>(StringProxy.Deserialize));
            }
            if ((num & 2) != 0)
            {
                uberStrikeItemQuickView.Description = StringProxy.Deserialize(bytes);
            }
            uberStrikeItemQuickView.ID           = Int32Proxy.Deserialize(bytes);
            uberStrikeItemQuickView.IsConsumable = BooleanProxy.Deserialize(bytes);
            uberStrikeItemQuickView.ItemClass    = EnumProxy <UberstrikeItemClass> .Deserialize(bytes);

            if ((num & 4) != 0)
            {
                uberStrikeItemQuickView.ItemProperties = DictionaryProxy <ItemPropertyType, int> .Deserialize(bytes, new DictionaryProxy <ItemPropertyType, int> .Deserializer <ItemPropertyType>(EnumProxy <ItemPropertyType> .Deserialize), new DictionaryProxy <ItemPropertyType, int> .Deserializer <int>(Int32Proxy.Deserialize));
            }
            uberStrikeItemQuickView.LevelLock        = Int32Proxy.Deserialize(bytes);
            uberStrikeItemQuickView.MaxDurationDays  = Int32Proxy.Deserialize(bytes);
            uberStrikeItemQuickView.MaxOwnableAmount = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                uberStrikeItemQuickView.Name = StringProxy.Deserialize(bytes);
            }
            if ((num & 16) != 0)
            {
                uberStrikeItemQuickView.PrefabName = StringProxy.Deserialize(bytes);
            }
            if ((num & 32) != 0)
            {
                uberStrikeItemQuickView.Prices = ListProxy <ItemPrice> .Deserialize(bytes, new ListProxy <ItemPrice> .Deserializer <ItemPrice>(ItemPriceProxy.Deserialize));
            }
            uberStrikeItemQuickView.ShopHighlightType = EnumProxy <ItemShopHighlightType> .Deserialize(bytes);

            uberStrikeItemQuickView.UsesPerGame  = Int32Proxy.Deserialize(bytes);
            uberStrikeItemQuickView.UsesPerLife  = Int32Proxy.Deserialize(bytes);
            uberStrikeItemQuickView.UsesPerRound = Int32Proxy.Deserialize(bytes);
            uberStrikeItemQuickView.WarmUpTime   = Int32Proxy.Deserialize(bytes);
            return(uberStrikeItemQuickView);
        }
示例#23
0
        // Token: 0x060010AE RID: 4270 RVA: 0x000158F4 File Offset: 0x00013AF4
        public static CommActorInfoDelta Deserialize(Stream bytes)
        {
            int  num = Int32Proxy.Deserialize(bytes);
            byte id  = ByteProxy.Deserialize(bytes);
            CommActorInfoDelta commActorInfoDelta = new CommActorInfoDelta();

            commActorInfoDelta.Id = id;
            if (num != 0)
            {
                if ((num & 1) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.AccessLevel] = EnumProxy <MemberAccessLevel> .Deserialize(bytes);
                }
                if ((num & 2) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.Channel] = EnumProxy <ChannelType> .Deserialize(bytes);
                }
                if ((num & 4) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.ClanTag] = StringProxy.Deserialize(bytes);
                }
                if ((num & 8) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.Cmid] = Int32Proxy.Deserialize(bytes);
                }
                if ((num & 16) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.CurrentRoom] = GameRoomProxy.Deserialize(bytes);
                }
                if ((num & 32) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.ModerationFlag] = ByteProxy.Deserialize(bytes);
                }
                if ((num & 64) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.ModInformation] = StringProxy.Deserialize(bytes);
                }
                if ((num & 128) != 0)
                {
                    commActorInfoDelta.Changes[CommActorInfoDelta.Keys.PlayerName] = StringProxy.Deserialize(bytes);
                }
            }
            return(commActorInfoDelta);
        }
示例#24
0
        // Token: 0x060010E0 RID: 4320 RVA: 0x000184F0 File Offset: 0x000166F0
        public static LoadoutView Deserialize(Stream bytes)
        {
            int         num         = Int32Proxy.Deserialize(bytes);
            LoadoutView loadoutView = new LoadoutView();

            loadoutView.Backpack        = Int32Proxy.Deserialize(bytes);
            loadoutView.Boots           = Int32Proxy.Deserialize(bytes);
            loadoutView.Cmid            = Int32Proxy.Deserialize(bytes);
            loadoutView.Face            = Int32Proxy.Deserialize(bytes);
            loadoutView.FunctionalItem1 = Int32Proxy.Deserialize(bytes);
            loadoutView.FunctionalItem2 = Int32Proxy.Deserialize(bytes);
            loadoutView.FunctionalItem3 = Int32Proxy.Deserialize(bytes);
            loadoutView.Gloves          = Int32Proxy.Deserialize(bytes);
            loadoutView.Head            = Int32Proxy.Deserialize(bytes);
            loadoutView.LoadoutId       = Int32Proxy.Deserialize(bytes);
            loadoutView.LowerBody       = Int32Proxy.Deserialize(bytes);
            loadoutView.MeleeWeapon     = Int32Proxy.Deserialize(bytes);
            loadoutView.QuickItem1      = Int32Proxy.Deserialize(bytes);
            loadoutView.QuickItem2      = Int32Proxy.Deserialize(bytes);
            loadoutView.QuickItem3      = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                loadoutView.SkinColor = StringProxy.Deserialize(bytes);
            }
            loadoutView.Type = EnumProxy <AvatarType> .Deserialize(bytes);

            loadoutView.UpperBody   = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon1     = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon1Mod1 = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon1Mod2 = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon1Mod3 = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon2     = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon2Mod1 = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon2Mod2 = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon2Mod3 = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon3     = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon3Mod1 = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon3Mod2 = Int32Proxy.Deserialize(bytes);
            loadoutView.Weapon3Mod3 = Int32Proxy.Deserialize(bytes);
            loadoutView.Webbing     = Int32Proxy.Deserialize(bytes);
            return(loadoutView);
        }
示例#25
0
        // Token: 0x060010E2 RID: 4322 RVA: 0x00018758 File Offset: 0x00016958
        public static MatchView Deserialize(Stream bytes)
        {
            int       num       = Int32Proxy.Deserialize(bytes);
            MatchView matchView = new MatchView();

            matchView.GameModeId = EnumProxy <GameModeType> .Deserialize(bytes);

            matchView.MapId = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                matchView.PlayersCompleted = ListProxy <PlayerStatisticsView> .Deserialize(bytes, new ListProxy <PlayerStatisticsView> .Deserializer <PlayerStatisticsView>(PlayerStatisticsViewProxy.Deserialize));
            }
            matchView.PlayersLimit = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                matchView.PlayersNonCompleted = ListProxy <PlayerStatisticsView> .Deserialize(bytes, new ListProxy <PlayerStatisticsView> .Deserializer <PlayerStatisticsView>(PlayerStatisticsViewProxy.Deserialize));
            }
            matchView.TimeLimit = Int32Proxy.Deserialize(bytes);
            return(matchView);
        }
示例#26
0
        // Token: 0x06001114 RID: 4372 RVA: 0x0001ADB4 File Offset: 0x00018FB4
        public static UberStrikeItemGearView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            UberStrikeItemGearView uberStrikeItemGearView = new UberStrikeItemGearView();

            uberStrikeItemGearView.ArmorPoints = Int32Proxy.Deserialize(bytes);
            uberStrikeItemGearView.ArmorWeight = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                uberStrikeItemGearView.CustomProperties = DictionaryProxy <string, string> .Deserialize(bytes, new DictionaryProxy <string, string> .Deserializer <string>(StringProxy.Deserialize), new DictionaryProxy <string, string> .Deserializer <string>(StringProxy.Deserialize));
            }
            if ((num & 2) != 0)
            {
                uberStrikeItemGearView.Description = StringProxy.Deserialize(bytes);
            }
            uberStrikeItemGearView.ID           = Int32Proxy.Deserialize(bytes);
            uberStrikeItemGearView.IsConsumable = BooleanProxy.Deserialize(bytes);
            uberStrikeItemGearView.ItemClass    = EnumProxy <UberstrikeItemClass> .Deserialize(bytes);

            if ((num & 4) != 0)
            {
                uberStrikeItemGearView.ItemProperties = DictionaryProxy <ItemPropertyType, int> .Deserialize(bytes, new DictionaryProxy <ItemPropertyType, int> .Deserializer <ItemPropertyType>(EnumProxy <ItemPropertyType> .Deserialize), new DictionaryProxy <ItemPropertyType, int> .Deserializer <int>(Int32Proxy.Deserialize));
            }
            uberStrikeItemGearView.LevelLock       = Int32Proxy.Deserialize(bytes);
            uberStrikeItemGearView.MaxDurationDays = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                uberStrikeItemGearView.Name = StringProxy.Deserialize(bytes);
            }
            if ((num & 16) != 0)
            {
                uberStrikeItemGearView.PrefabName = StringProxy.Deserialize(bytes);
            }
            if ((num & 32) != 0)
            {
                uberStrikeItemGearView.Prices = ListProxy <ItemPrice> .Deserialize(bytes, new ListProxy <ItemPrice> .Deserializer <ItemPrice>(ItemPriceProxy.Deserialize));
            }
            uberStrikeItemGearView.ShopHighlightType = EnumProxy <ItemShopHighlightType> .Deserialize(bytes);

            return(uberStrikeItemGearView);
        }
示例#27
0
        // Token: 0x060010D0 RID: 4304 RVA: 0x000179FC File Offset: 0x00015BFC
        public static StatsSummary Deserialize(Stream bytes)
        {
            int          num          = Int32Proxy.Deserialize(bytes);
            StatsSummary statsSummary = new StatsSummary();

            if ((num & 1) != 0)
            {
                statsSummary.Achievements = DictionaryProxy <byte, ushort> .Deserialize(bytes, new DictionaryProxy <byte, ushort> .Deserializer <byte>(ByteProxy.Deserialize), new DictionaryProxy <byte, ushort> .Deserializer <ushort>(UInt16Proxy.Deserialize));
            }
            statsSummary.Cmid   = Int32Proxy.Deserialize(bytes);
            statsSummary.Deaths = Int32Proxy.Deserialize(bytes);
            statsSummary.Kills  = Int32Proxy.Deserialize(bytes);
            statsSummary.Level  = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                statsSummary.Name = StringProxy.Deserialize(bytes);
            }
            statsSummary.Team = EnumProxy <TeamID> .Deserialize(bytes);

            return(statsSummary);
        }
示例#28
0
        // Token: 0x0600104C RID: 4172 RVA: 0x000132D8 File Offset: 0x000114D8
        public static ContactRequestView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            ContactRequestView contactRequestView = new ContactRequestView();

            contactRequestView.InitiatorCmid = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                contactRequestView.InitiatorMessage = StringProxy.Deserialize(bytes);
            }
            if ((num & 2) != 0)
            {
                contactRequestView.InitiatorName = StringProxy.Deserialize(bytes);
            }
            contactRequestView.ReceiverCmid = Int32Proxy.Deserialize(bytes);
            contactRequestView.RequestId    = Int32Proxy.Deserialize(bytes);
            contactRequestView.SentDate     = DateTimeProxy.Deserialize(bytes);
            contactRequestView.Status       = EnumProxy <ContactRequestStatus> .Deserialize(bytes);

            return(contactRequestView);
        }
示例#29
0
        // Token: 0x06001068 RID: 4200 RVA: 0x00014770 File Offset: 0x00012970
        public static MysteryBoxUnityView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            MysteryBoxUnityView mysteryBoxUnityView = new MysteryBoxUnityView();

            mysteryBoxUnityView.Category = EnumProxy <BundleCategoryType> .Deserialize(bytes);

            mysteryBoxUnityView.CreditsAttributed       = Int32Proxy.Deserialize(bytes);
            mysteryBoxUnityView.CreditsAttributedWeight = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                mysteryBoxUnityView.Description = StringProxy.Deserialize(bytes);
            }
            mysteryBoxUnityView.ExposeItemsToPlayers = BooleanProxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                mysteryBoxUnityView.IconUrl = StringProxy.Deserialize(bytes);
            }
            mysteryBoxUnityView.Id = Int32Proxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                mysteryBoxUnityView.ImageUrl = StringProxy.Deserialize(bytes);
            }
            mysteryBoxUnityView.IsAvailableInShop = BooleanProxy.Deserialize(bytes);
            mysteryBoxUnityView.ItemsAttributed   = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                mysteryBoxUnityView.MysteryBoxItems = ListProxy <BundleItemView> .Deserialize(bytes, new ListProxy <BundleItemView> .Deserializer <BundleItemView>(BundleItemViewProxy.Deserialize));
            }
            if ((num & 16) != 0)
            {
                mysteryBoxUnityView.Name = StringProxy.Deserialize(bytes);
            }
            mysteryBoxUnityView.PointsAttributed       = Int32Proxy.Deserialize(bytes);
            mysteryBoxUnityView.PointsAttributedWeight = Int32Proxy.Deserialize(bytes);
            mysteryBoxUnityView.Price = Int32Proxy.Deserialize(bytes);
            mysteryBoxUnityView.UberStrikeCurrencyType = EnumProxy <UberStrikeCurrencyType> .Deserialize(bytes);

            return(mysteryBoxUnityView);
        }
        // Token: 0x06001032 RID: 4146 RVA: 0x0001205C File Offset: 0x0001025C
        public static ApplicationView Deserialize(Stream bytes)
        {
            int             num             = Int32Proxy.Deserialize(bytes);
            ApplicationView applicationView = new ApplicationView();

            applicationView.ApplicationVersionId = Int32Proxy.Deserialize(bytes);
            applicationView.Build = EnumProxy <BuildType> .Deserialize(bytes);

            applicationView.Channel = EnumProxy <ChannelType> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                applicationView.ExpirationDate = new DateTime?(DateTimeProxy.Deserialize(bytes));
            }
            if ((num & 2) != 0)
            {
                applicationView.FileName = StringProxy.Deserialize(bytes);
            }
            applicationView.IsCurrent     = BooleanProxy.Deserialize(bytes);
            applicationView.PhotonGroupId = Int32Proxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                applicationView.PhotonGroupName = StringProxy.Deserialize(bytes);
            }
            applicationView.ReleaseDate   = DateTimeProxy.Deserialize(bytes);
            applicationView.RemainingTime = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                applicationView.Servers = ListProxy <PhotonView> .Deserialize(bytes, new ListProxy <PhotonView> .Deserializer <PhotonView>(PhotonViewProxy.Deserialize));
            }
            if ((num & 16) != 0)
            {
                applicationView.SupportUrl = StringProxy.Deserialize(bytes);
            }
            if ((num & 32) != 0)
            {
                applicationView.Version = StringProxy.Deserialize(bytes);
            }
            return(applicationView);
        }