diff options
Diffstat (limited to 'engines/mohawk/riven_scripts.h')
-rw-r--r-- | engines/mohawk/riven_scripts.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/mohawk/riven_scripts.h b/engines/mohawk/riven_scripts.h index 05cbd15f40..0d575d7adc 100644 --- a/engines/mohawk/riven_scripts.h +++ b/engines/mohawk/riven_scripts.h @@ -87,11 +87,17 @@ public: /** Stop the script after the current command */ void stopRunning() { _continueRunning = false; } + /** Append the commands of the other script to this script */ + RivenScript &operator+=(const RivenScript &other); + private: Common::Array<RivenCommand *> _commands; bool _continueRunning; }; +/** Append the commands of the rhs Script to those of the lhs Script */ +RivenScriptPtr &operator+=(RivenScriptPtr &lhs, const RivenScriptPtr &rhs); + /** * A script and its type * |