public NodeGeneratorData(NodeGenerator.NodeGenerator nodeGenerator) { foreach (var node in nodeGenerator.all_nodes.Cast <node_info>()) { SyntaxNodes.Add(new SyntaxNode(node)); } Settings = new Settings(nodeGenerator); TagCategories = nodeGenerator.tag_cats.Select(x => new FilterCategory(x)).ToList(); HelpStorage = new HelpStorage(nodeGenerator.help_storage); }
public Typed(SyntaxNodes <SyntaxNode> nodes) => Nodes = nodes;
public SolvingNode GetSyntaxNode(int syntaxNode) => SyntaxNodes.First(n => n.Name == syntaxNode.ToString());