Beispiel #1
0
 public bool DeepEquals(DestinyActivityLoadoutRequirement?other)
 {
     return(other is not null &&
            EquipmentSlotHash == other.EquipmentSlotHash &&
            AllowedEquippedItemHashes.DeepEqualsListNaive(other.AllowedEquippedItemHashes) &&
            AllowedWeaponSubTypes.DeepEqualsListNaive(other.AllowedWeaponSubTypes));
 }
Beispiel #2
0
 public void Update(DestinyActivityLoadoutRequirement?other)
 {
     if (other is null)
     {
         return;
     }
     if (EquipmentSlotHash != other.EquipmentSlotHash)
     {
         EquipmentSlotHash = other.EquipmentSlotHash;
         OnPropertyChanged(nameof(EquipmentSlotHash));
     }
     if (!AllowedEquippedItemHashes.DeepEqualsListNaive(other.AllowedEquippedItemHashes))
     {
         AllowedEquippedItemHashes = other.AllowedEquippedItemHashes;
         OnPropertyChanged(nameof(AllowedEquippedItemHashes));
     }
     if (!AllowedWeaponSubTypes.DeepEqualsListNaive(other.AllowedWeaponSubTypes))
     {
         AllowedWeaponSubTypes = other.AllowedWeaponSubTypes;
         OnPropertyChanged(nameof(AllowedWeaponSubTypes));
     }
 }