Example #1
0
        // Token: 0x06001071 RID: 4209 RVA: 0x00014C20 File Offset: 0x00012E20
        public static void Serialize(Stream stream, PointDepositView instance)
        {
            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                DateTimeProxy.Serialize(memoryStream, instance.DepositDate);
                EnumProxy <PointsDepositType> .Serialize(memoryStream, instance.DepositType);

                BooleanProxy.Serialize(memoryStream, instance.IsAdminAction);
                Int32Proxy.Serialize(memoryStream, instance.PointDepositId);
                Int32Proxy.Serialize(memoryStream, instance.Points);
                memoryStream.WriteTo(stream);
            }
        }
 // 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)
     };
 }
Example #3
0
        // Token: 0x06001059 RID: 4185 RVA: 0x00013D34 File Offset: 0x00011F34
        public static void Serialize(Stream stream, LuckyDrawUnityView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                EnumProxy <BundleCategoryType> .Serialize(memoryStream, instance.Category);

                if (instance.Description != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Description);
                }
                else
                {
                    num |= 1;
                }
                if (instance.IconUrl != null)
                {
                    StringProxy.Serialize(memoryStream, instance.IconUrl);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(memoryStream, instance.Id);
                BooleanProxy.Serialize(memoryStream, instance.IsAvailableInShop);
                if (instance.LuckyDrawSets != null)
                {
                    ListProxy <LuckyDrawSetUnityView> .Serialize(memoryStream, instance.LuckyDrawSets, new ListProxy <LuckyDrawSetUnityView> .Serializer <LuckyDrawSetUnityView>(LuckyDrawSetUnityViewProxy.Serialize));
                }
                else
                {
                    num |= 4;
                }
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 8;
                }
                Int32Proxy.Serialize(memoryStream, instance.Price);
                EnumProxy <UberStrikeCurrencyType> .Serialize(memoryStream, instance.UberStrikeCurrencyType);

                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
 // Token: 0x06001055 RID: 4181 RVA: 0x00013AB0 File Offset: 0x00011CB0
 public static void Serialize(Stream stream, ItemTransactionView instance)
 {
     using (MemoryStream memoryStream = new MemoryStream())
     {
         Int32Proxy.Serialize(memoryStream, instance.Cmid);
         Int32Proxy.Serialize(memoryStream, instance.Credits);
         EnumProxy<BuyingDurationType>.Serialize(memoryStream, instance.Duration);
         BooleanProxy.Serialize(memoryStream, instance.IsAdminAction);
         Int32Proxy.Serialize(memoryStream, instance.ItemId);
         Int32Proxy.Serialize(memoryStream, instance.Points);
         DateTimeProxy.Serialize(memoryStream, instance.WithdrawalDate);
         Int32Proxy.Serialize(memoryStream, instance.WithdrawalId);
         memoryStream.WriteTo(stream);
     }
 }
Example #5
0
        // Token: 0x06001103 RID: 4355 RVA: 0x0001A3C8 File Offset: 0x000185C8
        public static void Serialize(Stream stream, MapView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                if (instance.Description != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Description);
                }
                else
                {
                    num |= 1;
                }
                if (instance.DisplayName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.DisplayName);
                }
                else
                {
                    num |= 2;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsBlueBox);
                Int32Proxy.Serialize(memoryStream, instance.MapId);
                Int32Proxy.Serialize(memoryStream, instance.MaxPlayers);
                Int32Proxy.Serialize(memoryStream, instance.RecommendedItemId);
                if (instance.SceneName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.SceneName);
                }
                else
                {
                    num |= 4;
                }
                if (instance.Settings != null)
                {
                    DictionaryProxy <GameModeType, MapSettings> .Serialize(memoryStream, instance.Settings, new DictionaryProxy <GameModeType, MapSettings> .Serializer <GameModeType>(EnumProxy <GameModeType> .Serialize), new DictionaryProxy <GameModeType, MapSettings> .Serializer <MapSettings>(MapSettingsProxy.Serialize));
                }
                else
                {
                    num |= 8;
                }
                Int32Proxy.Serialize(memoryStream, instance.SupportedGameModes);
                Int32Proxy.Serialize(memoryStream, instance.SupportedItemClass);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #6
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);
        }
        // Token: 0x060010CB RID: 4299 RVA: 0x00017308 File Offset: 0x00015508
        public static void Serialize(Stream stream, GameRoomData instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.ConnectedPlayers);
                Int32Proxy.Serialize(memoryStream, instance.GameFlags);
                EnumProxy <GameModeType> .Serialize(memoryStream, instance.GameMode);

                if (instance.Guid != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Guid);
                }
                else
                {
                    num |= 1;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsPasswordProtected);
                BooleanProxy.Serialize(memoryStream, instance.IsPermanentGame);
                Int32Proxy.Serialize(memoryStream, instance.KillLimit);
                ByteProxy.Serialize(memoryStream, instance.LevelMax);
                ByteProxy.Serialize(memoryStream, instance.LevelMin);
                Int32Proxy.Serialize(memoryStream, instance.MapID);
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(memoryStream, instance.Number);
                Int32Proxy.Serialize(memoryStream, instance.PlayerLimit);
                if (instance.Server != null)
                {
                    ConnectionAddressProxy.Serialize(memoryStream, instance.Server);
                }
                else
                {
                    num |= 4;
                }
                Int32Proxy.Serialize(memoryStream, instance.TimeLimit);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #8
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);
            }
        }
