示例#1
0
        public bool Equals(DestinyPlugSetDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     ReusablePlugItems == input.ReusablePlugItems ||
                     (ReusablePlugItems != null && ReusablePlugItems.SequenceEqual(input.ReusablePlugItems))
                 ) &&
                 (
                     IsFakePlugSet == input.IsFakePlugSet ||
                     (IsFakePlugSet != null && IsFakePlugSet.Equals(input.IsFakePlugSet))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
 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);
 }
示例#3
0
 public bool DeepEquals(DestinyPlugSetDefinition other)
 {
     return(other != null &&
            (DisplayProperties != null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties == null) &&
            IsFakePlugSet == other.IsFakePlugSet &&
            ReusablePlugItems.DeepEqualsReadOnlyCollections(other.ReusablePlugItems) &&
            Blacklisted == other.Blacklisted &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
示例#4
0
 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));
     }
 }
示例#5
0
 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 bool DeepEquals(InventoryItemSocketsBlockSocketEntry other)
 {
     return(other != null &&
            DefaultVisible == other.DefaultVisible &&
            HidePerksInItemTooltip == other.HidePerksInItemTooltip &&
            OverridesUiAppearance == other.OverridesUiAppearance &&
            PlugSources == other.PlugSources &&
            PreventInitializationOnVendorPurchase == other.PreventInitializationOnVendorPurchase &&
            PreventInitializationWhenVersioning == other.PreventInitializationWhenVersioning &&
            ReusablePlugItems.DeepEqualsReadOnlyCollections(other.ReusablePlugItems) &&
            ReusablePlugSet.DeepEquals(other.ReusablePlugSet) &&
            SingleInitialItem.DeepEquals(other.SingleInitialItem) &&
            SocketType.DeepEquals(other.SocketType) &&
            RandomizedPlugSet.DeepEquals(other.RandomizedPlugSet));
 }
示例#7
0
        public bool Equals(DestinyItemSocketEntryDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     SocketTypeHash == input.SocketTypeHash ||
                     (SocketTypeHash.Equals(input.SocketTypeHash))
                     ) &&
                 (
                     SingleInitialItemHash == input.SingleInitialItemHash ||
                     (SingleInitialItemHash.Equals(input.SingleInitialItemHash))
                 ) &&
                 (
                     ReusablePlugItems == input.ReusablePlugItems ||
                     (ReusablePlugItems != null && ReusablePlugItems.SequenceEqual(input.ReusablePlugItems))
                 ) &&
                 (
                     PreventInitializationOnVendorPurchase == input.PreventInitializationOnVendorPurchase ||
                     (PreventInitializationOnVendorPurchase != null && PreventInitializationOnVendorPurchase.Equals(input.PreventInitializationOnVendorPurchase))
                 ) &&
                 (
                     HidePerksInItemTooltip == input.HidePerksInItemTooltip ||
                     (HidePerksInItemTooltip != null && HidePerksInItemTooltip.Equals(input.HidePerksInItemTooltip))
                 ) &&
                 (
                     PlugSources == input.PlugSources ||
                     (PlugSources != null && PlugSources.Equals(input.PlugSources))
                 ) &&
                 (
                     ReusablePlugSetHash == input.ReusablePlugSetHash ||
                     (ReusablePlugSetHash.Equals(input.ReusablePlugSetHash))
                 ) &&
                 (
                     RandomizedPlugSetHash == input.RandomizedPlugSetHash ||
                     (RandomizedPlugSetHash.Equals(input.RandomizedPlugSetHash))
                 ) &&
                 (
                     DefaultVisible == input.DefaultVisible ||
                     (DefaultVisible != null && DefaultVisible.Equals(input.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));
     }
 }