aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/lua-script.h
diff options
context:
space:
mode:
authorNipun Garg2019-06-18 04:14:45 +0530
committerEugene Sandulenko2019-09-03 17:16:47 +0200
commit2c55d072d36c7c7951cc772ae968ab255cfd05f1 (patch)
tree6b121a4617204401966bb409a862ca8bcb6461d8 /engines/hdb/lua-script.h
parentd8cf201ae751665ed0e2f4d62c9b24fb7e866aa9 (diff)
downloadscummvm-rg350-2c55d072d36c7c7951cc772ae968ab255cfd05f1.tar.gz
scummvm-rg350-2c55d072d36c7c7951cc772ae968ab255cfd05f1.tar.bz2
scummvm-rg350-2c55d072d36c7c7951cc772ae968ab255cfd05f1.zip
HDB: Add support to call Lua functions
This allows us to easily to call functions defined in the Lua scripts.
Diffstat (limited to 'engines/hdb/lua-script.h')
-rw-r--r--engines/hdb/lua-script.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/hdb/lua-script.h b/engines/hdb/lua-script.h
index 2a8686f96c..ea209a383c 100644
--- a/engines/hdb/lua-script.h
+++ b/engines/hdb/lua-script.h
@@ -39,6 +39,7 @@ public:
bool init();
bool initScript(Common::SeekableReadStream *stream, const char *scriptName, int32 length);
+ bool callFunction(const char *name, int returns);
bool executeMPC(Common::SeekableReadStream *stream, const char *name, const char *scriptName, int32 length);
bool executeFile(const Common::String &filename);