Example #1
0
 private SerializableNode(int id, NodeData data, Link link)
 {
     this.id   = id;
     this.data = data;
     this.node = link;
 }
Example #2
0
 protected BaseNode(Node parent, NodeData data) : this(parent) {
     Data = data;
 }
Example #3
0
 public Node AddNode(NodeData data)
 {
     return(new Node(this, data));
 }
Example #4
0
        public static Node CreateRoot(NodeData rootData)
        {
            Node node = new Node(null, rootData);

            return(node);
        }
Example #5
0
 private Node(Node parent, NodeData data) : base(parent, data)
 {
     Children = new List <BaseNode>();
     Links    = new List <Link>();
 }
Example #6
0
 public DialogueTree(NodeData rootData)
 {
     root = Node.CreateRoot(rootData);
 }