Example #9
0
        // Token: 0x060010D7 RID: 4311 RVA: 0x00017EDC File Offset: 0x000160DC
        public static void Serialize(Stream stream, AuthenticateApplicationView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                if (instance.CommServer != null)
                {
                    PhotonViewProxy.Serialize(memoryStream, instance.CommServer);
                }
                else
                {
                    num |= 1;
                }
                if (instance.EncryptionInitVector != null)
                {
                    StringProxy.Serialize(memoryStream, instance.EncryptionInitVector);
                }
                else
                {
                    num |= 2;
                }
                if (instance.EncryptionPassPhrase != null)
                {
                    StringProxy.Serialize(memoryStream, instance.EncryptionPassPhrase);
                }
                else
                {
                    num |= 4;
                }
                if (instance.GameServers != null)
                {
                    ListProxy <PhotonView> .Serialize(memoryStream, instance.GameServers, new ListProxy <PhotonView> .Serializer <PhotonView>(PhotonViewProxy.Serialize));
                }
                else
                {
                    num |= 8;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsEnabled);
                BooleanProxy.Serialize(memoryStream, instance.WarnPlayer);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #10
0
        // Token: 0x06001066 RID: 4198 RVA: 0x00014578 File Offset: 0x00012778
        public static MessageThreadView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            MessageThreadView messageThreadView = new MessageThreadView();

            messageThreadView.HasNewMessages = BooleanProxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                messageThreadView.LastMessagePreview = StringProxy.Deserialize(bytes);
            }
            messageThreadView.LastUpdate   = DateTimeProxy.Deserialize(bytes);
            messageThreadView.MessageCount = Int32Proxy.Deserialize(bytes);
            messageThreadView.ThreadId     = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                messageThreadView.ThreadName = StringProxy.Deserialize(bytes);
            }
            return(messageThreadView);
        }
        // Token: 0x0600105F RID: 4191 RVA: 0x00014138 File Offset: 0x00012338
        public static void Serialize(Stream stream, MemberSessionDataView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                EnumProxy <MemberAccessLevel> .Serialize(memoryStream, instance.AccessLevel);

                if (instance.AuthToken != null)
                {
                    StringProxy.Serialize(memoryStream, instance.AuthToken);
                }
                else
                {
                    num |= 1;
                }
                EnumProxy <ChannelType> .Serialize(memoryStream, instance.Channel);

                if (instance.ClanTag != null)
                {
                    StringProxy.Serialize(memoryStream, instance.ClanTag);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                BooleanProxy.Serialize(memoryStream, instance.IsBanned);
                Int32Proxy.Serialize(memoryStream, instance.Level);
                DateTimeProxy.Serialize(memoryStream, instance.LoginDate);
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 4;
                }
                Int32Proxy.Serialize(memoryStream, instance.XP);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #12
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);
        }
        // Token: 0x06001075 RID: 4213 RVA: 0x00014E8C File Offset: 0x0001308C
        public static void Serialize(Stream stream, PublicProfileView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                EnumProxy <MemberAccessLevel> .Serialize(memoryStream, instance.AccessLevel);

                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                EnumProxy <EmailAddressStatus> .Serialize(memoryStream, instance.EmailAddressStatus);

                if (instance.FacebookId != null)
                {
                    StringProxy.Serialize(memoryStream, instance.FacebookId);
                }
                else
                {
                    num |= 1;
                }
                if (instance.GroupTag != null)
                {
                    StringProxy.Serialize(memoryStream, instance.GroupTag);
                }
                else
                {
                    num |= 2;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsChatDisabled);
                DateTimeProxy.Serialize(memoryStream, instance.LastLoginDate);
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 4;
                }
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #14
0
        // Token: 0x06001058 RID: 4184 RVA: 0x00013C9C File Offset: 0x00011E9C
        public static LuckyDrawSetUnityView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            LuckyDrawSetUnityView luckyDrawSetUnityView = new LuckyDrawSetUnityView();

            luckyDrawSetUnityView.CreditsAttributed    = Int32Proxy.Deserialize(bytes);
            luckyDrawSetUnityView.ExposeItemsToPlayers = BooleanProxy.Deserialize(bytes);
            luckyDrawSetUnityView.Id = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                luckyDrawSetUnityView.ImageUrl = StringProxy.Deserialize(bytes);
            }
            luckyDrawSetUnityView.LuckyDrawId = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                luckyDrawSetUnityView.LuckyDrawSetItems = ListProxy <BundleItemView> .Deserialize(bytes, new ListProxy <BundleItemView> .Deserializer <BundleItemView>(BundleItemViewProxy.Deserialize));
            }
            luckyDrawSetUnityView.PointsAttributed = Int32Proxy.Deserialize(bytes);
            luckyDrawSetUnityView.SetWeight        = Int32Proxy.Deserialize(bytes);
            return(luckyDrawSetUnityView);
        }
