From 5f53889d4357d8dba6e726ed38358eca96dbeb47 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Mon, 7 Oct 2019 18:35:47 -0400 Subject: Added ability to change rendering offsets and sizes --- src/script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script.cpp') diff --git a/src/script.cpp b/src/script.cpp index 3c0d0b2..4cfcddd 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -94,7 +94,7 @@ void ScriptSystem::scriptExport(void) [this](sol::object t){ return worldSystem.addWorld(t); }; lua.new_usertype("Position", - sol::constructors(), + sol::constructors(), "x", &Position::x, "y", &Position::y); @@ -109,7 +109,7 @@ void ScriptSystem::scriptExport(void) "flipx", &Render::flipX); lua.new_usertype("Velocity", - sol::constructors(), + sol::constructors(), "x", &Velocity::x, "y", &Velocity::y); -- cgit v1.2.3