Example #1
0
 public void Update(DestinyArtifactProfileScoped?other)
 {
     if (other is null)
     {
         return;
     }
     if (ArtifactHash != other.ArtifactHash)
     {
         ArtifactHash = other.ArtifactHash;
         OnPropertyChanged(nameof(ArtifactHash));
     }
     if (!PointProgression.DeepEquals(other.PointProgression))
     {
         PointProgression.Update(other.PointProgression);
         OnPropertyChanged(nameof(PointProgression));
     }
     if (PointsAcquired != other.PointsAcquired)
     {
         PointsAcquired = other.PointsAcquired;
         OnPropertyChanged(nameof(PointsAcquired));
     }
     if (!PowerBonusProgression.DeepEquals(other.PowerBonusProgression))
     {
         PowerBonusProgression.Update(other.PowerBonusProgression);
         OnPropertyChanged(nameof(PowerBonusProgression));
     }
     if (PowerBonus != other.PowerBonus)
     {
         PowerBonus = other.PowerBonus;
         OnPropertyChanged(nameof(PowerBonus));
     }
 }
Example #2
0
 public bool DeepEquals(DestinyArtifactProfileScoped?other)
 {
     return(other is not null &&
            ArtifactHash == other.ArtifactHash &&
            (PointProgression is not null ? PointProgression.DeepEquals(other.PointProgression) : other.PointProgression is null) &&
            PointsAcquired == other.PointsAcquired &&
            (PowerBonusProgression is not null ? PowerBonusProgression.DeepEquals(other.PowerBonusProgression) : other.PowerBonusProgression is null) &&
            PowerBonus == other.PowerBonus);
 }