diff options
Diffstat (limited to 'Runtime/Lua/LuaHelper.h')
-rw-r--r-- | Runtime/Lua/LuaHelper.h | 7 |
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 |