diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-11 01:46:14 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-11 01:46:14 -0400 |
commit | 8f0db67c5fdbc1e7b8759f44b45ad64caf336cb5 (patch) | |
tree | 0333263e39e51eab9fdb83fc1f6046159d91b0e4 /src/script.cpp | |
parent | 1d9c67f5719b3c55b1f2f2537e796e2ad95e1ac1 (diff) |
World system now has a pointer to the current world, and worlds created in Lua are returned to Lua as pointers
Diffstat (limited to 'src/script.cpp')
-rw-r--r-- | src/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script.cpp b/src/script.cpp index e3aca3e..f52391f 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -90,7 +90,7 @@ void ScriptSystem::scriptExport(void) std::function<sol::table(sol::table)> entitySpawn = [this](sol::table t){ return spawn(t);}; - std::function<unsigned int(sol::object)> worldRegister = + std::function<World* (sol::object)> worldRegister = [this](sol::object t){ return worldSystem.addWorld(t); }; lua.new_usertype<Position>("Position", |