Exemple #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))
                 ));
        }
Exemple #2
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))
                 ));
        }