public BaseNode GetNode(Guid treeID, Guid nodeID) { TreeMemory tree = this.GetTree(treeID); if (!tree.treeMemory.ContainsKey(nodeID)) { tree.treeMemory.Add(nodeID, null); } return(tree.treeMemory[nodeID]); }
public List <BaseNode> GetOpenNodes(Guid treeID) { TreeMemory tree = this.GetTree(treeID); return(tree.openNodes); }
public Blackboard() { this._baseMemory = new BaseMemory(new Dictionary <Guid, TTBT.TreeMemory>()); this._treeMemory = new TreeMemory(new Dictionary <Guid, BaseNode>(), new List <BaseNode>()); }
//set public void SetOpenNodes(Guid treeID, List <BaseNode> nodes) { TreeMemory tree = this.GetTree(treeID); tree.openNodes = nodes; }