public static List <MemberInspectorTreeElement> GenerateInspectorTree(GameObjectInformation target)
        {
            var treeBuilder = new TreeBuilder <MemberInspectorTreeElement, ComponentInformation.MemberReference>();

            treeBuilder.AddChildren(target.members, 0);
            return(treeBuilder.ToTree());
        }
예제 #2
0
    //------------------------------------------------------------------------/
    // Data
    //------------------------------------------------------------------------/
    private List<EventTreeElement> BuildEventTree()
    {
      events = Reflection.GetSubclass<Stratus.StratusEvent>();
      EventInformation[] eventsInformation = new EventInformation[events.Length];
      for (int i = 0; i < events.Length; ++i)
      {
        eventsInformation[i] = new EventInformation(events[i]);
      }

      var treeBuilder = new TreeBuilder<EventTreeElement, EventInformation>();
      treeBuilder.AddChildren(eventsInformation, 0);
      return treeBuilder.ToTree();
    }