Exemplo n.º 1
0
 public bool DeepEquals(DestinyItemActionBlockDefinition?other)
 {
     return(other is not null &&
            VerbName == other.VerbName &&
            VerbDescription == other.VerbDescription &&
            IsPositive == other.IsPositive &&
            OverlayScreenName == other.OverlayScreenName &&
            OverlayIcon == other.OverlayIcon &&
            RequiredCooldownSeconds == other.RequiredCooldownSeconds &&
            RequiredItems.DeepEqualsList(other.RequiredItems) &&
            ProgressionRewards.DeepEqualsList(other.ProgressionRewards) &&
            ActionTypeLabel == other.ActionTypeLabel &&
            RequiredLocation == other.RequiredLocation &&
            RequiredCooldownHash == other.RequiredCooldownHash &&
            DeleteOnAction == other.DeleteOnAction &&
            ConsumeEntireStack == other.ConsumeEntireStack &&
            UseOnAcquire == other.UseOnAcquire);
 }
Exemplo n.º 2
0
 public bool DeepEquals(InventoryItemAction other)
 {
     return(other != null &&
            OverlayScreenName == other.OverlayScreenName &&
            OverlayIcon == other.OverlayIcon &&
            ActionTypeLabel == other.ActionTypeLabel &&
            ConsumeEntireStack == other.ConsumeEntireStack &&
            DeleteOnAction == other.DeleteOnAction &&
            IsPositive == other.IsPositive &&
            ProgressionRewards.DeepEqualsReadOnlyCollections(other.ProgressionRewards) &&
            RequiredCooldownHash == other.RequiredCooldownHash &&
            RequiredCooldownSeconds == other.RequiredCooldownSeconds &&
            RequiredLocation == other.RequiredLocation &&
            RequiredItems.DeepEqualsReadOnlyCollections(other.RequiredItems) &&
            UseOnAcquire == other.UseOnAcquire &&
            VerbDescription == other.VerbDescription &&
            VerbName == other.VerbName &&
            RewardItemHash == other.RewardItemHash &&
            RewardSheet.DeepEquals(other.RewardSheet) &&
            RewardSiteHash == other.RewardSiteHash);
 }
Exemplo n.º 3
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))
                 ));
        }
Exemplo n.º 4
0
 public void Update(DestinyItemActionBlockDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (VerbName != other.VerbName)
     {
         VerbName = other.VerbName;
         OnPropertyChanged(nameof(VerbName));
     }
     if (VerbDescription != other.VerbDescription)
     {
         VerbDescription = other.VerbDescription;
         OnPropertyChanged(nameof(VerbDescription));
     }
     if (IsPositive != other.IsPositive)
     {
         IsPositive = other.IsPositive;
         OnPropertyChanged(nameof(IsPositive));
     }
     if (OverlayScreenName != other.OverlayScreenName)
     {
         OverlayScreenName = other.OverlayScreenName;
         OnPropertyChanged(nameof(OverlayScreenName));
     }
     if (OverlayIcon != other.OverlayIcon)
     {
         OverlayIcon = other.OverlayIcon;
         OnPropertyChanged(nameof(OverlayIcon));
     }
     if (RequiredCooldownSeconds != other.RequiredCooldownSeconds)
     {
         RequiredCooldownSeconds = other.RequiredCooldownSeconds;
         OnPropertyChanged(nameof(RequiredCooldownSeconds));
     }
     if (!RequiredItems.DeepEqualsList(other.RequiredItems))
     {
         RequiredItems = other.RequiredItems;
         OnPropertyChanged(nameof(RequiredItems));
     }
     if (!ProgressionRewards.DeepEqualsList(other.ProgressionRewards))
     {
         ProgressionRewards = other.ProgressionRewards;
         OnPropertyChanged(nameof(ProgressionRewards));
     }
     if (ActionTypeLabel != other.ActionTypeLabel)
     {
         ActionTypeLabel = other.ActionTypeLabel;
         OnPropertyChanged(nameof(ActionTypeLabel));
     }
     if (RequiredLocation != other.RequiredLocation)
     {
         RequiredLocation = other.RequiredLocation;
         OnPropertyChanged(nameof(RequiredLocation));
     }
     if (RequiredCooldownHash != other.RequiredCooldownHash)
     {
         RequiredCooldownHash = other.RequiredCooldownHash;
         OnPropertyChanged(nameof(RequiredCooldownHash));
     }
     if (DeleteOnAction != other.DeleteOnAction)
     {
         DeleteOnAction = other.DeleteOnAction;
         OnPropertyChanged(nameof(DeleteOnAction));
     }
     if (ConsumeEntireStack != other.ConsumeEntireStack)
     {
         ConsumeEntireStack = other.ConsumeEntireStack;
         OnPropertyChanged(nameof(ConsumeEntireStack));
     }
     if (UseOnAcquire != other.UseOnAcquire)
     {
         UseOnAcquire = other.UseOnAcquire;
         OnPropertyChanged(nameof(UseOnAcquire));
     }
 }