Esempio n. 1
0
        public bool Equals(DestinyMaterialRequirement input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ItemHash == input.ItemHash ||
                     (ItemHash.Equals(input.ItemHash))
                     ) &&
                 (
                     DeleteOnAction == input.DeleteOnAction ||
                     (DeleteOnAction != null && DeleteOnAction.Equals(input.DeleteOnAction))
                 ) &&
                 (
                     Count == input.Count ||
                     (Count.Equals(input.Count))
                 ) &&
                 (
                     OmitFromRequirements == input.OmitFromRequirements ||
                     (OmitFromRequirements != null && OmitFromRequirements.Equals(input.OmitFromRequirements))
                 ));
        }
Esempio n. 2
0
        public bool Equals(DestinyItemActionBlockDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     VerbName == input.VerbName ||
                     (VerbName != null && VerbName.Equals(input.VerbName))
                     ) &&
                 (
                     VerbDescription == input.VerbDescription ||
                     (VerbDescription != null && VerbDescription.Equals(input.VerbDescription))
                 ) &&
                 (
                     IsPositive == input.IsPositive ||
                     (IsPositive != null && IsPositive.Equals(input.IsPositive))
                 ) &&
                 (
                     OverlayScreenName == input.OverlayScreenName ||
                     (OverlayScreenName != null && OverlayScreenName.Equals(input.OverlayScreenName))
                 ) &&
                 (
                     OverlayIcon == input.OverlayIcon ||
                     (OverlayIcon != null && OverlayIcon.Equals(input.OverlayIcon))
                 ) &&
                 (
                     RequiredCooldownSeconds == input.RequiredCooldownSeconds ||
                     (RequiredCooldownSeconds.Equals(input.RequiredCooldownSeconds))
                 ) &&
                 (
                     RequiredItems == input.RequiredItems ||
                     (RequiredItems != null && RequiredItems.SequenceEqual(input.RequiredItems))
                 ) &&
                 (
                     ProgressionRewards == input.ProgressionRewards ||
                     (ProgressionRewards != null && ProgressionRewards.SequenceEqual(input.ProgressionRewards))
                 ) &&
                 (
                     ActionTypeLabel == input.ActionTypeLabel ||
                     (ActionTypeLabel != null && ActionTypeLabel.Equals(input.ActionTypeLabel))
                 ) &&
                 (
                     RequiredLocation == input.RequiredLocation ||
                     (RequiredLocation != null && RequiredLocation.Equals(input.RequiredLocation))
                 ) &&
                 (
                     RequiredCooldownHash == input.RequiredCooldownHash ||
                     (RequiredCooldownHash.Equals(input.RequiredCooldownHash))
                 ) &&
                 (
                     DeleteOnAction == input.DeleteOnAction ||
                     (DeleteOnAction != null && DeleteOnAction.Equals(input.DeleteOnAction))
                 ) &&
                 (
                     ConsumeEntireStack == input.ConsumeEntireStack ||
                     (ConsumeEntireStack != null && ConsumeEntireStack.Equals(input.ConsumeEntireStack))
                 ) &&
                 (
                     UseOnAcquire == input.UseOnAcquire ||
                     (UseOnAcquire != null && UseOnAcquire.Equals(input.UseOnAcquire))
                 ));
        }