diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-10-01 02:01:20 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-10-01 02:01:20 -0400 |
commit | a62d96ad0521b064e6ef61a6f80888e27966502b (patch) | |
tree | d56045d4330314d608c39b5b1f304a4b99f17975 /src/script.cpp | |
parent | 5cceca5ec696e6626cea0ec07f9db1b28bb3b875 (diff) |
Started texture based world definitions
Diffstat (limited to 'src/script.cpp')
-rw-r--r-- | src/script.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/script.cpp b/src/script.cpp index 6cda627..629baa9 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -134,7 +134,12 @@ void ScriptSystem::scriptExport(void) "setData", &World::setData, "registerMaterial", &World::registerMaterial, "setSize", &World::setSize, - "getSize", &World::getSize); + "getSize", &World::getSize, + + // New stuff + "unitSize", sol::property(&World::setUnitSize, &World::getUnitSize), + "createLayer", &World::registerLayer, + "createDecoLayer", &World::registerDecoLayer); game = lua["game"].get_or_create<sol::table>(); game.set_function("spawn", entitySpawn); |