Example #15
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);
        }
        // Token: 0x06001074 RID: 4212 RVA: 0x00014DE8 File Offset: 0x00012FE8
        public static PrivateMessageView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            PrivateMessageView privateMessageView = new PrivateMessageView();

            if ((num & 1) != 0)
            {
                privateMessageView.ContentText = StringProxy.Deserialize(bytes);
            }
            privateMessageView.DateSent = DateTimeProxy.Deserialize(bytes);
            privateMessageView.FromCmid = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                privateMessageView.FromName = StringProxy.Deserialize(bytes);
            }
            privateMessageView.HasAttachment       = BooleanProxy.Deserialize(bytes);
            privateMessageView.IsDeletedByReceiver = BooleanProxy.Deserialize(bytes);
            privateMessageView.IsDeletedBySender   = BooleanProxy.Deserialize(bytes);
            privateMessageView.IsRead           = BooleanProxy.Deserialize(bytes);
            privateMessageView.PrivateMessageId = Int32Proxy.Deserialize(bytes);
            privateMessageView.ToCmid           = Int32Proxy.Deserialize(bytes);
            return(privateMessageView);
        }
        // Token: 0x060010B9 RID: 4281 RVA: 0x000165BC File Offset: 0x000147BC
        public static void Serialize(Stream stream, PlayerMatchStats instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                Int32Proxy.Serialize(memoryStream, instance.Death);
                BooleanProxy.Serialize(memoryStream, instance.HasFinishedMatch);
                BooleanProxy.Serialize(memoryStream, instance.HasWonMatch);
                Int32Proxy.Serialize(memoryStream, instance.Headshots);
                Int64Proxy.Serialize(memoryStream, instance.Hits);
                Int32Proxy.Serialize(memoryStream, instance.Kills);
                Int32Proxy.Serialize(memoryStream, instance.Nutshots);
                if (instance.PersonalRecord != null)
                {
                    PlayerPersonalRecordStatisticsViewProxy.Serialize(memoryStream, instance.PersonalRecord);
                }
                else
                {
                    num |= 1;
                }
                Int64Proxy.Serialize(memoryStream, instance.Shots);
                Int32Proxy.Serialize(memoryStream, instance.Smackdowns);
                Int32Proxy.Serialize(memoryStream, instance.TimeSpentInGame);
                if (instance.WeaponStatistics != null)
                {
                    PlayerWeaponStatisticsViewProxy.Serialize(memoryStream, instance.WeaponStatistics);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #19
0
        // Token: 0x06001050 RID: 4176 RVA: 0x00013714 File Offset: 0x00011914
        public static GroupCreationView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            GroupCreationView groupCreationView = new GroupCreationView();

            if ((num & 1) != 0)
            {
                groupCreationView.Address = StringProxy.Deserialize(bytes);
            }
            groupCreationView.ApplicationId = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                groupCreationView.AuthToken = StringProxy.Deserialize(bytes);
            }
            if ((num & 4) != 0)
            {
                groupCreationView.Description = StringProxy.Deserialize(bytes);
            }
            groupCreationView.HasPicture = BooleanProxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                groupCreationView.Locale = StringProxy.Deserialize(bytes);
            }
            if ((num & 16) != 0)
            {
                groupCreationView.Motto = StringProxy.Deserialize(bytes);
            }
            if ((num & 32) != 0)
            {
                groupCreationView.Name = StringProxy.Deserialize(bytes);
            }
            if ((num & 64) != 0)
            {
                groupCreationView.Tag = StringProxy.Deserialize(bytes);
            }
            return(groupCreationView);
        }
