From d8417b03b9c2a820d3d3be0dfa80841b4d1f4c04 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 9 Nov 2021 19:22:13 +0800 Subject: *misc --- Runtime/Lua/LuaHelper.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Runtime/Lua/LuaHelper.h') 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 -- cgit v1.1-26-g67d0