Improve asset lua interface. Simplify scene loading.

This commit is contained in:
Emil Axelsson
2017-07-06 16:40:35 +02:00
parent 8c642ab86d
commit ee36a97762
18 changed files with 266 additions and 608 deletions

View File

@@ -93,6 +93,10 @@ void ScriptEngine::initializeLuaState(lua_State* state) {
}
}
ghoul::lua::LuaState * ScriptEngine::luaState() {
return &_state;
}
void ScriptEngine::addLibrary(LuaLibrary library) {
auto sortFunc = [](const LuaLibrary::Function& lhs, const LuaLibrary::Function& rhs)
{