Manual revert of 470fc924a0

This commit is contained in:
Matt Nadareski
2022-02-22 13:51:04 -08:00
parent 2074ae5db2
commit 191292b669

View File

@@ -27,13 +27,6 @@ namespace SabreTools.DatItems.Formats
[XmlElement("features")]
public List<PartFeature> Features { get; set; }
[JsonProperty("dataAreas", DefaultValueHandling = DefaultValueHandling.Ignore)]
[XmlElement("dataAreas")]
public List<DataArea> DataAreas { get; set; }
[JsonIgnore]
public bool DataAreasSpecified { get { return DataAreas != null && DataAreas.Count > 0; } }
[JsonIgnore]
public bool FeaturesSpecified { get { return Features != null && Features.Count > 0; } }
@@ -78,7 +71,6 @@ namespace SabreTools.DatItems.Formats
Name = this.Name,
Interface = this.Interface,
Features = this.Features,
DataAreas = this.DataAreas,
};
}
@@ -110,15 +102,6 @@ namespace SabreTools.DatItems.Formats
}
}
// If the dataareas match
if (DataAreasSpecified)
{
foreach (DataArea dataArea in DataAreas)
{
match &= newOther.DataAreas.Contains(dataArea);
}
}
return match;
}