0.513.0.5130420 + UniqueId

Caught up with latest API changes and implemented UniqueId.
This commit is contained in:
Max
2022-02-10 15:22:44 -06:00
parent c4f0953858
commit 034799a4de
9 changed files with 856 additions and 258 deletions

View File

@ -652,6 +652,16 @@ namespace RobloxFiles.BinaryFormat.Chunks
break;
}
case PropertyType.UniqueId:
{
readProperties(i =>
{
var buffer = reader.ReadBytes(16);
return new Guid(buffer);
});
break;
}
default:
{
RobloxFile.LogError($"Unhandled property type: {Type} in {this}!");
@ -1262,6 +1272,17 @@ namespace RobloxFiles.BinaryFormat.Chunks
break;
}
case PropertyType.UniqueId:
{
props.ForEach(prop =>
{
var guid = prop.CastValue<Guid>();
byte[] buffer = guid.ToByteArray();
writer.Write(buffer);
});
break;
}
default:
{
RobloxFile.LogError($"Unhandled property type: {Type} in {this}!");