Example #20
0
        // Token: 0x0600104E RID: 4174 RVA: 0x000134D0 File Offset: 0x000116D0
        public static CurrencyDepositView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            CurrencyDepositView currencyDepositView = new CurrencyDepositView();

            currencyDepositView.ApplicationId = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                currencyDepositView.BundleId = new int?(Int32Proxy.Deserialize(bytes));
            }
            if ((num & 2) != 0)
            {
                currencyDepositView.BundleName = StringProxy.Deserialize(bytes);
            }
            currencyDepositView.Cash      = DecimalProxy.Deserialize(bytes);
            currencyDepositView.ChannelId = EnumProxy <ChannelType> .Deserialize(bytes);

            currencyDepositView.Cmid             = Int32Proxy.Deserialize(bytes);
            currencyDepositView.Credits          = Int32Proxy.Deserialize(bytes);
            currencyDepositView.CreditsDepositId = Int32Proxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                currencyDepositView.CurrencyLabel = StringProxy.Deserialize(bytes);
            }
            currencyDepositView.DepositDate       = DateTimeProxy.Deserialize(bytes);
            currencyDepositView.IsAdminAction     = BooleanProxy.Deserialize(bytes);
            currencyDepositView.PaymentProviderId = EnumProxy <PaymentProviderType> .Deserialize(bytes);

            currencyDepositView.Points = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                currencyDepositView.TransactionKey = StringProxy.Deserialize(bytes);
            }
            currencyDepositView.UsdAmount = DecimalProxy.Deserialize(bytes);
            return(currencyDepositView);
        }
Example #21
0
        // Token: 0x06001067 RID: 4199 RVA: 0x000145EC File Offset: 0x000127EC
        public static void Serialize(Stream stream, MysteryBoxUnityView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                EnumProxy <BundleCategoryType> .Serialize(memoryStream, instance.Category);

                Int32Proxy.Serialize(memoryStream, instance.CreditsAttributed);
                Int32Proxy.Serialize(memoryStream, instance.CreditsAttributedWeight);
                if (instance.Description != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Description);
                }
                else
                {
                    num |= 1;
                }
                BooleanProxy.Serialize(memoryStream, instance.ExposeItemsToPlayers);
                if (instance.IconUrl != null)
                {
                    StringProxy.Serialize(memoryStream, instance.IconUrl);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(memoryStream, instance.Id);
                if (instance.ImageUrl != null)
                {
                    StringProxy.Serialize(memoryStream, instance.ImageUrl);
                }
                else
                {
                    num |= 4;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsAvailableInShop);
                Int32Proxy.Serialize(memoryStream, instance.ItemsAttributed);
                if (instance.MysteryBoxItems != null)
                {
                    ListProxy <BundleItemView> .Serialize(memoryStream, instance.MysteryBoxItems, new ListProxy <BundleItemView> .Serializer <BundleItemView>(BundleItemViewProxy.Serialize));
                }
                else
                {
                    num |= 8;
                }
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 16;
                }
                Int32Proxy.Serialize(memoryStream, instance.PointsAttributed);
                Int32Proxy.Serialize(memoryStream, instance.PointsAttributedWeight);
                Int32Proxy.Serialize(memoryStream, instance.Price);
                EnumProxy <UberStrikeCurrencyType> .Serialize(memoryStream, instance.UberStrikeCurrencyType);

                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #22
