public bool DeepEquals(DestinySocketTypeDefinition?other)
 {
     return(other is not null &&
            (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) &&
            (InsertAction is not null ? InsertAction.DeepEquals(other.InsertAction) : other.InsertAction is null) &&
            PlugWhitelist.DeepEqualsList(other.PlugWhitelist) &&
            SocketCategoryHash == other.SocketCategoryHash &&
            Visibility == other.Visibility &&
            AlwaysRandomizeSockets == other.AlwaysRandomizeSockets &&
            IsPreviewEnabled == other.IsPreviewEnabled &&
            HideDuplicateReusablePlugs == other.HideDuplicateReusablePlugs &&
            OverridesUiAppearance == other.OverridesUiAppearance &&
            AvoidDuplicatesOnInitialization == other.AvoidDuplicatesOnInitialization &&
            CurrencyScalars.DeepEqualsList(other.CurrencyScalars) &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
Exemple #2
0
        public bool Equals(DestinySocketTypeDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     InsertAction == input.InsertAction ||
                     (InsertAction != null && InsertAction.Equals(input.InsertAction))
                 ) &&
                 (
                     PlugWhitelist == input.PlugWhitelist ||
                     (PlugWhitelist != null && PlugWhitelist.SequenceEqual(input.PlugWhitelist))
                 ) &&
                 (
                     SocketCategoryHash == input.SocketCategoryHash ||
                     (SocketCategoryHash.Equals(input.SocketCategoryHash))
                 ) &&
                 (
                     Visibility == input.Visibility ||
                     (Visibility != null && Visibility.Equals(input.Visibility))
                 ) &&
                 (
                     AlwaysRandomizeSockets == input.AlwaysRandomizeSockets ||
                     (AlwaysRandomizeSockets != null && AlwaysRandomizeSockets.Equals(input.AlwaysRandomizeSockets))
                 ) &&
                 (
                     IsPreviewEnabled == input.IsPreviewEnabled ||
                     (IsPreviewEnabled != null && IsPreviewEnabled.Equals(input.IsPreviewEnabled))
                 ) &&
                 (
                     HideDuplicateReusablePlugs == input.HideDuplicateReusablePlugs ||
                     (HideDuplicateReusablePlugs != null && HideDuplicateReusablePlugs.Equals(input.HideDuplicateReusablePlugs))
                 ) &&
                 (
                     OverridesUiAppearance == input.OverridesUiAppearance ||
                     (OverridesUiAppearance != null && OverridesUiAppearance.Equals(input.OverridesUiAppearance))
                 ) &&
                 (
                     AvoidDuplicatesOnInitialization == input.AvoidDuplicatesOnInitialization ||
                     (AvoidDuplicatesOnInitialization != null && AvoidDuplicatesOnInitialization.Equals(input.AvoidDuplicatesOnInitialization))
                 ) &&
                 (
                     CurrencyScalars == input.CurrencyScalars ||
                     (CurrencyScalars != null && CurrencyScalars.SequenceEqual(input.CurrencyScalars))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
 public void Update(DestinySocketTypeDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (!DisplayProperties.DeepEquals(other.DisplayProperties))
     {
         DisplayProperties.Update(other.DisplayProperties);
         OnPropertyChanged(nameof(DisplayProperties));
     }
     if (!InsertAction.DeepEquals(other.InsertAction))
     {
         InsertAction.Update(other.InsertAction);
         OnPropertyChanged(nameof(InsertAction));
     }
     if (!PlugWhitelist.DeepEqualsList(other.PlugWhitelist))
     {
         PlugWhitelist = other.PlugWhitelist;
         OnPropertyChanged(nameof(PlugWhitelist));
     }
     if (SocketCategoryHash != other.SocketCategoryHash)
     {
         SocketCategoryHash = other.SocketCategoryHash;
         OnPropertyChanged(nameof(SocketCategoryHash));
     }
     if (Visibility != other.Visibility)
     {
         Visibility = other.Visibility;
         OnPropertyChanged(nameof(Visibility));
     }
     if (AlwaysRandomizeSockets != other.AlwaysRandomizeSockets)
     {
         AlwaysRandomizeSockets = other.AlwaysRandomizeSockets;
         OnPropertyChanged(nameof(AlwaysRandomizeSockets));
     }
     if (IsPreviewEnabled != other.IsPreviewEnabled)
     {
         IsPreviewEnabled = other.IsPreviewEnabled;
         OnPropertyChanged(nameof(IsPreviewEnabled));
     }
     if (HideDuplicateReusablePlugs != other.HideDuplicateReusablePlugs)
     {
         HideDuplicateReusablePlugs = other.HideDuplicateReusablePlugs;
         OnPropertyChanged(nameof(HideDuplicateReusablePlugs));
     }
     if (OverridesUiAppearance != other.OverridesUiAppearance)
     {
         OverridesUiAppearance = other.OverridesUiAppearance;
         OnPropertyChanged(nameof(OverridesUiAppearance));
     }
     if (AvoidDuplicatesOnInitialization != other.AvoidDuplicatesOnInitialization)
     {
         AvoidDuplicatesOnInitialization = other.AvoidDuplicatesOnInitialization;
         OnPropertyChanged(nameof(AvoidDuplicatesOnInitialization));
     }
     if (!CurrencyScalars.DeepEqualsList(other.CurrencyScalars))
     {
         CurrencyScalars = other.CurrencyScalars;
         OnPropertyChanged(nameof(CurrencyScalars));
     }
     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));
     }
 }