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");
Property attributes = GetProperty("AttributesSerialize");
if (tags == null)
var extraProps = new Dictionary<string, PropertyType>()
{
tags = new Property("Tags", PropertyType.String);
AddProperty(ref tags);
{ "Tags", PropertyType.String },
{ "AttributesSerialize", PropertyType.String },
{ "UniqueId", PropertyType.UniqueId },
{ "HistoryId", PropertyType.UniqueId },
};
foreach (var extraProp in extraProps)
{
string name = extraProp.Key;
var propType = extraProp.Value;
if (GetProperty(name) == null)
{
var prop = new Property(name, propType);
AddProperty(ref prop);
}
if (attributes == null)
{
attributes = new Property("AttributesSerialize", PropertyType.String);
AddProperty(ref attributes);
}
return Properties;