0
        // Token: 0x06001039 RID: 4153 RVA: 0x000125A8 File Offset: 0x000107A8
        public static void Serialize(Stream stream, BundleView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                if (instance.AndroidStoreUniqueId != null)
                {
                    StringProxy.Serialize(memoryStream, instance.AndroidStoreUniqueId);
                }
                else
                {
                    num |= 1;
                }
                Int32Proxy.Serialize(memoryStream, instance.ApplicationId);
                if (instance.Availability != null)
                {
                    ListProxy <ChannelType> .Serialize(memoryStream, instance.Availability, new ListProxy <ChannelType> .Serializer <ChannelType>(EnumProxy <ChannelType> .Serialize));
                }
                else
                {
                    num |= 2;
                }
                if (instance.BundleItemViews != null)
                {
                    ListProxy <BundleItemView> .Serialize(memoryStream, instance.BundleItemViews, new ListProxy <BundleItemView> .Serializer <BundleItemView>(BundleItemViewProxy.Serialize));
                }
                else
                {
                    num |= 4;
                }
                EnumProxy <BundleCategoryType> .Serialize(memoryStream, instance.Category);

                Int32Proxy.Serialize(memoryStream, instance.Credits);
                if (instance.Description != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Description);
                }
                else
                {
                    num |= 8;
                }
                if (instance.IconUrl != null)
                {
                    StringProxy.Serialize(memoryStream, instance.IconUrl);
                }
                else
                {
                    num |= 16;
                }
                Int32Proxy.Serialize(memoryStream, instance.Id);
                if (instance.ImageUrl != null)
                {
                    StringProxy.Serialize(memoryStream, instance.ImageUrl);
                }
                else
                {
                    num |= 32;
                }
                if (instance.IosAppStoreUniqueId != null)
                {
                    StringProxy.Serialize(memoryStream, instance.IosAppStoreUniqueId);
                }
                else
                {
                    num |= 64;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsDefault);
                BooleanProxy.Serialize(memoryStream, instance.IsOnSale);
                BooleanProxy.Serialize(memoryStream, instance.IsPromoted);
                if (instance.MacAppStoreUniqueId != null)
                {
                    StringProxy.Serialize(memoryStream, instance.MacAppStoreUniqueId);
                }
                else
                {
                    num |= 128;
                }
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 256;
                }
                Int32Proxy.Serialize(memoryStream, instance.Points);
                if (instance.PromotionTag != null)
                {
                    StringProxy.Serialize(memoryStream, instance.PromotionTag);
                }
                else
                {
                    num |= 512;
                }
                DecimalProxy.Serialize(memoryStream, instance.USDPrice);
                DecimalProxy.Serialize(memoryStream, instance.USDPromoPrice);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #23
0
        // Token: 0x06001113 RID: 4371 RVA: 0x0001AC04 File Offset: 0x00018E04
        public static void Serialize(Stream stream, UberStrikeItemGearView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.ArmorPoints);
                Int32Proxy.Serialize(memoryStream, instance.ArmorWeight);
                if (instance.CustomProperties != null)
                {
                    DictionaryProxy <string, string> .Serialize(memoryStream, instance.CustomProperties, new DictionaryProxy <string, string> .Serializer <string>(StringProxy.Serialize), new DictionaryProxy <string, string> .Serializer <string>(StringProxy.Serialize));
                }
                else
                {
                    num |= 1;
                }
                if (instance.Description != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Description);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(memoryStream, instance.ID);
                BooleanProxy.Serialize(memoryStream, instance.IsConsumable);
                EnumProxy <UberstrikeItemClass> .Serialize(memoryStream, instance.ItemClass);

                if (instance.ItemProperties != null)
                {
                    DictionaryProxy <ItemPropertyType, int> .Serialize(memoryStream, instance.ItemProperties, new DictionaryProxy <ItemPropertyType, int> .Serializer <ItemPropertyType>(EnumProxy <ItemPropertyType> .Serialize), new DictionaryProxy <ItemPropertyType, int> .Serializer <int>(Int32Proxy.Serialize));
                }
                else
                {
                    num |= 4;
                }
                Int32Proxy.Serialize(memoryStream, instance.LevelLock);
                Int32Proxy.Serialize(memoryStream, instance.MaxDurationDays);
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 8;
                }
                if (instance.PrefabName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.PrefabName);
                }
                else
                {
                    num |= 16;
                }
                if (instance.Prices != null)
                {
                    ListProxy <ItemPrice> .Serialize(memoryStream, instance.Prices, new ListProxy <ItemPrice> .Serializer <ItemPrice>(ItemPriceProxy.Serialize));
                }
                else
                {
                    num |= 32;
                }
                EnumProxy <ItemShopHighlightType> .Serialize(memoryStream, instance.ShopHighlightType);

                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #24
