* Runs an array of commands. If the user cancels it will consume this entire * array. Thus you should only call this for ShotSetup + DialogNode 1 or for a * single dialogNode. * * Returns the running commandRunner to handle cancellation. * * @param {AbstractCommand[]} commands * @returns {Com
(commands)
| 309 | * @returns {CommandRunner} the running commandRunner. |
| 310 | */ |
| 311 | function runCommands (commands) { |
| 312 | const runner = new CommandRunner(commands) |
| 313 | return [runner, runner.run()] |
| 314 | } |
| 315 | |
| 316 | /** |
| 317 | * Starts the render loop of the stage. |