From 32345800737b668011a87328cd3dcce59ec2934c Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 26 Oct 2021 11:27:58 +0800 Subject: *misc --- Runtime/Scripting/Common/Common.bind.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Runtime/Scripting/Common/Common.bind.cpp (limited to 'Runtime/Scripting/Common/Common.bind.cpp') 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(); + + return 1; +} \ No newline at end of file -- cgit v1.1-26-g67d0