summaryrefslogtreecommitdiff
path: root/Runtime/Lua/LuaHelper.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-09 19:22:13 +0800
committerchai <chaifix@163.com>2021-11-09 19:22:13 +0800
commitd8417b03b9c2a820d3d3be0dfa80841b4d1f4c04 (patch)
tree7d036d283bd7a626d56c5c5a725733df439c8368 /Runtime/Lua/LuaHelper.h
parent13f477664c07826c92eac774f0035994c460c057 (diff)
*misc
Diffstat (limited to 'Runtime/Lua/LuaHelper.h')
-rw-r--r--Runtime/Lua/LuaHelper.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Runtime/Lua/LuaHelper.h b/Runtime/Lua/LuaHelper.h
index c3cd70e..79cab29 100644
--- a/Runtime/Lua/LuaHelper.h
+++ b/Runtime/Lua/LuaHelper.h
@@ -1,6 +1,4 @@
#pragma once
-#include "Runtime/Math/Rect.h"
-#include "Runtime/Math/Vector2.h"
#include "./LuaBind/LuaBind.h"
// lua 5.1 doc: https://www.lua.org/manual/5.1/
@@ -14,5 +12,8 @@ public:
static void OnRegisterNativeClass(LuaBind::State& state, int cls, std::string clsName, std::string pkgName);
// 创建lua类的实例并留在栈顶,如果失败返回false且不压栈
static bool InstantiateClass(LuaBind::State& state, const char* classFullName);
-
+
+ // 找到类table,并留在栈顶,如果返回false表示没有找到,栈顶无值
+ static bool GetLuaClass(LuaBind::State& state, const char* fullName);
+
}; \ No newline at end of file