summaryrefslogtreecommitdiff
path: root/Runtime/Scripting/Common/Common.bind.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Scripting/Common/Common.bind.cpp')
-rw-r--r--Runtime/Scripting/Common/Common.bind.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Runtime/Scripting/Common/Common.bind.cpp b/Runtime/Scripting/Common/Common.bind.cpp
new file mode 100644
index 0000000..081426d
--- /dev/null
+++ b/Runtime/Scripting/Common/Common.bind.cpp
@@ -0,0 +1,14 @@
+#include "Runtime/Lua/LuaHelper.h"
+#include "Runtime/Common/DataBuffer.h"
+
+int luaopen_GameLab(lua_State* L)
+{
+ LUA_BIND_STATE(L);
+
+ state.PushGlobalNamespace();
+ state.PushNamespace("GameLab");
+
+ state.RegisterNativeClass<DataBuffer>();
+
+ return 1;
+} \ No newline at end of file