示例#1
0
 public bool DeepEquals(DestinyEquipmentSlotDefinition?other)
 {
     return(other is not null &&
            (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) &&
            EquipmentCategoryHash == other.EquipmentCategoryHash &&
            BucketTypeHash == other.BucketTypeHash &&
            ApplyCustomArtDyes == other.ApplyCustomArtDyes &&
            ArtDyeChannels.DeepEqualsList(other.ArtDyeChannels) &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
 public bool DeepEquals(DestinyEquipmentSlotDefinition other)
 {
     return(other != null &&
            ApplyCustomArtDyes == other.ApplyCustomArtDyes &&
            DisplayProperties.DeepEquals(other.DisplayProperties) &&
            ArtDyeChannels.DeepEqualsReadOnlyCollections(other.ArtDyeChannels) &&
            BucketType.DeepEquals(other.BucketType) &&
            EquipmentCategoryHash == other.EquipmentCategoryHash &&
            Blacklisted == other.Blacklisted &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
示例#3
0
 public void Update(DestinyEquipmentSlotDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (!DisplayProperties.DeepEquals(other.DisplayProperties))
     {
         DisplayProperties.Update(other.DisplayProperties);
         OnPropertyChanged(nameof(DisplayProperties));
     }
     if (EquipmentCategoryHash != other.EquipmentCategoryHash)
     {
         EquipmentCategoryHash = other.EquipmentCategoryHash;
         OnPropertyChanged(nameof(EquipmentCategoryHash));
     }
     if (BucketTypeHash != other.BucketTypeHash)
     {
         BucketTypeHash = other.BucketTypeHash;
         OnPropertyChanged(nameof(BucketTypeHash));
     }
     if (ApplyCustomArtDyes != other.ApplyCustomArtDyes)
     {
         ApplyCustomArtDyes = other.ApplyCustomArtDyes;
         OnPropertyChanged(nameof(ApplyCustomArtDyes));
     }
     if (!ArtDyeChannels.DeepEqualsList(other.ArtDyeChannels))
     {
         ArtDyeChannels = other.ArtDyeChannels;
         OnPropertyChanged(nameof(ArtDyeChannels));
     }
     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));
     }
 }
        public bool Equals(DestinyEquipmentSlotDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     EquipmentCategoryHash == input.EquipmentCategoryHash ||
                     (EquipmentCategoryHash.Equals(input.EquipmentCategoryHash))
                 ) &&
                 (
                     BucketTypeHash == input.BucketTypeHash ||
                     (BucketTypeHash.Equals(input.BucketTypeHash))
                 ) &&
                 (
                     ApplyCustomArtDyes == input.ApplyCustomArtDyes ||
                     (ApplyCustomArtDyes != null && ApplyCustomArtDyes.Equals(input.ApplyCustomArtDyes))
                 ) &&
                 (
                     ArtDyeChannels == input.ArtDyeChannels ||
                     (ArtDyeChannels != null && ArtDyeChannels.SequenceEqual(input.ArtDyeChannels))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }