diff options
author | Nipun Garg | 2019-06-24 03:03:35 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:58 +0200 |
commit | 6eab766f9948ea194914114374f931f2009c9ad6 (patch) | |
tree | 4a7e31b17d49b1a24485eae902d4031fd5dddd95 /engines/hdb | |
parent | 2f54ef2f7f5f5c2c755e61b70a2333161bc4b112 (diff) | |
download | scummvm-rg350-6eab766f9948ea194914114374f931f2009c9ad6.tar.gz scummvm-rg350-6eab766f9948ea194914114374f931f2009c9ad6.tar.bz2 scummvm-rg350-6eab766f9948ea194914114374f931f2009c9ad6.zip |
HDB: Add cineAnimEntity() Lua function
Diffstat (limited to 'engines/hdb')
-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 b2eeb4d83b..37131613ae 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -256,7 +256,15 @@ static int cineMoveEntity(lua_State *L) { } static int cineAnimEntity(lua_State *L) { - warning("STUB: CINE ANIM ENTITY"); + const char *entName = lua_tostring(L, 1); + double state = lua_tonumber(L, 2); + double loop = lua_tonumber(L, 2); + + g_hdb->_lua->checkParameters("cineAnimEntity", 3); + + lua_pop(L, 3); + int s = (int)state; + g_hdb->_ai->cineAnimEntity(entName, (AIState)s, (int)loop); return 0; } |