Example #1
0
        public BehaviorTreeNode(EditorDomain domain, BehaviorTreeView parent)
            : base(domain
                   , parent
                   , string.Format("{0}-Node", parent.Tree.Id))
        {
            Tree = parent.Tree;
            Tree.OnEventApplied += Tree_OnEventApplied;

            if (Tree.RootTaskId > 0)
            {
                var task = (TaskState)Repository.States[TaskState.GetId(Tree.RootTaskId)];
                RootView.Children.Add(TaskNode.Create(RootView, task));
            }
        }
Example #2
0
        //public string Title { get; protected set; }

        //public Vector2 Position { get; protected set; }

        //public Vector2 Size { get; protected set; }

        //public GUIStyle Style { get; protected set; }

        protected Node(EditorDomain domain, EditorComponent parent, string id)
            : base(domain, parent, id)
        {
            RootView = FindRootView();
        }