Exemple #1
0
 public bool DeepEquals(TalentGridNode other)
 {
     return(other != null &&
            NodeIndex == other.NodeIndex &&
            NodeHash == other.NodeHash &&
            Row == other.Row &&
            Column == other.Column &&
            PrerequisiteNodeIndexes.DeepEqualsReadOnlySimpleCollection(other.PrerequisiteNodeIndexes) &&
            BinaryPairNodeIndex == other.BinaryPairNodeIndex &&
            AutoUnlocks == other.AutoUnlocks &&
            LastStepRepeats == other.LastStepRepeats &&
            IsRandom == other.IsRandom &&
            RandomActivationRequirement.DeepEquals(other.RandomActivationRequirement) &&
            IsRandomRepurchasable == other.IsRandomRepurchasable &&
            Steps.DeepEqualsReadOnlyCollections(other.Steps) &&
            ExclusiveWithNodeHashes.DeepEqualsReadOnlySimpleCollection(other.ExclusiveWithNodeHashes) &&
            RandomStartProgressionBarAtProgression == other.RandomStartProgressionBarAtProgression &&
            LayoutIdentifier == other.LayoutIdentifier &&
            GroupHash == other.GroupHash &&
            Lore.DeepEquals(other.Lore) &&
            NodeStyleIdentifier == other.NodeStyleIdentifier &&
            IgnoreForCompletion == other.IgnoreForCompletion &&
            ExclusiveSetHash == other.ExclusiveSetHash &&
            GroupScopeIndex == other.GroupScopeIndex &&
            IsRealStepSelectionRandom == other.IsRealStepSelectionRandom &&
            OriginalNodeHash == other.OriginalNodeHash &&
            TalentNodeTypes == other.TalentNodeTypes);
 }
 public bool DeepEquals(DestinyTalentNodeDefinition?other)
 {
     return(other is not null &&
            NodeIndex == other.NodeIndex &&
            NodeHash == other.NodeHash &&
            Row == other.Row &&
            Column == other.Column &&
            PrerequisiteNodeIndexes.DeepEqualsListNaive(other.PrerequisiteNodeIndexes) &&
            BinaryPairNodeIndex == other.BinaryPairNodeIndex &&
            AutoUnlocks == other.AutoUnlocks &&
            LastStepRepeats == other.LastStepRepeats &&
            IsRandom == other.IsRandom &&
            (RandomActivationRequirement is not null ? RandomActivationRequirement.DeepEquals(other.RandomActivationRequirement) : other.RandomActivationRequirement is null) &&
            IsRandomRepurchasable == other.IsRandomRepurchasable &&
            Steps.DeepEqualsList(other.Steps) &&
            ExclusiveWithNodeHashes.DeepEqualsListNaive(other.ExclusiveWithNodeHashes) &&
            RandomStartProgressionBarAtProgression == other.RandomStartProgressionBarAtProgression &&
            LayoutIdentifier == other.LayoutIdentifier &&
            GroupHash == other.GroupHash &&
            LoreHash == other.LoreHash &&
            NodeStyleIdentifier == other.NodeStyleIdentifier &&
            IgnoreForCompletion == other.IgnoreForCompletion);
 }
        public bool Equals(DestinyTalentNodeDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     NodeIndex == input.NodeIndex ||
                     (NodeIndex.Equals(input.NodeIndex))
                     ) &&
                 (
                     NodeHash == input.NodeHash ||
                     (NodeHash.Equals(input.NodeHash))
                 ) &&
                 (
                     Row == input.Row ||
                     (Row.Equals(input.Row))
                 ) &&
                 (
                     Column == input.Column ||
                     (Column.Equals(input.Column))
                 ) &&
                 (
                     PrerequisiteNodeIndexes == input.PrerequisiteNodeIndexes ||
                     (PrerequisiteNodeIndexes != null && PrerequisiteNodeIndexes.SequenceEqual(input.PrerequisiteNodeIndexes))
                 ) &&
                 (
                     BinaryPairNodeIndex == input.BinaryPairNodeIndex ||
                     (BinaryPairNodeIndex.Equals(input.BinaryPairNodeIndex))
                 ) &&
                 (
                     AutoUnlocks == input.AutoUnlocks ||
                     (AutoUnlocks != null && AutoUnlocks.Equals(input.AutoUnlocks))
                 ) &&
                 (
                     LastStepRepeats == input.LastStepRepeats ||
                     (LastStepRepeats != null && LastStepRepeats.Equals(input.LastStepRepeats))
                 ) &&
                 (
                     IsRandom == input.IsRandom ||
                     (IsRandom != null && IsRandom.Equals(input.IsRandom))
                 ) &&
                 (
                     RandomActivationRequirement == input.RandomActivationRequirement ||
                     (RandomActivationRequirement != null && RandomActivationRequirement.Equals(input.RandomActivationRequirement))
                 ) &&
                 (
                     IsRandomRepurchasable == input.IsRandomRepurchasable ||
                     (IsRandomRepurchasable != null && IsRandomRepurchasable.Equals(input.IsRandomRepurchasable))
                 ) &&
                 (
                     Steps == input.Steps ||
                     (Steps != null && Steps.SequenceEqual(input.Steps))
                 ) &&
                 (
                     ExclusiveWithNodeHashes == input.ExclusiveWithNodeHashes ||
                     (ExclusiveWithNodeHashes != null && ExclusiveWithNodeHashes.SequenceEqual(input.ExclusiveWithNodeHashes))
                 ) &&
                 (
                     RandomStartProgressionBarAtProgression == input.RandomStartProgressionBarAtProgression ||
                     (RandomStartProgressionBarAtProgression.Equals(input.RandomStartProgressionBarAtProgression))
                 ) &&
                 (
                     LayoutIdentifier == input.LayoutIdentifier ||
                     (LayoutIdentifier != null && LayoutIdentifier.Equals(input.LayoutIdentifier))
                 ) &&
                 (
                     GroupHash == input.GroupHash ||
                     (GroupHash.Equals(input.GroupHash))
                 ) &&
                 (
                     LoreHash == input.LoreHash ||
                     (LoreHash.Equals(input.LoreHash))
                 ) &&
                 (
                     NodeStyleIdentifier == input.NodeStyleIdentifier ||
                     (NodeStyleIdentifier != null && NodeStyleIdentifier.Equals(input.NodeStyleIdentifier))
                 ) &&
                 (
                     IgnoreForCompletion == input.IgnoreForCompletion ||
                     (IgnoreForCompletion != null && IgnoreForCompletion.Equals(input.IgnoreForCompletion))
                 ));
        }
 public void Update(DestinyTalentNodeDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (NodeIndex != other.NodeIndex)
     {
         NodeIndex = other.NodeIndex;
         OnPropertyChanged(nameof(NodeIndex));
     }
     if (NodeHash != other.NodeHash)
     {
         NodeHash = other.NodeHash;
         OnPropertyChanged(nameof(NodeHash));
     }
     if (Row != other.Row)
     {
         Row = other.Row;
         OnPropertyChanged(nameof(Row));
     }
     if (Column != other.Column)
     {
         Column = other.Column;
         OnPropertyChanged(nameof(Column));
     }
     if (!PrerequisiteNodeIndexes.DeepEqualsListNaive(other.PrerequisiteNodeIndexes))
     {
         PrerequisiteNodeIndexes = other.PrerequisiteNodeIndexes;
         OnPropertyChanged(nameof(PrerequisiteNodeIndexes));
     }
     if (BinaryPairNodeIndex != other.BinaryPairNodeIndex)
     {
         BinaryPairNodeIndex = other.BinaryPairNodeIndex;
         OnPropertyChanged(nameof(BinaryPairNodeIndex));
     }
     if (AutoUnlocks != other.AutoUnlocks)
     {
         AutoUnlocks = other.AutoUnlocks;
         OnPropertyChanged(nameof(AutoUnlocks));
     }
     if (LastStepRepeats != other.LastStepRepeats)
     {
         LastStepRepeats = other.LastStepRepeats;
         OnPropertyChanged(nameof(LastStepRepeats));
     }
     if (IsRandom != other.IsRandom)
     {
         IsRandom = other.IsRandom;
         OnPropertyChanged(nameof(IsRandom));
     }
     if (!RandomActivationRequirement.DeepEquals(other.RandomActivationRequirement))
     {
         RandomActivationRequirement.Update(other.RandomActivationRequirement);
         OnPropertyChanged(nameof(RandomActivationRequirement));
     }
     if (IsRandomRepurchasable != other.IsRandomRepurchasable)
     {
         IsRandomRepurchasable = other.IsRandomRepurchasable;
         OnPropertyChanged(nameof(IsRandomRepurchasable));
     }
     if (!Steps.DeepEqualsList(other.Steps))
     {
         Steps = other.Steps;
         OnPropertyChanged(nameof(Steps));
     }
     if (!ExclusiveWithNodeHashes.DeepEqualsListNaive(other.ExclusiveWithNodeHashes))
     {
         ExclusiveWithNodeHashes = other.ExclusiveWithNodeHashes;
         OnPropertyChanged(nameof(ExclusiveWithNodeHashes));
     }
     if (RandomStartProgressionBarAtProgression != other.RandomStartProgressionBarAtProgression)
     {
         RandomStartProgressionBarAtProgression = other.RandomStartProgressionBarAtProgression;
         OnPropertyChanged(nameof(RandomStartProgressionBarAtProgression));
     }
     if (LayoutIdentifier != other.LayoutIdentifier)
     {
         LayoutIdentifier = other.LayoutIdentifier;
         OnPropertyChanged(nameof(LayoutIdentifier));
     }
     if (GroupHash != other.GroupHash)
     {
         GroupHash = other.GroupHash;
         OnPropertyChanged(nameof(GroupHash));
     }
     if (LoreHash != other.LoreHash)
     {
         LoreHash = other.LoreHash;
         OnPropertyChanged(nameof(LoreHash));
     }
     if (NodeStyleIdentifier != other.NodeStyleIdentifier)
     {
         NodeStyleIdentifier = other.NodeStyleIdentifier;
         OnPropertyChanged(nameof(NodeStyleIdentifier));
     }
     if (IgnoreForCompletion != other.IgnoreForCompletion)
     {
         IgnoreForCompletion = other.IgnoreForCompletion;
         OnPropertyChanged(nameof(IgnoreForCompletion));
     }
 }