From de46b91a524c5f2c8e72b379f2900afe34ccb815 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 11 Nov 2021 10:29:17 +0800 Subject: *misc --- Runtime/Lua/LuaHelper.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Runtime/Lua/LuaHelper.h') diff --git a/Runtime/Lua/LuaHelper.h b/Runtime/Lua/LuaHelper.h index 79cab29..1c18620 100644 --- a/Runtime/Lua/LuaHelper.h +++ b/Runtime/Lua/LuaHelper.h @@ -15,5 +15,8 @@ public: // 找到类table,并留在栈顶,如果返回false表示没有找到,栈顶无值 static bool GetLuaClass(LuaBind::State& state, const char* fullName); + + // 找到全局表下的数据 + static bool GetGlobalField(LuaBind::State& state, const char* fullName); -}; \ No newline at end of file +}; -- cgit v1.1-26-g67d0