protected string GetPath()
        {
            var steps = new Stack <string>();

            CraftingNode node = this;

            while (node != null)
            {
                steps.Push(node.Name);
                node = node.Parent;
            }

            string path = string.Empty;

            while (steps.Count > 0)
            {
                path += steps.Pop() + Splitter;
            }

            path.TrimEnd(Splitter);

            return(path);
        }
        protected string GetPath()
        {
            var steps = new Stack <string>(4);
            // Currently the deepest trees in the standard fabricators only go 3 deep

            CraftingNode node = this;

            while (node != null)
            {
                steps.Push(node.Name);
                node = node.Parent;
            }

            string path = string.Empty;

            while (steps.Count > 0)
            {
                path += steps.Pop() + Splitter;
            }

            path.TrimEnd(Splitter);

            return(path);
        }
 internal CraftingTab(CraftingNode parent, string tabName) : base(parent)
 {
     TabName = tabName;
 }
 protected CraftingNode(CraftingNode parent)
 {
     Parent = parent;
 }