mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-12 13:37:01 +03:00
Add ExecuteScriptFile();
This commit is contained in:
parent
cb791f640f
commit
7ec3d750ae
3 changed files with 8 additions and 2 deletions
|
@ -678,6 +678,11 @@ void LuaVariables::SetVariable(sol::table tab, std::string key, sol::object valu
|
|||
}
|
||||
}
|
||||
|
||||
void GameScript::ExecuteScriptFile(const std::string & luaFilename)
|
||||
{
|
||||
ExecuteScript(luaFilename);
|
||||
}
|
||||
|
||||
void GameScript::ExecuteFunction(std::string const & name)
|
||||
{
|
||||
sol::protected_function func = (*m_lua)["LevelFuncs"][name.c_str()];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue