From 87f08aaec01c3137637bbcd07bace30e8dd8fd90 Mon Sep 17 00:00:00 2001
From: Andy Belle-Isle <drumsetmonkey@gmail.com>
Date: Sat, 31 Aug 2019 16:09:39 -0400
Subject: Forgot to add Velocity component binding to Lua, added

---
 src/script.cpp | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src')

diff --git a/src/script.cpp b/src/script.cpp
index d471d65..ec82513 100644
--- a/src/script.cpp
+++ b/src/script.cpp
@@ -101,6 +101,11 @@ void ScriptSystem::scriptExport()
             "visible", &Render::visible,
             "texture", &Render::texture);
 
+    lua.new_usertype<Velocity>("Velocity",
+            sol::constructors<Velocity(float, float), Velocity()>(),
+            "x", &Velocity::x,
+            "y", &Velocity::y);
+
     auto gamespace = lua["game"].get_or_create<sol::table>();
     gamespace.set_function("spawn", func);
 }
-- 
cgit v1.2.3