mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 00:37:58 +03:00
Add ExecuteScriptFile();
This commit is contained in:
parent
106c3ef0d8
commit
2f9c8c6894
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