public void Compose()
        {
            if (this._ComposeState != ComposeState.Decomposed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Composed;

            if (this.MissionData == null ||
                this.MissionData.Count == 0)
            {
                this.MissionData = null;
            }
            else
            {
                this.MissionData.Compose();
            }

            if (this.PendingMissionRewards == null ||
                this.PendingMissionRewards.Count == 0)
            {
                this.PendingMissionRewards = null;
            }
            else
            {
                this.PendingMissionRewards.Compose();
            }

            if (this.FilteredMissions == null ||
                this.FilteredMissions.Count == 0)
            {
                this.FilteredMissions = null;
            }
        }
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            if (this.MissionData == null)
            {
                this.MissionData = new List<MissionData>();
            }
            else
            {
                this.MissionData.Decompose();
            }

            if (this.PendingMissionRewards == null)
            {
                this.PendingMissionRewards = new List<PendingMissionRewards>();
            }
            else
            {
                this.PendingMissionRewards.Decompose();
            }

            if (this.FilteredMissions == null)
            {
                this.FilteredMissions = new List<string>();
            }
        }
Пример #3
0
        public void Compose()
        {
            if (this._ComposeState != ComposeState.Decomposed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Composed;

            if (this.MissionData == null ||
                this.MissionData.Count == 0)
            {
                this.MissionData = null;
            }
            else
            {
                this.MissionData.Compose();
            }

            if (this.PendingMissionRewards == null ||
                this.PendingMissionRewards.Count == 0)
            {
                this.PendingMissionRewards = null;
            }
            else
            {
                this.PendingMissionRewards.Compose();
            }

            if (this.FilteredMissions == null ||
                this.FilteredMissions.Count == 0)
            {
                this.FilteredMissions = null;
            }
        }
Пример #4
0
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            if (this.MissionData == null)
            {
                this.MissionData = new List <MissionData>();
            }
            else
            {
                this.MissionData.Decompose();
            }

            if (this.PendingMissionRewards == null)
            {
                this.PendingMissionRewards = new List <PendingMissionRewards>();
            }
            else
            {
                this.PendingMissionRewards.Decompose();
            }

            if (this.FilteredMissions == null)
            {
                this.FilteredMissions = new List <string>();
            }
        }
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            this.PrimaryColor.Decompose();
            this.SecondaryColor.Decompose();
            this.TertiaryColor.Decompose();
        }
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            this.PrimaryColor.Decompose();
            this.SecondaryColor.Decompose();
            this.TertiaryColor.Decompose();
        }
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            if (this._Completion == null)
            {
                this._Completion = new List<uint>();
            }
        }
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            if (this._Completion == null)
            {
                this._Completion = new List <uint>();
            }
        }
        public void Compose()
        {
            if (this._ComposeState != ComposeState.Decomposed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Composed;

            if (this._Completion == null ||
                this._Completion.Count == 0)
            {
                this._Completion = null;
            }
        }
        public void Compose()
        {
            if (this._ComposeState != ComposeState.Decomposed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Composed;

            if (this._Completion == null ||
                this._Completion.Count == 0)
            {
                this._Completion = null;
            }
        }
        public void Compose()
        {
            if (this._ComposeState != ComposeState.Decomposed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Composed;

            if (this.WeaponRewards == null ||
                this.WeaponRewards.Count == 0)
            {
                this.WeaponRewards = null;
            }
            else
            {
                this.WeaponRewards.Compose();
            }

            if (this.ItemRewards == null ||
                this.ItemRewards.Count == 0)
            {
                this.ItemRewards = null;
            }
            else
            {
                this.ItemRewards.Compose();
            }

            if (this.PackedWeaponRewards == null ||
                this.PackedWeaponRewards.Count == 0)
            {
                this.PackedWeaponRewards = null;
            }
            else
            {
                this.PackedWeaponRewards.Compose();
            }

            if (this.PackedItemRewards == null ||
                this.PackedItemRewards.Count == 0)
            {
                this.PackedItemRewards = null;
            }
            else
            {
                this.PackedItemRewards.Compose();
            }
        }
Пример #12
0
        public void Compose()
        {
            if (this._ComposeState != ComposeState.Decomposed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Composed;

            if (this.WeaponRewards == null ||
                this.WeaponRewards.Count == 0)
            {
                this.WeaponRewards = null;
            }
            else
            {
                this.WeaponRewards.Compose();
            }

            if (this.ItemRewards == null ||
                this.ItemRewards.Count == 0)
            {
                this.ItemRewards = null;
            }
            else
            {
                this.ItemRewards.Compose();
            }

            if (this.PackedWeaponRewards == null ||
                this.PackedWeaponRewards.Count == 0)
            {
                this.PackedWeaponRewards = null;
            }
            else
            {
                this.PackedWeaponRewards.Compose();
            }

            if (this.PackedItemRewards == null ||
                this.PackedItemRewards.Count == 0)
            {
                this.PackedItemRewards = null;
            }
            else
            {
                this.PackedItemRewards.Compose();
            }
        }
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            if (this.ObjectivesProgress == null)
            {
                this.ObjectivesProgress = new List <int>();
            }

            if (this.SubObjectiveSetIndexes == null)
            {
                this.SubObjectiveSetIndexes = new List <int>();
            }
        }
Пример #14
0
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            if (this.ObjectivesProgress == null)
            {
                this.ObjectivesProgress = new List<int>();
            }

            if (this.SubObjectiveSetIndexes == null)
            {
                this.SubObjectiveSetIndexes = new List<int>();
            }
        }
Пример #15
0
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            if (this.WeaponRewards == null)
            {
                this.WeaponRewards = new List <WeaponData>();
            }
            else
            {
                this.WeaponRewards.Decompose();
            }

            if (this.ItemRewards == null)
            {
                this.ItemRewards = new List <ItemData>();
            }
            else
            {
                this.ItemRewards.Decompose();
            }

            if (this.PackedWeaponRewards == null)
            {
                this.PackedWeaponRewards = new List <PackedWeaponDataOptional>();
            }
            else
            {
                this.PackedWeaponRewards.Decompose();
            }

            if (this.PackedItemRewards == null)
            {
                this.PackedItemRewards = new List <PackedItemDataOptional>();
            }
            else
            {
                this.PackedItemRewards.Decompose();
            }
        }
        public void Compose()
        {
            if (this._ComposeState != ComposeState.Decomposed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Composed;

            if (this.ObjectivesProgress == null ||
                this.ObjectivesProgress.Count == 0)
            {
                this.ObjectivesProgress = null;
            }

            if (this.SubObjectiveSetIndexes == null ||
                this.SubObjectiveSetIndexes.Count == 0)
            {
                this.SubObjectiveSetIndexes = null;
            }
        }
Пример #17
0
        public void Compose()
        {
            if (this._ComposeState != ComposeState.Decomposed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Composed;

            if (this.ObjectivesProgress == null ||
                this.ObjectivesProgress.Count == 0)
            {
                this.ObjectivesProgress = null;
            }

            if (this.SubObjectiveSetIndexes == null ||
                this.SubObjectiveSetIndexes.Count == 0)
            {
                this.SubObjectiveSetIndexes = null;
            }
        }
        public void Compose()
        {
            if (this._ComposeState != ComposeState.Decomposed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Composed;

            if (this.CurrencyOnHand == null ||
                this.CurrencyOnHand.Count == 0)
            {
                this.CurrencyOnHand = null;
            }

            if (this.SkillData == null ||
                this.SkillData.Count == 0)
            {
                this.SkillData = null;
            }
            else
            {
                this.SkillData.Compose();
            }

            if (this.Unknown9 == null ||
                this.Unknown9.Count == 0)
            {
                this.Unknown9 = null;
            }

            if (this.Unknown10 == null ||
                this.Unknown10.Count == 0)
            {
                this.Unknown10 = null;
            }

            if (this.ResourceData == null ||
                this.ResourceData.Count == 0)
            {
                this.ResourceData = null;
            }
            else
            {
                this.ResourceData.Compose();
            }

            if (this.ItemData == null ||
                this.ItemData.Count == 0)
            {
                this.ItemData = null;
            }
            else
            {
                this.ItemData.Compose();
            }

            this.InventorySlotData.Compose();

            if (this.WeaponData == null ||
                this.WeaponData.Count == 0)
            {
                this.WeaponData = null;
            }
            else
            {
                this.WeaponData.Compose();
            }

            if (this.VisitedTeleporters == null ||
                this.VisitedTeleporters.Count == 0)
            {
                this.VisitedTeleporters = null;
            }

            if (this.MissionPlaythroughs == null ||
                this.MissionPlaythroughs.Count == 0)
            {
                this.MissionPlaythroughs = null;
            }
            else
            {
                this.MissionPlaythroughs.Compose();
            }

            this.UIPreferences.Compose();

            if (this.UsedMarketingCodes == null ||
                this.UsedMarketingCodes.Count == 0)
            {
                this.UsedMarketingCodes = null;
            }

            if (this.MarketingCodesNeedingNotification == null ||
                this.MarketingCodesNeedingNotification.Count == 0)
            {
                this.MarketingCodesNeedingNotification = null;
            }

            if (this.DLCExpansionData == null ||
                this.DLCExpansionData.Count == 0)
            {
                this.DLCExpansionData = null;
            }
            else
            {
                this.DLCExpansionData.Compose();
            }

            if (this.Unknown28 == null ||
                this.Unknown28.Count == 0)
            {
                this.Unknown28 = null;
            }

            if (this.RegionGameStages == null ||
                this.RegionGameStages.Count == 0)
            {
                this.RegionGameStages = null;
            }
            else
            {
                this.RegionGameStages.Compose();
            }

            if (this.WorldDiscoveryList == null ||
                this.WorldDiscoveryList.Count == 0)
            {
                this.WorldDiscoveryList = null;
            }
            else
            {
                this.WorldDiscoveryList.Compose();
            }

            if (this.Unknown32 == null ||
                this.Unknown32.Count == 0)
            {
                this.Unknown32 = null;
            }
            else
            {
                this.Unknown32.Compose();
            }

            if (this.Unknown33 == null ||
                this.Unknown33.Count == 0)
            {
                this.Unknown33 = null;
            }
            else
            {
                this.Unknown33.Compose();
            }

            this.SaveGuid.Compose();

            if (this.AppliedCustomizations == null ||
                this.AppliedCustomizations.Count == 0)
            {
                this.AppliedCustomizations = null;
            }

            if (this.BlackMarketUpgrades == null ||
                this.BlackMarketUpgrades.Count == 0)
            {
                this.BlackMarketUpgrades = null;
            }

            if (this.ChallengeList == null ||
                this.ChallengeList.Count == 0)
            {
                this.ChallengeList = null;
            }
            else
            {
                this.ChallengeList.Compose();
            }

            if (this.LevelChallengeUnlocks == null ||
                this.LevelChallengeUnlocks.Count == 0)
            {
                this.LevelChallengeUnlocks = null;
            }

            if (this.OneOffLevelChallengeCompletion == null ||
                this.OneOffLevelChallengeCompletion.Count == 0)
            {
                this.OneOffLevelChallengeCompletion = null;
            }
            else
            {
                this.OneOffLevelChallengeCompletion.Compose();
            }

            if (this.BankSlots == null ||
                this.BankSlots.Count == 0)
            {
                this.BankSlots = null;
            }
            else
            {
                this.BankSlots.Compose();
            }

            if (this.LockoutList == null ||
                this.LockoutList.Count == 0)
            {
                this.LockoutList = null;
            }
            else
            {
                this.LockoutList.Compose();
            }

            if (this.FullyExploredAreas == null ||
                this.FullyExploredAreas.Count == 0)
            {
                this.FullyExploredAreas = null;
            }

            if (this.Unknown47 == null ||
                this.Unknown47.Count == 0)
            {
                this.Unknown47 = null;
            }
            else
            {
                this.Unknown47.Compose();
            }

            if (this.QueuedTrainingMessages == null ||
                this.QueuedTrainingMessages.Count == 0)
            {
                this.QueuedTrainingMessages = null;
            }

            if (this.PackedItemData == null ||
                this.PackedItemData.Count == 0)
            {
                this.PackedItemData = null;
            }
            else
            {
                this.PackedItemData.Compose();
            }

            if (this.PackedWeaponData == null ||
                this.PackedWeaponData.Count == 0)
            {
                this.PackedWeaponData = null;
            }
            else
            {
                this.PackedWeaponData.Compose();
            }
        }
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            if (this.CurrencyOnHand == null)
            {
                this.CurrencyOnHand = new ObservableCollection<int>();
            }

            if (this.SkillData == null)
            {
                this.SkillData = new ObservableCollection<SkillData>();
            }
            else
            {
                this.SkillData.Decompose();
            }

            if (this.Unknown9 == null)
            {
                this.Unknown9 = new ObservableCollection<int>();
            }

            if (this.Unknown10 == null)
            {
                this.Unknown10 = new ObservableCollection<int>();
            }

            if (this.ResourceData == null)
            {
                this.ResourceData = new ObservableCollection<ResourceData>();
            }
            else
            {
                this.ResourceData.Decompose();
            }

            if (this.ItemData == null)
            {
                this.ItemData = new ObservableCollection<ItemData>();
            }
            else
            {
                this.ItemData.Decompose();
            }

            this.InventorySlotData.Decompose();

            if (this.WeaponData == null)
            {
                this.WeaponData = new ObservableCollection<WeaponData>();
            }
            else
            {
                this.WeaponData.Decompose();
            }

            if (this.VisitedTeleporters == null)
            {
                this.VisitedTeleporters = new ObservableCollection<string>();
            }

            if (this.MissionPlaythroughs == null)
            {
                this.MissionPlaythroughs = new ObservableCollection<MissionPlaythroughData>();
            }
            else
            {
                this.MissionPlaythroughs.Decompose();
            }

            this.UIPreferences.Decompose();

            if (this.UsedMarketingCodes == null)
            {
                this.UsedMarketingCodes = new ObservableCollection<int>();
            }

            if (this.MarketingCodesNeedingNotification == null)
            {
                this.MarketingCodesNeedingNotification = new ObservableCollection<int>();
            }

            if (this.DLCExpansionData == null)
            {
                this.DLCExpansionData = new ObservableCollection<DLCExpansionData>();
            }
            else
            {
                this.DLCExpansionData.Decompose();
            }

            if (this.Unknown28 == null)
            {
                this.Unknown28 = new ObservableCollection<string>();
            }

            if (this.RegionGameStages == null)
            {
                this.RegionGameStages = new ObservableCollection<RegionGameStageData>();
            }
            else
            {
                this.RegionGameStages.Decompose();
            }

            if (this.WorldDiscoveryList == null)
            {
                this.WorldDiscoveryList = new ObservableCollection<WorldDiscoveryData>();
            }
            else
            {
                this.WorldDiscoveryList.Decompose();
            }

            if (this.Unknown32 == null)
            {
                this.Unknown32 = new ObservableCollection<WeaponMemento>();
            }
            else
            {
                this.Unknown32.Decompose();
            }

            if (this.Unknown33 == null)
            {
                this.Unknown33 = new ObservableCollection<ItemMemento>();
            }
            else
            {
                this.Unknown33.Decompose();
            }

            this.SaveGuid.Decompose();

            if (this.AppliedCustomizations == null)
            {
                this.AppliedCustomizations = new ObservableCollection<string>();
            }

            if (this.BlackMarketUpgrades == null)
            {
                this.BlackMarketUpgrades = new ObservableCollection<int>();
            }

            if (this.ChallengeList == null)
            {
                this.ChallengeList = new ObservableCollection<ChallengeData>();
            }
            else
            {
                this.ChallengeList.Decompose();
            }

            if (this.LevelChallengeUnlocks == null)
            {
                this.LevelChallengeUnlocks = new ObservableCollection<int>();
            }

            if (this.OneOffLevelChallengeCompletion == null)
            {
                this.OneOffLevelChallengeCompletion = new ObservableCollection<OneOffLevelChallengeData>();
            }
            else
            {
                this.OneOffLevelChallengeCompletion.Decompose();
            }

            if (this.BankSlots == null)
            {
                this.BankSlots = new ObservableCollection<BankSlot>();
            }
            else
            {
                this.BankSlots.Decompose();
            }

            if (this.LockoutList == null)
            {
                this.LockoutList = new ObservableCollection<LockoutData>();
            }
            else
            {
                this.LockoutList.Decompose();
            }

            if (this.FullyExploredAreas == null)
            {
                this.FullyExploredAreas = new ObservableCollection<string>();
            }

            if (this.Unknown47 == null)
            {
                this.Unknown47 = new ObservableCollection<GoldenKeys>();
            }
            else
            {
                this.Unknown47.Decompose();
            }

            if (this.QueuedTrainingMessages == null)
            {
                this.QueuedTrainingMessages = new ObservableCollection<string>();
            }

            if (this.PackedItemData == null)
            {
                this.PackedItemData = new ObservableCollection<PackedItemData>();
            }
            else
            {
                this.PackedItemData.Decompose();
            }

            if (this.PackedWeaponData == null)
            {
                this.PackedWeaponData = new ObservableCollection<PackedWeaponData>();
            }
            else
            {
                this.PackedWeaponData.Decompose();
            }
        }
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            if (this.WeaponRewards == null)
            {
                this.WeaponRewards = new List<WeaponData>();
            }
            else
            {
                this.WeaponRewards.Decompose();
            }

            if (this.ItemRewards == null)
            {
                this.ItemRewards = new List<ItemData>();
            }
            else
            {
                this.ItemRewards.Decompose();
            }

            if (this.PackedWeaponRewards == null)
            {
                this.PackedWeaponRewards = new List<PackedWeaponDataOptional>();
            }
            else
            {
                this.PackedWeaponRewards.Decompose();
            }

            if (this.PackedItemRewards == null)
            {
                this.PackedItemRewards = new List<PackedItemDataOptional>();
            }
            else
            {
                this.PackedItemRewards.Decompose();
            }
        }
Пример #21
0
        public void Compose()
        {
            if (this._ComposeState != ComposeState.Decomposed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Composed;

            if (this.CurrencyOnHand == null ||
                this.CurrencyOnHand.Count == 0)
            {
                this.CurrencyOnHand = null;
            }

            if (this.SkillData == null ||
                this.SkillData.Count == 0)
            {
                this.SkillData = null;
            }
            else
            {
                this.SkillData.Compose();
            }

            if (this.Unknown9 == null ||
                this.Unknown9.Count == 0)
            {
                this.Unknown9 = null;
            }

            if (this.Unknown10 == null ||
                this.Unknown10.Count == 0)
            {
                this.Unknown10 = null;
            }

            if (this.ResourceData == null ||
                this.ResourceData.Count == 0)
            {
                this.ResourceData = null;
            }
            else
            {
                this.ResourceData.Compose();
            }

            if (this.ItemData == null ||
                this.ItemData.Count == 0)
            {
                this.ItemData = null;
            }
            else
            {
                this.ItemData.Compose();
            }

            this.InventorySlotData.Compose();

            if (this.WeaponData == null ||
                this.WeaponData.Count == 0)
            {
                this.WeaponData = null;
            }
            else
            {
                this.WeaponData.Compose();
            }

            if (this.VisitedTeleporters == null ||
                this.VisitedTeleporters.Count == 0)
            {
                this.VisitedTeleporters = null;
            }

            if (this.MissionPlaythroughs == null ||
                this.MissionPlaythroughs.Count == 0)
            {
                this.MissionPlaythroughs = null;
            }
            else
            {
                this.MissionPlaythroughs.Compose();
            }

            this.UIPreferences.Compose();

            if (this.UsedMarketingCodes == null ||
                this.UsedMarketingCodes.Count == 0)
            {
                this.UsedMarketingCodes = null;
            }

            if (this.MarketingCodesNeedingNotification == null ||
                this.MarketingCodesNeedingNotification.Count == 0)
            {
                this.MarketingCodesNeedingNotification = null;
            }

            if (this.DLCExpansionData == null ||
                this.DLCExpansionData.Count == 0)
            {
                this.DLCExpansionData = null;
            }
            else
            {
                this.DLCExpansionData.Compose();
            }

            if (this.Unknown28 == null ||
                this.Unknown28.Count == 0)
            {
                this.Unknown28 = null;
            }

            if (this.RegionGameStages == null ||
                this.RegionGameStages.Count == 0)
            {
                this.RegionGameStages = null;
            }
            else
            {
                this.RegionGameStages.Compose();
            }

            if (this.WorldDiscoveryList == null ||
                this.WorldDiscoveryList.Count == 0)
            {
                this.WorldDiscoveryList = null;
            }
            else
            {
                this.WorldDiscoveryList.Compose();
            }

            if (this.Unknown32 == null ||
                this.Unknown32.Count == 0)
            {
                this.Unknown32 = null;
            }
            else
            {
                this.Unknown32.Compose();
            }

            if (this.Unknown33 == null ||
                this.Unknown33.Count == 0)
            {
                this.Unknown33 = null;
            }
            else
            {
                this.Unknown33.Compose();
            }

            this.SaveGuid.Compose();

            if (this.AppliedCustomizations == null ||
                this.AppliedCustomizations.Count == 0)
            {
                this.AppliedCustomizations = null;
            }

            if (this.BlackMarketUpgrades == null ||
                this.BlackMarketUpgrades.Count == 0)
            {
                this.BlackMarketUpgrades = null;
            }

            if (this.ChallengeList == null ||
                this.ChallengeList.Count == 0)
            {
                this.ChallengeList = null;
            }
            else
            {
                this.ChallengeList.Compose();
            }

            if (this.LevelChallengeUnlocks == null ||
                this.LevelChallengeUnlocks.Count == 0)
            {
                this.LevelChallengeUnlocks = null;
            }

            if (this.OneOffLevelChallengeCompletion == null ||
                this.OneOffLevelChallengeCompletion.Count == 0)
            {
                this.OneOffLevelChallengeCompletion = null;
            }
            else
            {
                this.OneOffLevelChallengeCompletion.Compose();
            }

            if (this.BankSlots == null ||
                this.BankSlots.Count == 0)
            {
                this.BankSlots = null;
            }
            else
            {
                this.BankSlots.Compose();
            }

            if (this.LockoutList == null ||
                this.LockoutList.Count == 0)
            {
                this.LockoutList = null;
            }
            else
            {
                this.LockoutList.Compose();
            }

            if (this.FullyExploredAreas == null ||
                this.FullyExploredAreas.Count == 0)
            {
                this.FullyExploredAreas = null;
            }

            if (this.Unknown47 == null ||
                this.Unknown47.Count == 0)
            {
                this.Unknown47 = null;
            }
            else
            {
                this.Unknown47.Compose();
            }

            if (this.QueuedTrainingMessages == null ||
                this.QueuedTrainingMessages.Count == 0)
            {
                this.QueuedTrainingMessages = null;
            }

            if (this.PackedItemData == null ||
                this.PackedItemData.Count == 0)
            {
                this.PackedItemData = null;
            }
            else
            {
                this.PackedItemData.Compose();
            }

            if (this.PackedWeaponData == null ||
                this.PackedWeaponData.Count == 0)
            {
                this.PackedWeaponData = null;
            }
            else
            {
                this.PackedWeaponData.Compose();
            }
        }
Пример #22
0
        public void Decompose()
        {
            if (this._ComposeState != ComposeState.Composed)
            {
                throw new InvalidOperationException();
            }
            this._ComposeState = ComposeState.Decomposed;

            if (this.CurrencyOnHand == null)
            {
                this.CurrencyOnHand = new ObservableCollection <int>();
            }

            if (this.SkillData == null)
            {
                this.SkillData = new ObservableCollection <SkillData>();
            }
            else
            {
                this.SkillData.Decompose();
            }

            if (this.Unknown9 == null)
            {
                this.Unknown9 = new ObservableCollection <int>();
            }

            if (this.Unknown10 == null)
            {
                this.Unknown10 = new ObservableCollection <int>();
            }

            if (this.ResourceData == null)
            {
                this.ResourceData = new ObservableCollection <ResourceData>();
            }
            else
            {
                this.ResourceData.Decompose();
            }

            if (this.ItemData == null)
            {
                this.ItemData = new ObservableCollection <ItemData>();
            }
            else
            {
                this.ItemData.Decompose();
            }

            this.InventorySlotData.Decompose();

            if (this.WeaponData == null)
            {
                this.WeaponData = new ObservableCollection <WeaponData>();
            }
            else
            {
                this.WeaponData.Decompose();
            }

            if (this.VisitedTeleporters == null)
            {
                this.VisitedTeleporters = new ObservableCollection <string>();
            }

            if (this.MissionPlaythroughs == null)
            {
                this.MissionPlaythroughs = new ObservableCollection <MissionPlaythroughData>();
            }
            else
            {
                this.MissionPlaythroughs.Decompose();
            }

            this.UIPreferences.Decompose();

            if (this.UsedMarketingCodes == null)
            {
                this.UsedMarketingCodes = new ObservableCollection <int>();
            }

            if (this.MarketingCodesNeedingNotification == null)
            {
                this.MarketingCodesNeedingNotification = new ObservableCollection <int>();
            }

            if (this.DLCExpansionData == null)
            {
                this.DLCExpansionData = new ObservableCollection <DLCExpansionData>();
            }
            else
            {
                this.DLCExpansionData.Decompose();
            }

            if (this.Unknown28 == null)
            {
                this.Unknown28 = new ObservableCollection <string>();
            }

            if (this.RegionGameStages == null)
            {
                this.RegionGameStages = new ObservableCollection <RegionGameStageData>();
            }
            else
            {
                this.RegionGameStages.Decompose();
            }

            if (this.WorldDiscoveryList == null)
            {
                this.WorldDiscoveryList = new ObservableCollection <WorldDiscoveryData>();
            }
            else
            {
                this.WorldDiscoveryList.Decompose();
            }

            if (this.Unknown32 == null)
            {
                this.Unknown32 = new ObservableCollection <WeaponMemento>();
            }
            else
            {
                this.Unknown32.Decompose();
            }

            if (this.Unknown33 == null)
            {
                this.Unknown33 = new ObservableCollection <ItemMemento>();
            }
            else
            {
                this.Unknown33.Decompose();
            }

            this.SaveGuid.Decompose();

            if (this.AppliedCustomizations == null)
            {
                this.AppliedCustomizations = new ObservableCollection <string>();
            }

            if (this.BlackMarketUpgrades == null)
            {
                this.BlackMarketUpgrades = new ObservableCollection <int>();
            }

            if (this.ChallengeList == null)
            {
                this.ChallengeList = new ObservableCollection <ChallengeData>();
            }
            else
            {
                this.ChallengeList.Decompose();
            }

            if (this.LevelChallengeUnlocks == null)
            {
                this.LevelChallengeUnlocks = new ObservableCollection <int>();
            }

            if (this.OneOffLevelChallengeCompletion == null)
            {
                this.OneOffLevelChallengeCompletion = new ObservableCollection <OneOffLevelChallengeData>();
            }
            else
            {
                this.OneOffLevelChallengeCompletion.Decompose();
            }

            if (this.BankSlots == null)
            {
                this.BankSlots = new ObservableCollection <BankSlot>();
            }
            else
            {
                this.BankSlots.Decompose();
            }

            if (this.LockoutList == null)
            {
                this.LockoutList = new ObservableCollection <LockoutData>();
            }
            else
            {
                this.LockoutList.Decompose();
            }

            if (this.FullyExploredAreas == null)
            {
                this.FullyExploredAreas = new ObservableCollection <string>();
            }

            if (this.Unknown47 == null)
            {
                this.Unknown47 = new ObservableCollection <GoldenKeys>();
            }
            else
            {
                this.Unknown47.Decompose();
            }

            if (this.QueuedTrainingMessages == null)
            {
                this.QueuedTrainingMessages = new ObservableCollection <string>();
            }

            if (this.PackedItemData == null)
            {
                this.PackedItemData = new ObservableCollection <PackedItemData>();
            }
            else
            {
                this.PackedItemData.Decompose();
            }

            if (this.PackedWeaponData == null)
            {
                this.PackedWeaponData = new ObservableCollection <PackedWeaponData>();
            }
            else
            {
                this.PackedWeaponData.Decompose();
            }
        }