public void Update(DestinySandboxPerkDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (PerkIdentifier != other.PerkIdentifier) { PerkIdentifier = other.PerkIdentifier; OnPropertyChanged(nameof(PerkIdentifier)); } if (IsDisplayable != other.IsDisplayable) { IsDisplayable = other.IsDisplayable; OnPropertyChanged(nameof(IsDisplayable)); } if (DamageType != other.DamageType) { DamageType = other.DamageType; OnPropertyChanged(nameof(DamageType)); } if (DamageTypeHash != other.DamageTypeHash) { DamageTypeHash = other.DamageTypeHash; OnPropertyChanged(nameof(DamageTypeHash)); } if (!PerkGroups.DeepEquals(other.PerkGroups)) { PerkGroups.Update(other.PerkGroups); OnPropertyChanged(nameof(PerkGroups)); } if (Hash != other.Hash) { Hash = other.Hash; OnPropertyChanged(nameof(Hash)); } if (Index != other.Index) { Index = other.Index; OnPropertyChanged(nameof(Index)); } if (Redacted != other.Redacted) { Redacted = other.Redacted; OnPropertyChanged(nameof(Redacted)); } }
public bool DeepEquals(DestinySandboxPerkDefinition?other) { return(other is not null && (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) && PerkIdentifier == other.PerkIdentifier && IsDisplayable == other.IsDisplayable && DamageType == other.DamageType && DamageTypeHash == other.DamageTypeHash && (PerkGroups is not null ? PerkGroups.DeepEquals(other.PerkGroups) : other.PerkGroups is null) && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public bool DeepEquals(DestinySandboxPerkDefinition other) { return(other != null && DisplayProperties.DeepEquals(other.DisplayProperties) && DamageTypeEnumValue == other.DamageTypeEnumValue && DamageType.DeepEquals(other.DamageType) && IsDisplayable == other.IsDisplayable && PerkIdentifier == other.PerkIdentifier && PerkGroups.DeepEquals(other.PerkGroups) && Blacklisted == other.Blacklisted && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }