예제 #1
0
        public bool Equals(DestinyActivityGraphNodeDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     NodeId == input.NodeId ||
                     (NodeId.Equals(input.NodeId))
                     ) &&
                 (
                     OverrideDisplay == input.OverrideDisplay ||
                     (OverrideDisplay != null && OverrideDisplay.Equals(input.OverrideDisplay))
                 ) &&
                 (
                     Position == input.Position ||
                     (Position != null && Position.Equals(input.Position))
                 ) &&
                 (
                     FeaturingStates == input.FeaturingStates ||
                     (FeaturingStates != null && FeaturingStates.SequenceEqual(input.FeaturingStates))
                 ) &&
                 (
                     Activities == input.Activities ||
                     (Activities != null && Activities.SequenceEqual(input.Activities))
                 ) &&
                 (
                     States == input.States ||
                     (States != null && States.SequenceEqual(input.States))
                 ));
        }
예제 #2
0
 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);
 }
예제 #4
0
 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));
     }
 }