0
        // Token: 0x060010FB RID: 4347 RVA: 0x00019844 File Offset: 0x00017A44
        public static void Serialize(Stream stream, UberStrikeItemQuickView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                EnumProxy <QuickItemLogic> .Serialize(memoryStream, instance.BehaviourType);

                Int32Proxy.Serialize(memoryStream, instance.CoolDownTime);
                if (instance.CustomProperties != null)
                {
                    DictionaryProxy <string, string> .Serialize(memoryStream, instance.CustomProperties, new DictionaryProxy <string, string> .Serializer <string>(StringProxy.Serialize), new DictionaryProxy <string, string> .Serializer <string>(StringProxy.Serialize));
                }
                else
                {
                    num |= 1;
                }
                if (instance.Description != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Description);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(memoryStream, instance.ID);
                BooleanProxy.Serialize(memoryStream, instance.IsConsumable);
                EnumProxy <UberstrikeItemClass> .Serialize(memoryStream, instance.ItemClass);

                if (instance.ItemProperties != null)
                {
                    DictionaryProxy <ItemPropertyType, int> .Serialize(memoryStream, instance.ItemProperties, new DictionaryProxy <ItemPropertyType, int> .Serializer <ItemPropertyType>(EnumProxy <ItemPropertyType> .Serialize), new DictionaryProxy <ItemPropertyType, int> .Serializer <int>(Int32Proxy.Serialize));
                }
                else
                {
                    num |= 4;
                }
                Int32Proxy.Serialize(memoryStream, instance.LevelLock);
                Int32Proxy.Serialize(memoryStream, instance.MaxDurationDays);
                Int32Proxy.Serialize(memoryStream, instance.MaxOwnableAmount);
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 8;
                }
                if (instance.PrefabName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.PrefabName);
                }
                else
                {
                    num |= 16;
                }
                if (instance.Prices != null)
                {
                    ListProxy <ItemPrice> .Serialize(memoryStream, instance.Prices, new ListProxy <ItemPrice> .Serializer <ItemPrice>(ItemPriceProxy.Serialize));
                }
                else
                {
                    num |= 32;
                }
                EnumProxy <ItemShopHighlightType> .Serialize(memoryStream, instance.ShopHighlightType);

                Int32Proxy.Serialize(memoryStream, instance.UsesPerGame);
                Int32Proxy.Serialize(memoryStream, instance.UsesPerLife);
                Int32Proxy.Serialize(memoryStream, instance.UsesPerRound);
                Int32Proxy.Serialize(memoryStream, instance.WarmUpTime);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
        // Token: 0x06001031 RID: 4145 RVA: 0x00011EBC File Offset: 0x000100BC
        public static void Serialize(Stream stream, ApplicationView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.ApplicationVersionId);
                EnumProxy <BuildType> .Serialize(memoryStream, instance.Build);

                EnumProxy <ChannelType> .Serialize(memoryStream, instance.Channel);

                if (instance.ExpirationDate != null)
                {
                    Stream   bytes          = memoryStream;
                    DateTime?expirationDate = instance.ExpirationDate;
                    DateTimeProxy.Serialize(bytes, (expirationDate == null) ? default(DateTime) : expirationDate.Value);
                }
                else
                {
                    num |= 1;
                }
                if (instance.FileName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.FileName);
                }
                else
                {
                    num |= 2;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsCurrent);
                Int32Proxy.Serialize(memoryStream, instance.PhotonGroupId);
                if (instance.PhotonGroupName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.PhotonGroupName);
                }
                else
                {
                    num |= 4;
                }
                DateTimeProxy.Serialize(memoryStream, instance.ReleaseDate);
                Int32Proxy.Serialize(memoryStream, instance.RemainingTime);
                if (instance.Servers != null)
                {
                    ListProxy <PhotonView> .Serialize(memoryStream, instance.Servers, new ListProxy <PhotonView> .Serializer <PhotonView>(PhotonViewProxy.Serialize));
                }
                else
                {
                    num |= 8;
                }
                if (instance.SupportUrl != null)
                {
                    StringProxy.Serialize(memoryStream, instance.SupportUrl);
                }
                else
                {
                    num |= 16;
                }
                if (instance.Version != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Version);
                }
                else
                {
                    num |= 32;
                }
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #26
0
        // Token: 0x060010FF RID: 4351 RVA: 0x00019D34 File Offset: 0x00017F34
        public static void Serialize(Stream stream, UberStrikeItemWeaponView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.AccuracySpread);
                //Int32Proxy.Serialize(memoryStream, instance.ArmorPierced);
                Int32Proxy.Serialize(memoryStream, instance.CombatRange);
                Int32Proxy.Serialize(memoryStream, instance.CriticalStrikeBonus);
                if (instance.CustomProperties != null)
                {
                    DictionaryProxy <string, string> .Serialize(memoryStream, instance.CustomProperties, new DictionaryProxy <string, string> .Serializer <string>(StringProxy.Serialize), new DictionaryProxy <string, string> .Serializer <string>(StringProxy.Serialize));
                }
                else
                {
                    num |= 1;
                }
                Int32Proxy.Serialize(memoryStream, instance.DamageKnockback);
                Int32Proxy.Serialize(memoryStream, instance.DamagePerProjectile);
                Int32Proxy.Serialize(memoryStream, instance.DefaultZoomMultiplier);
                if (instance.Description != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Description);
                }
                else
                {
                    num |= 2;
                }
                BooleanProxy.Serialize(memoryStream, instance.HasAutomaticFire);
                Int32Proxy.Serialize(memoryStream, instance.ID);
                BooleanProxy.Serialize(memoryStream, instance.IsConsumable);
                EnumProxy <UberstrikeItemClass> .Serialize(memoryStream, instance.ItemClass);

                if (instance.ItemProperties != null)
                {
                    DictionaryProxy <ItemPropertyType, int> .Serialize(memoryStream, instance.ItemProperties, new DictionaryProxy <ItemPropertyType, int> .Serializer <ItemPropertyType>(EnumProxy <ItemPropertyType> .Serialize), new DictionaryProxy <ItemPropertyType, int> .Serializer <int>(Int32Proxy.Serialize));
                }
                else
                {
                    num |= 4;
                }
                Int32Proxy.Serialize(memoryStream, instance.LevelLock);
                Int32Proxy.Serialize(memoryStream, instance.MaxAmmo);
                Int32Proxy.Serialize(memoryStream, instance.MaxDurationDays);
                Int32Proxy.Serialize(memoryStream, instance.MaxZoomMultiplier);
                Int32Proxy.Serialize(memoryStream, instance.MinZoomMultiplier);
                Int32Proxy.Serialize(memoryStream, instance.MissileBounciness);
                Int32Proxy.Serialize(memoryStream, instance.MissileForceImpulse);
                Int32Proxy.Serialize(memoryStream, instance.MissileTimeToDetonate);
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 8;
                }
                if (instance.PrefabName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.PrefabName);
                }
                else
                {
                    num |= 16;
                }
                if (instance.Prices != null)
                {
                    ListProxy <ItemPrice> .Serialize(memoryStream, instance.Prices, new ListProxy <ItemPrice> .Serializer <ItemPrice>(ItemPriceProxy.Serialize));
                }
                else
                {
                    num |= 32;
                }
                Int32Proxy.Serialize(memoryStream, instance.ProjectileSpeed);
                Int32Proxy.Serialize(memoryStream, instance.ProjectilesPerShot);
                Int32Proxy.Serialize(memoryStream, instance.RateOfFire);
                Int32Proxy.Serialize(memoryStream, instance.RecoilKickback);
                Int32Proxy.Serialize(memoryStream, instance.RecoilMovement);
                Int32Proxy.Serialize(memoryStream, instance.SecondaryActionReticle);
                EnumProxy <ItemShopHighlightType> .Serialize(memoryStream, instance.ShopHighlightType);

                Int32Proxy.Serialize(memoryStream, instance.SplashRadius);
                Int32Proxy.Serialize(memoryStream, instance.StartAmmo);
                Int32Proxy.Serialize(memoryStream, instance.Tier);
                Int32Proxy.Serialize(memoryStream, instance.WeaponSecondaryAction);

                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Example #27
