/// class DialogueSet extends DialogueNode { public type = NodeType.Set; private code : () => (void | Promise); public setFunction (code : () => (void | Promise)) { this.code = code; } public run () : void | Promise { return this.code(); } }