public bool DeepEquals(DestinyPlugSetDefinition?other) { return(other is not null && (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) && ReusablePlugItems.DeepEqualsList(other.ReusablePlugItems) && IsFakePlugSet == other.IsFakePlugSet && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public void Update(DestinyItemSocketEntryDefinition?other) { if (other is null) { return; } if (SocketTypeHash != other.SocketTypeHash) { SocketTypeHash = other.SocketTypeHash; OnPropertyChanged(nameof(SocketTypeHash)); } if (SingleInitialItemHash != other.SingleInitialItemHash) { SingleInitialItemHash = other.SingleInitialItemHash; OnPropertyChanged(nameof(SingleInitialItemHash)); } if (!ReusablePlugItems.DeepEqualsList(other.ReusablePlugItems)) { ReusablePlugItems = other.ReusablePlugItems; OnPropertyChanged(nameof(ReusablePlugItems)); } if (PreventInitializationOnVendorPurchase != other.PreventInitializationOnVendorPurchase) { PreventInitializationOnVendorPurchase = other.PreventInitializationOnVendorPurchase; OnPropertyChanged(nameof(PreventInitializationOnVendorPurchase)); } if (HidePerksInItemTooltip != other.HidePerksInItemTooltip) { HidePerksInItemTooltip = other.HidePerksInItemTooltip; OnPropertyChanged(nameof(HidePerksInItemTooltip)); } if (PlugSources != other.PlugSources) { PlugSources = other.PlugSources; OnPropertyChanged(nameof(PlugSources)); } if (ReusablePlugSetHash != other.ReusablePlugSetHash) { ReusablePlugSetHash = other.ReusablePlugSetHash; OnPropertyChanged(nameof(ReusablePlugSetHash)); } if (RandomizedPlugSetHash != other.RandomizedPlugSetHash) { RandomizedPlugSetHash = other.RandomizedPlugSetHash; OnPropertyChanged(nameof(RandomizedPlugSetHash)); } if (DefaultVisible != other.DefaultVisible) { DefaultVisible = other.DefaultVisible; OnPropertyChanged(nameof(DefaultVisible)); } }
public bool DeepEquals(DestinyItemSocketEntryDefinition?other) { return(other is not null && SocketTypeHash == other.SocketTypeHash && SingleInitialItemHash == other.SingleInitialItemHash && ReusablePlugItems.DeepEqualsList(other.ReusablePlugItems) && PreventInitializationOnVendorPurchase == other.PreventInitializationOnVendorPurchase && HidePerksInItemTooltip == other.HidePerksInItemTooltip && PlugSources == other.PlugSources && ReusablePlugSetHash == other.ReusablePlugSetHash && RandomizedPlugSetHash == other.RandomizedPlugSetHash && DefaultVisible == other.DefaultVisible); }
public void Update(DestinyPlugSetDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (!ReusablePlugItems.DeepEqualsList(other.ReusablePlugItems)) { ReusablePlugItems = other.ReusablePlugItems; OnPropertyChanged(nameof(ReusablePlugItems)); } if (IsFakePlugSet != other.IsFakePlugSet) { IsFakePlugSet = other.IsFakePlugSet; OnPropertyChanged(nameof(IsFakePlugSet)); } 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)); } }