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); }
public bool Equals(DestinySandboxPerkDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( PerkIdentifier == input.PerkIdentifier || (PerkIdentifier != null && PerkIdentifier.Equals(input.PerkIdentifier)) ) && ( IsDisplayable == input.IsDisplayable || (IsDisplayable != null && IsDisplayable.Equals(input.IsDisplayable)) ) && ( DamageType == input.DamageType || (DamageType != null && DamageType.Equals(input.DamageType)) ) && ( DamageTypeHash == input.DamageTypeHash || (DamageTypeHash.Equals(input.DamageTypeHash)) ) && ( PerkGroups == input.PerkGroups || (PerkGroups != null && PerkGroups.Equals(input.PerkGroups)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }