Esempio n. 1
0
 public bool DeepEquals(Destiny2CoreSettings?other)
 {
     return(other is not null &&
            CollectionRootNode == other.CollectionRootNode &&
            BadgesRootNode == other.BadgesRootNode &&
            RecordsRootNode == other.RecordsRootNode &&
            MedalsRootNode == other.MedalsRootNode &&
            MetricsRootNode == other.MetricsRootNode &&
            ActiveTriumphsRootNodeHash == other.ActiveTriumphsRootNodeHash &&
            ActiveSealsRootNodeHash == other.ActiveSealsRootNodeHash &&
            LegacyTriumphsRootNodeHash == other.LegacyTriumphsRootNodeHash &&
            LegacySealsRootNodeHash == other.LegacySealsRootNodeHash &&
            MedalsRootNodeHash == other.MedalsRootNodeHash &&
            ExoticCatalystsRootNodeHash == other.ExoticCatalystsRootNodeHash &&
            LoreRootNodeHash == other.LoreRootNodeHash &&
            CurrentRankProgressionHashes.DeepEqualsListNaive(other.CurrentRankProgressionHashes) &&
            InsertPlugFreeProtectedPlugItemHashes.DeepEqualsListNaive(other.InsertPlugFreeProtectedPlugItemHashes) &&
            InsertPlugFreeBlockedSocketTypeHashes.DeepEqualsListNaive(other.InsertPlugFreeBlockedSocketTypeHashes) &&
            UndiscoveredCollectibleImage == other.UndiscoveredCollectibleImage &&
            AmmoTypeHeavyIcon == other.AmmoTypeHeavyIcon &&
            AmmoTypeSpecialIcon == other.AmmoTypeSpecialIcon &&
            AmmoTypePrimaryIcon == other.AmmoTypePrimaryIcon &&
            CurrentSeasonalArtifactHash == other.CurrentSeasonalArtifactHash &&
            CurrentSeasonHash == other.CurrentSeasonHash &&
            SeasonalChallengesPresentationNodeHash == other.SeasonalChallengesPresentationNodeHash &&
            FutureSeasonHashes.DeepEqualsListNaive(other.FutureSeasonHashes) &&
            PastSeasonHashes.DeepEqualsListNaive(other.PastSeasonHashes));
 }
Esempio n. 2
0
 public void Update(Destiny2CoreSettings?other)
 {
     if (other is null)
     {
         return;
     }
     if (CollectionRootNode != other.CollectionRootNode)
     {
         CollectionRootNode = other.CollectionRootNode;
         OnPropertyChanged(nameof(CollectionRootNode));
     }
     if (BadgesRootNode != other.BadgesRootNode)
     {
         BadgesRootNode = other.BadgesRootNode;
         OnPropertyChanged(nameof(BadgesRootNode));
     }
     if (RecordsRootNode != other.RecordsRootNode)
     {
         RecordsRootNode = other.RecordsRootNode;
         OnPropertyChanged(nameof(RecordsRootNode));
     }
     if (MedalsRootNode != other.MedalsRootNode)
     {
         MedalsRootNode = other.MedalsRootNode;
         OnPropertyChanged(nameof(MedalsRootNode));
     }
     if (MetricsRootNode != other.MetricsRootNode)
     {
         MetricsRootNode = other.MetricsRootNode;
         OnPropertyChanged(nameof(MetricsRootNode));
     }
     if (ActiveTriumphsRootNodeHash != other.ActiveTriumphsRootNodeHash)
     {
         ActiveTriumphsRootNodeHash = other.ActiveTriumphsRootNodeHash;
         OnPropertyChanged(nameof(ActiveTriumphsRootNodeHash));
     }
     if (ActiveSealsRootNodeHash != other.ActiveSealsRootNodeHash)
     {
         ActiveSealsRootNodeHash = other.ActiveSealsRootNodeHash;
         OnPropertyChanged(nameof(ActiveSealsRootNodeHash));
     }
     if (LegacyTriumphsRootNodeHash != other.LegacyTriumphsRootNodeHash)
     {
         LegacyTriumphsRootNodeHash = other.LegacyTriumphsRootNodeHash;
         OnPropertyChanged(nameof(LegacyTriumphsRootNodeHash));
     }
     if (LegacySealsRootNodeHash != other.LegacySealsRootNodeHash)
     {
         LegacySealsRootNodeHash = other.LegacySealsRootNodeHash;
         OnPropertyChanged(nameof(LegacySealsRootNodeHash));
     }
     if (MedalsRootNodeHash != other.MedalsRootNodeHash)
     {
         MedalsRootNodeHash = other.MedalsRootNodeHash;
         OnPropertyChanged(nameof(MedalsRootNodeHash));
     }
     if (ExoticCatalystsRootNodeHash != other.ExoticCatalystsRootNodeHash)
     {
         ExoticCatalystsRootNodeHash = other.ExoticCatalystsRootNodeHash;
         OnPropertyChanged(nameof(ExoticCatalystsRootNodeHash));
     }
     if (LoreRootNodeHash != other.LoreRootNodeHash)
     {
         LoreRootNodeHash = other.LoreRootNodeHash;
         OnPropertyChanged(nameof(LoreRootNodeHash));
     }
     if (!CurrentRankProgressionHashes.DeepEqualsListNaive(other.CurrentRankProgressionHashes))
     {
         CurrentRankProgressionHashes = other.CurrentRankProgressionHashes;
         OnPropertyChanged(nameof(CurrentRankProgressionHashes));
     }
     if (!InsertPlugFreeProtectedPlugItemHashes.DeepEqualsListNaive(other.InsertPlugFreeProtectedPlugItemHashes))
     {
         InsertPlugFreeProtectedPlugItemHashes = other.InsertPlugFreeProtectedPlugItemHashes;
         OnPropertyChanged(nameof(InsertPlugFreeProtectedPlugItemHashes));
     }
     if (!InsertPlugFreeBlockedSocketTypeHashes.DeepEqualsListNaive(other.InsertPlugFreeBlockedSocketTypeHashes))
     {
         InsertPlugFreeBlockedSocketTypeHashes = other.InsertPlugFreeBlockedSocketTypeHashes;
         OnPropertyChanged(nameof(InsertPlugFreeBlockedSocketTypeHashes));
     }
     if (UndiscoveredCollectibleImage != other.UndiscoveredCollectibleImage)
     {
         UndiscoveredCollectibleImage = other.UndiscoveredCollectibleImage;
         OnPropertyChanged(nameof(UndiscoveredCollectibleImage));
     }
     if (AmmoTypeHeavyIcon != other.AmmoTypeHeavyIcon)
     {
         AmmoTypeHeavyIcon = other.AmmoTypeHeavyIcon;
         OnPropertyChanged(nameof(AmmoTypeHeavyIcon));
     }
     if (AmmoTypeSpecialIcon != other.AmmoTypeSpecialIcon)
     {
         AmmoTypeSpecialIcon = other.AmmoTypeSpecialIcon;
         OnPropertyChanged(nameof(AmmoTypeSpecialIcon));
     }
     if (AmmoTypePrimaryIcon != other.AmmoTypePrimaryIcon)
     {
         AmmoTypePrimaryIcon = other.AmmoTypePrimaryIcon;
         OnPropertyChanged(nameof(AmmoTypePrimaryIcon));
     }
     if (CurrentSeasonalArtifactHash != other.CurrentSeasonalArtifactHash)
     {
         CurrentSeasonalArtifactHash = other.CurrentSeasonalArtifactHash;
         OnPropertyChanged(nameof(CurrentSeasonalArtifactHash));
     }
     if (CurrentSeasonHash != other.CurrentSeasonHash)
     {
         CurrentSeasonHash = other.CurrentSeasonHash;
         OnPropertyChanged(nameof(CurrentSeasonHash));
     }
     if (SeasonalChallengesPresentationNodeHash != other.SeasonalChallengesPresentationNodeHash)
     {
         SeasonalChallengesPresentationNodeHash = other.SeasonalChallengesPresentationNodeHash;
         OnPropertyChanged(nameof(SeasonalChallengesPresentationNodeHash));
     }
     if (!FutureSeasonHashes.DeepEqualsListNaive(other.FutureSeasonHashes))
     {
         FutureSeasonHashes = other.FutureSeasonHashes;
         OnPropertyChanged(nameof(FutureSeasonHashes));
     }
     if (!PastSeasonHashes.DeepEqualsListNaive(other.PastSeasonHashes))
     {
         PastSeasonHashes = other.PastSeasonHashes;
         OnPropertyChanged(nameof(PastSeasonHashes));
     }
 }