0.513.0.5130420 + UniqueId
Caught up with latest API changes and implemented UniqueId.
This commit is contained in:
@ -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}!");
|
||||
|
Reference in New Issue
Block a user