Exemple #1
0
        public bool Equals(DestinyItemPlugDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     InsertionRules == input.InsertionRules ||
                     (InsertionRules != null && InsertionRules.SequenceEqual(input.InsertionRules))
                     ) &&
                 (
                     PlugCategoryIdentifier == input.PlugCategoryIdentifier ||
                     (PlugCategoryIdentifier != null && PlugCategoryIdentifier.Equals(input.PlugCategoryIdentifier))
                 ) &&
                 (
                     PlugCategoryHash == input.PlugCategoryHash ||
                     (PlugCategoryHash.Equals(input.PlugCategoryHash))
                 ) &&
                 (
                     OnActionRecreateSelf == input.OnActionRecreateSelf ||
                     (OnActionRecreateSelf != null && OnActionRecreateSelf.Equals(input.OnActionRecreateSelf))
                 ) &&
                 (
                     InsertionMaterialRequirementHash == input.InsertionMaterialRequirementHash ||
                     (InsertionMaterialRequirementHash.Equals(input.InsertionMaterialRequirementHash))
                 ) &&
                 (
                     PreviewItemOverrideHash == input.PreviewItemOverrideHash ||
                     (PreviewItemOverrideHash.Equals(input.PreviewItemOverrideHash))
                 ) &&
                 (
                     EnabledMaterialRequirementHash == input.EnabledMaterialRequirementHash ||
                     (EnabledMaterialRequirementHash.Equals(input.EnabledMaterialRequirementHash))
                 ) &&
                 (
                     EnabledRules == input.EnabledRules ||
                     (EnabledRules != null && EnabledRules.SequenceEqual(input.EnabledRules))
                 ) &&
                 (
                     UiPlugLabel == input.UiPlugLabel ||
                     (UiPlugLabel != null && UiPlugLabel.Equals(input.UiPlugLabel))
                 ) &&
                 (
                     PlugStyle == input.PlugStyle ||
                     (PlugStyle != null && PlugStyle.Equals(input.PlugStyle))
                 ) &&
                 (
                     PlugAvailability == input.PlugAvailability ||
                     (PlugAvailability != null && PlugAvailability.Equals(input.PlugAvailability))
                 ) &&
                 (
                     AlternateUiPlugLabel == input.AlternateUiPlugLabel ||
                     (AlternateUiPlugLabel != null && AlternateUiPlugLabel.Equals(input.AlternateUiPlugLabel))
                 ) &&
                 (
                     AlternatePlugStyle == input.AlternatePlugStyle ||
                     (AlternatePlugStyle != null && AlternatePlugStyle.Equals(input.AlternatePlugStyle))
                 ) &&
                 (
                     IsDummyPlug == input.IsDummyPlug ||
                     (IsDummyPlug != null && IsDummyPlug.Equals(input.IsDummyPlug))
                 ) &&
                 (
                     ParentItemOverride == input.ParentItemOverride ||
                     (ParentItemOverride != null && ParentItemOverride.Equals(input.ParentItemOverride))
                 ) &&
                 (
                     EnergyCapacity == input.EnergyCapacity ||
                     (EnergyCapacity != null && EnergyCapacity.Equals(input.EnergyCapacity))
                 ) &&
                 (
                     EnergyCost == input.EnergyCost ||
                     (EnergyCost != null && EnergyCost.Equals(input.EnergyCost))
                 ));
        }
        public bool Equals(DestinyItemCategoryDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     Visible == input.Visible ||
                     (Visible != null && Visible.Equals(input.Visible))
                 ) &&
                 (
                     Deprecated == input.Deprecated ||
                     (Deprecated != null && Deprecated.Equals(input.Deprecated))
                 ) &&
                 (
                     ShortTitle == input.ShortTitle ||
                     (ShortTitle != null && ShortTitle.Equals(input.ShortTitle))
                 ) &&
                 (
                     ItemTypeRegex == input.ItemTypeRegex ||
                     (ItemTypeRegex != null && ItemTypeRegex.Equals(input.ItemTypeRegex))
                 ) &&
                 (
                     GrantDestinyBreakerType == input.GrantDestinyBreakerType ||
                     (GrantDestinyBreakerType != null && GrantDestinyBreakerType.Equals(input.GrantDestinyBreakerType))
                 ) &&
                 (
                     PlugCategoryIdentifier == input.PlugCategoryIdentifier ||
                     (PlugCategoryIdentifier != null && PlugCategoryIdentifier.Equals(input.PlugCategoryIdentifier))
                 ) &&
                 (
                     ItemTypeRegexNot == input.ItemTypeRegexNot ||
                     (ItemTypeRegexNot != null && ItemTypeRegexNot.Equals(input.ItemTypeRegexNot))
                 ) &&
                 (
                     OriginBucketIdentifier == input.OriginBucketIdentifier ||
                     (OriginBucketIdentifier != null && OriginBucketIdentifier.Equals(input.OriginBucketIdentifier))
                 ) &&
                 (
                     GrantDestinyItemType == input.GrantDestinyItemType ||
                     (GrantDestinyItemType != null && GrantDestinyItemType.Equals(input.GrantDestinyItemType))
                 ) &&
                 (
                     GrantDestinySubType == input.GrantDestinySubType ||
                     (GrantDestinySubType != null && GrantDestinySubType.Equals(input.GrantDestinySubType))
                 ) &&
                 (
                     GrantDestinyClass == input.GrantDestinyClass ||
                     (GrantDestinyClass != null && GrantDestinyClass.Equals(input.GrantDestinyClass))
                 ) &&
                 (
                     TraitId == input.TraitId ||
                     (TraitId != null && TraitId.Equals(input.TraitId))
                 ) &&
                 (
                     GroupedCategoryHashes == input.GroupedCategoryHashes ||
                     (GroupedCategoryHashes != null && GroupedCategoryHashes.SequenceEqual(input.GroupedCategoryHashes))
                 ) &&
                 (
                     ParentCategoryHashes == input.ParentCategoryHashes ||
                     (ParentCategoryHashes != null && ParentCategoryHashes.SequenceEqual(input.ParentCategoryHashes))
                 ) &&
                 (
                     GroupCategoryOnly == input.GroupCategoryOnly ||
                     (GroupCategoryOnly != null && GroupCategoryOnly.Equals(input.GroupCategoryOnly))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }