Make sure UniqueId and HistoryId get defined.

This commit is contained in:
Max 2022-12-31 15:35:44 -06:00
parent db52a2c389
commit ef5612f25e
2 changed files with 16 additions and 10 deletions

Binary file not shown.

View File

@ -767,19 +767,25 @@ namespace RobloxFiles
} }
} }
Property tags = GetProperty("Tags"); var extraProps = new Dictionary<string, PropertyType>()
Property attributes = GetProperty("AttributesSerialize");
if (tags == null)
{ {
tags = new Property("Tags", PropertyType.String); { "Tags", PropertyType.String },
AddProperty(ref tags); { "AttributesSerialize", PropertyType.String },
}
if (attributes == null) { "UniqueId", PropertyType.UniqueId },
{ "HistoryId", PropertyType.UniqueId },
};
foreach (var extraProp in extraProps)
{ {
attributes = new Property("AttributesSerialize", PropertyType.String); string name = extraProp.Key;
AddProperty(ref attributes); var propType = extraProp.Value;
if (GetProperty(name) == null)
{
var prop = new Property(name, propType);
AddProperty(ref prop);
}
} }
return Properties; return Properties;