Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/scripting/StarImageLuaBindings.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-17 01:53:46 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-17 01:53:46 +1100
commit53c7c3775fae0810b0831297b50aab1b0a1ef4e0 (patch)
treeee8153e55810085d6ed07a64efb6a17c1fa87a2f /source/core/scripting/StarImageLuaBindings.hpp
parent463205c09cc393e92ae2f51b9bc8f61c4e368dea (diff)
Lua: new Image userdata (& cursor mod fix)
Diffstat (limited to 'source/core/scripting/StarImageLuaBindings.hpp')
-rw-r--r--source/core/scripting/StarImageLuaBindings.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/core/scripting/StarImageLuaBindings.hpp b/source/core/scripting/StarImageLuaBindings.hpp
new file mode 100644
index 0000000..b49598d
--- /dev/null
+++ b/source/core/scripting/StarImageLuaBindings.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "StarLua.hpp"
+
+namespace Star {
+
+STAR_CLASS(Image);
+
+template <>
+struct LuaConverter<Image> : LuaUserDataConverter<Image> {};
+
+template <>
+struct LuaUserDataMethods<Image> {
+ static LuaMethods<Image> make();
+};
+
+}