diff --git a/src/ActorUtil.cpp b/src/ActorUtil.cpp index 6105d9881f..cc44b0b6ea 100644 --- a/src/ActorUtil.cpp +++ b/src/ActorUtil.cpp @@ -442,6 +442,18 @@ namespace lua_pushboolean( L, IsRegistered(SArg(1)) ); return 1; } + static int LoadAllCommands( lua_State *L ) + { + Actor *p = Luna::check( L, 1 ); + ActorUtil::LoadAllCommands( p, SArg(2) ); + return 0; + } + static int LoadAllCommandsFromName( lua_State *L ) + { + Actor *p = Luna::check( L, 1 ); + ActorUtil::LoadAllCommandsFromName( *p, SArg(2), SArg(3) ); + return 0; + } static int LoadAllCommandsAndSetXY( lua_State *L ) { Actor *p = Luna::check( L, 1 );