Currently, when handling commands not by registering them with YarnCommands, but by responding to an ExecuteCommandEvent, there does not appear to be a way to make the dialogue wait for completion of a task.
DialogueRuenner::add_command_task is a pub(crate) method that would allow a user to achieve exactly this task. I'm open to alternative solutions, of course, but my suggestion would be to simply make this method public.
Currently, when handling commands not by registering them with
YarnCommands, but by responding to anExecuteCommandEvent, there does not appear to be a way to make the dialogue wait for completion of a task.DialogueRuenner::add_command_taskis apub(crate)method that would allow a user to achieve exactly this task. I'm open to alternative solutions, of course, but my suggestion would be to simply make this method public.