/** * Sets the type of the node. **/ public void SetNodeType(ScriptNodeType type) { this.type = type; }
/** * Creates a new ScriptNode of the given type. **/ public ScriptNode(ScriptNodeType nodeType) { children = new List <ScriptNode> (); data = new Dictionary <string, object> (); type = nodeType; }