This commit is contained in:
cinder
2022-10-10 16:08:14 -05:00
parent 2a9e17163e
commit 7875acf84c
6 changed files with 271 additions and 232 deletions

View File

@@ -1459,21 +1459,21 @@ namespace OpenMetaverse.Packets
FieldInfo[] fields = packet.GetType().GetFields();
for (int i = 0; i < fields.Length; i++)
foreach (var t in fields)
{
// we're not interested in any of these here
if (fields[i].Name == "Type" || fields[i].Name == "Header" || fields[i].Name == "HasVariableBlocks")
if (t.Name == "Type" || t.Name == "Header" || t.Name == "HasVariableBlocks")
continue;
if (fields[i].FieldType.IsArray)
if (t.FieldType.IsArray)
{
result.AppendFormat("{0,30} []" + Environment.NewLine, "-- " + fields[i].Name + " --");
RecursePacketArray(fields[i], packet, ref result);
result.AppendFormat("{0,30} []" + Environment.NewLine, "-- " + t.Name + " --");
RecursePacketArray(t, packet, ref result);
}
else
{
result.AppendFormat("{0,30}" + Environment.NewLine, "-- " + fields[i].Name + " --");
RecursePacketField(fields[i], packet, ref result);
result.AppendFormat("{0,30}" + Environment.NewLine, "-- " + t.Name + " --");
RecursePacketField(t, packet, ref result);
}
}