public bool DeepEquals(DestinyActivityGraphNodeDefinition?other) { return(other is not null && NodeId == other.NodeId && (OverrideDisplay is not null ? OverrideDisplay.DeepEquals(other.OverrideDisplay) : other.OverrideDisplay is null) && (Position is not null ? Position.DeepEquals(other.Position) : other.Position is null) && FeaturingStates.DeepEqualsList(other.FeaturingStates) && Activities.DeepEqualsList(other.Activities) && States.DeepEqualsList(other.States)); }
public bool DeepEquals(ActivityGraphNode other) { return(other != null && Activities.DeepEqualsReadOnlyCollections(other.Activities) && FeaturingStates.DeepEqualsReadOnlyCollections(other.FeaturingStates) && NodeId == other.NodeId && OverrideDisplay.DeepEquals(other.OverrideDisplay) && Position.DeepEquals(other.Position) && States.DeepEqualsReadOnlyCollections(other.States) && UIActivityTypeOverrideHash == other.UIActivityTypeOverrideHash && UIStyleHash == other.UIStyleHash); }
public void Update(DestinyActivityGraphNodeDefinition?other) { if (other is null) { return; } if (NodeId != other.NodeId) { NodeId = other.NodeId; OnPropertyChanged(nameof(NodeId)); } if (!OverrideDisplay.DeepEquals(other.OverrideDisplay)) { OverrideDisplay.Update(other.OverrideDisplay); OnPropertyChanged(nameof(OverrideDisplay)); } if (!Position.DeepEquals(other.Position)) { Position.Update(other.Position); OnPropertyChanged(nameof(Position)); } if (!FeaturingStates.DeepEqualsList(other.FeaturingStates)) { FeaturingStates = other.FeaturingStates; OnPropertyChanged(nameof(FeaturingStates)); } if (!Activities.DeepEqualsList(other.Activities)) { Activities = other.Activities; OnPropertyChanged(nameof(Activities)); } if (!States.DeepEqualsList(other.States)) { States = other.States; OnPropertyChanged(nameof(States)); } }