Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        System.Diagnostics.Debug.WriteLine("Test!");
        LiteGraph.Main.Init();

        graph = new LGraph();


        if (!graph_file)
        {
            Debug.Log("Testing Base Graph...");
            LGraphNode node1 = LiteGraph.Globals.createNodeType("math/rand");
            graph.add(node1);
            LGraphNode node2 = LiteGraph.Globals.createNodeType("basic/watch");
            graph.add(node2);
            node1.connect(0, node2, 0);
        }
        else
        {
            Debug.Log("Testing File Graph...");
            string text = graph_file.text;
            graph.fromJSONText(text);
        }

        graph_has_errors = graph.has_errors;
    }
Пример #2
0
        internal PrimitiveGraphBuilder(object serviceObject, MethodCallExpression m, LGraph graph)
        {
            Trace.Assert(IsTronPrimitiveCall(m));

            _composedService = serviceObject;
            _rootCall        = m;
            _graph           = graph;
        }
Пример #3
0
 internal BasicBlockBuilder(LGraph graph)
 {
     _graph = graph;
 }
Пример #4
0
 internal BasicBlockBuilder(LGraph graph)
 {
     _graph = graph;
 }