0
        // Token: 0x06001100 RID: 4352 RVA: 0x00019FE0 File Offset: 0x000181E0
        public static UberStrikeItemWeaponView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            UberStrikeItemWeaponView uberStrikeItemWeaponView = new UberStrikeItemWeaponView();

            uberStrikeItemWeaponView.AccuracySpread = Int32Proxy.Deserialize(bytes);
            //uberStrikeItemWeaponView.ArmorPierced = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.CombatRange         = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.CriticalStrikeBonus = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                uberStrikeItemWeaponView.CustomProperties = DictionaryProxy <string, string> .Deserialize(bytes, new DictionaryProxy <string, string> .Deserializer <string>(StringProxy.Deserialize), new DictionaryProxy <string, string> .Deserializer <string>(StringProxy.Deserialize));
            }
            uberStrikeItemWeaponView.DamageKnockback       = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.DamagePerProjectile   = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.DefaultZoomMultiplier = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                uberStrikeItemWeaponView.Description = StringProxy.Deserialize(bytes);
            }
            uberStrikeItemWeaponView.HasAutomaticFire = BooleanProxy.Deserialize(bytes);
            uberStrikeItemWeaponView.ID           = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.IsConsumable = BooleanProxy.Deserialize(bytes);
            uberStrikeItemWeaponView.ItemClass    = EnumProxy <UberstrikeItemClass> .Deserialize(bytes);

            if ((num & 4) != 0)
            {
                uberStrikeItemWeaponView.ItemProperties = DictionaryProxy <ItemPropertyType, int> .Deserialize(bytes, new DictionaryProxy <ItemPropertyType, int> .Deserializer <ItemPropertyType>(EnumProxy <ItemPropertyType> .Deserialize), new DictionaryProxy <ItemPropertyType, int> .Deserializer <int>(Int32Proxy.Deserialize));
            }
            uberStrikeItemWeaponView.LevelLock             = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.MaxAmmo               = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.MaxDurationDays       = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.MaxZoomMultiplier     = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.MinZoomMultiplier     = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.MissileBounciness     = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.MissileForceImpulse   = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.MissileTimeToDetonate = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                uberStrikeItemWeaponView.Name = StringProxy.Deserialize(bytes);
            }
            if ((num & 16) != 0)
            {
                uberStrikeItemWeaponView.PrefabName = StringProxy.Deserialize(bytes);
            }
            if ((num & 32) != 0)
            {
                uberStrikeItemWeaponView.Prices = ListProxy <ItemPrice> .Deserialize(bytes, new ListProxy <ItemPrice> .Deserializer <ItemPrice>(ItemPriceProxy.Deserialize));
            }
            uberStrikeItemWeaponView.ProjectileSpeed        = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.ProjectilesPerShot     = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.RateOfFire             = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.RecoilKickback         = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.RecoilMovement         = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.SecondaryActionReticle = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.ShopHighlightType      = EnumProxy <ItemShopHighlightType> .Deserialize(bytes);

            uberStrikeItemWeaponView.SplashRadius          = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.StartAmmo             = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.Tier                  = Int32Proxy.Deserialize(bytes);
            uberStrikeItemWeaponView.WeaponSecondaryAction = Int32Proxy.Deserialize(bytes);

            return(uberStrikeItemWeaponView);
        }
Example #28
0
        // Token: 0x0600104F RID: 4175 RVA: 0x000135C4 File Offset: 0x000117C4
        public static void Serialize(Stream stream, GroupCreationView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                if (instance.Address != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Address);
                }
                else
                {
                    num |= 1;
                }
                Int32Proxy.Serialize(memoryStream, instance.ApplicationId);
                if (instance.AuthToken != null)
                {
                    StringProxy.Serialize(memoryStream, instance.AuthToken);
                }
                else
                {
                    num |= 2;
                }
                if (instance.Description != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Description);
                }
                else
                {
                    num |= 4;
                }
                BooleanProxy.Serialize(memoryStream, instance.HasPicture);
                if (instance.Locale != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Locale);
                }
                else
                {
                    num |= 8;
                }
                if (instance.Motto != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Motto);
                }
                else
                {
                    num |= 16;
                }
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 32;
                }
                if (instance.Tag != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Tag);
                }
                else
                {
                    num |= 64;
                }
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }