private SerializableNode(int id, NodeData data, Link link) { this.id = id; this.data = data; this.node = link; }
protected BaseNode(Node parent, NodeData data) : this(parent) { Data = data; }
public Node AddNode(NodeData data) { return(new Node(this, data)); }
public static Node CreateRoot(NodeData rootData) { Node node = new Node(null, rootData); return(node); }
private Node(Node parent, NodeData data) : base(parent, data) { Children = new List <BaseNode>(); Links = new List <Link>(); }
public DialogueTree(NodeData rootData) { root = Node.CreateRoot(rootData); }