diff options
author | Nipun Garg | 2019-06-24 03:16:13 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:59 +0200 |
commit | 5048f1b3ae2ed93d042b671c991bb4a4d1a7bc72 (patch) | |
tree | 7037357cca8f8015d85865fb2b8f24d2cf62f14c /engines/hdb/lua-script.cpp | |
parent | 9c0b5d939ecab9db168392c0a6bfc167856d0f6d (diff) | |
download | scummvm-rg350-5048f1b3ae2ed93d042b671c991bb4a4d1a7bc72.tar.gz scummvm-rg350-5048f1b3ae2ed93d042b671c991bb4a4d1a7bc72.tar.bz2 scummvm-rg350-5048f1b3ae2ed93d042b671c991bb4a4d1a7bc72.zip |
HDB: Add cineSetAnimFrame() Lua function
Diffstat (limited to 'engines/hdb/lua-script.cpp')
-rw-r--r-- | engines/hdb/lua-script.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 37131613ae..62ad8d6f82 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -269,7 +269,15 @@ static int cineAnimEntity(lua_State *L) { } static int cineSetAnimFrame(lua_State *L) { - warning("STUB: CINE SET ANIM FRAME"); + const char *entName = lua_tostring(L, 1); + double state = lua_tonumber(L, 2); + double frame = lua_tonumber(L, 2); + + g_hdb->_lua->checkParameters("cineSetAnimFrame", 3); + + lua_pop(L, 3); + int s = (int)state; + g_hdb->_ai->cineSetAnimFrame(entName, (AIState)s, (int)frame); return 0; } |