protected static void GenerateTypeTree(TypeTreeContext context) { if (HasHideFlag(context.Version, context.Flags)) { context.AddUInt32(ObjectHideFlagsName); } if (HasInstanceID(context.Version, context.Flags)) { context.AddInt32(InstanceIDName); context.AddInt64(ObjectHideFlagsName); } }
public static void GenerateTypeTree(TypeTreeContext context, string type, string name) { PPtrLayout layout = context.Layout.PPtr; context.AddNode($"PPtr<{type}>", name); context.BeginChildren(); context.AddInt32(layout.FileIDName); if (layout.IsLongID) { context.AddInt64(layout.PathIDName); } else { context.AddInt32(layout.PathIDName); } context.EndChildren(); }
public static void GenerateTypeTree(TypeTreeContext context, string name) { context.AddInt64(name); }