/// <summary> /// The constructor will only ever be called in editor. /// </summary> public NodeGraph() { NodeCollection = new NodeCollection(); ANode entryNode = NodeCollection.CreateNode(typeof(EntryNode), Vector2.zero); NodeCollection.SetEntryNode(entryNode.Id); BlackboardProperties = new BlackboardProperties(); }
public GraphControls(AGraphProperties graphProperties, BlackboardProperties blackboardProperties, Action <OutportEdge> onTraverseEdge) { GraphProperties = graphProperties; BlackboardProperties = blackboardProperties; m_onTraverseEdge = onTraverseEdge; }
public GraphRunner(NodeGraph nodeGraph, AGraphProperties graphProperties, BlackboardProperties blackboardProperties) { m_nodeCollection = nodeGraph.NodeCollection; GraphProperties = graphProperties; BlackboardProperties = blackboardProperties; graphControls = new GraphControls(GraphProperties, BlackboardProperties, TraverseEdge); if (m_nodeCollection == null) { Debug.LogError("No Graph attached to GraphRunner!"); } }
public GraphRunner(NodeCollection nodeCollection, AGraphProperties graphProperties, BlackboardProperties blackboardProperties) { m_nodeCollection = nodeCollection; GraphProperties = graphProperties; BlackboardProperties = blackboardProperties; }