public bool Equals(DestinyCharacterCustomization input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Personality == input.Personality ||
                     (Personality.Equals(input.Personality))
                     ) &&
                 (
                     Face == input.Face ||
                     (Face.Equals(input.Face))
                 ) &&
                 (
                     SkinColor == input.SkinColor ||
                     (SkinColor.Equals(input.SkinColor))
                 ) &&
                 (
                     LipColor == input.LipColor ||
                     (LipColor.Equals(input.LipColor))
                 ) &&
                 (
                     EyeColor == input.EyeColor ||
                     (EyeColor.Equals(input.EyeColor))
                 ) &&
                 (
                     HairColors == input.HairColors ||
                     (HairColors != null && HairColors.SequenceEqual(input.HairColors))
                 ) &&
                 (
                     FeatureColors == input.FeatureColors ||
                     (FeatureColors != null && FeatureColors.SequenceEqual(input.FeatureColors))
                 ) &&
                 (
                     DecalColor == input.DecalColor ||
                     (DecalColor.Equals(input.DecalColor))
                 ) &&
                 (
                     WearHelmet == input.WearHelmet ||
                     (WearHelmet != null && WearHelmet.Equals(input.WearHelmet))
                 ) &&
                 (
                     HairIndex == input.HairIndex ||
                     (HairIndex.Equals(input.HairIndex))
                 ) &&
                 (
                     FeatureIndex == input.FeatureIndex ||
                     (FeatureIndex.Equals(input.FeatureIndex))
                 ) &&
                 (
                     DecalIndex == input.DecalIndex ||
                     (DecalIndex.Equals(input.DecalIndex))
                 ));
        }
Exemplo n.º 2
0
 public bool DeepEquals(DestinyCharacterCustomization?other)
 {
     return(other is not null &&
            Personality == other.Personality &&
            Face == other.Face &&
            SkinColor == other.SkinColor &&
            LipColor == other.LipColor &&
            EyeColor == other.EyeColor &&
            HairColors.DeepEqualsListNaive(other.HairColors) &&
            FeatureColors.DeepEqualsListNaive(other.FeatureColors) &&
            DecalColor == other.DecalColor &&
            WearHelmet == other.WearHelmet &&
            HairIndex == other.HairIndex &&
            FeatureIndex == other.FeatureIndex &&
            DecalIndex == other.DecalIndex);
 }
Exemplo n.º 3
0
 public void Update(DestinyCharacterCustomization?other)
 {
     if (other is null)
     {
         return;
     }
     if (Personality != other.Personality)
     {
         Personality = other.Personality;
         OnPropertyChanged(nameof(Personality));
     }
     if (Face != other.Face)
     {
         Face = other.Face;
         OnPropertyChanged(nameof(Face));
     }
     if (SkinColor != other.SkinColor)
     {
         SkinColor = other.SkinColor;
         OnPropertyChanged(nameof(SkinColor));
     }
     if (LipColor != other.LipColor)
     {
         LipColor = other.LipColor;
         OnPropertyChanged(nameof(LipColor));
     }
     if (EyeColor != other.EyeColor)
     {
         EyeColor = other.EyeColor;
         OnPropertyChanged(nameof(EyeColor));
     }
     if (!HairColors.DeepEqualsListNaive(other.HairColors))
     {
         HairColors = other.HairColors;
         OnPropertyChanged(nameof(HairColors));
     }
     if (!FeatureColors.DeepEqualsListNaive(other.FeatureColors))
     {
         FeatureColors = other.FeatureColors;
         OnPropertyChanged(nameof(FeatureColors));
     }
     if (DecalColor != other.DecalColor)
     {
         DecalColor = other.DecalColor;
         OnPropertyChanged(nameof(DecalColor));
     }
     if (WearHelmet != other.WearHelmet)
     {
         WearHelmet = other.WearHelmet;
         OnPropertyChanged(nameof(WearHelmet));
     }
     if (HairIndex != other.HairIndex)
     {
         HairIndex = other.HairIndex;
         OnPropertyChanged(nameof(HairIndex));
     }
     if (FeatureIndex != other.FeatureIndex)
     {
         FeatureIndex = other.FeatureIndex;
         OnPropertyChanged(nameof(FeatureIndex));
     }
     if (DecalIndex != other.DecalIndex)
     {
         DecalIndex = other.DecalIndex;
         OnPropertyChanged(nameof(DecalIndex));
     }
 }