コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 public static void GenerateTypeTree(TypeTreeContext context, string name)
 {
     context.AddInt64(name);
 }