Bug fixes, debug tools for binary chunks.

This commit is contained in:
CloneTrooper1019
2020-09-10 00:08:12 -05:00
parent 1314be22bb
commit 8bcc5a9dfa
11 changed files with 204 additions and 80 deletions

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace RobloxFiles.BinaryFormat.Chunks
{
@ -79,5 +80,18 @@ namespace RobloxFiles.BinaryFormat.Chunks
}
}
}
public void WriteInfo(StringBuilder builder)
{
builder.AppendLine($"- ClassIndex: {ClassIndex}");
builder.AppendLine($"- ClassName: {ClassName}");
builder.AppendLine($"- IsService: {IsService}");
if (IsService && RootedServices != null)
builder.AppendLine($"- RootedServices: `{string.Join(", ", RootedServices)}`");
builder.AppendLine($"- NumInstances: {NumInstances}");
builder.AppendLine($"- InstanceIds: `{string.Join(", ", InstanceIds)}`");
}
}
}