From 051abd04e4527095ef15412939450fbe504daebe Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 26 Oct 2021 19:33:40 +0800 Subject: +texture & imagedata --- 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 56dae54..c3cd70e 100644 --- a/Runtime/Lua/LuaHelper.h +++ b/Runtime/Lua/LuaHelper.h @@ -5,13 +5,14 @@ // lua 5.1 doc: https://www.lua.org/manual/5.1/ +// 针对GameLab做一些扩展 class LuaHelper { public: static int Call(const char* func, const char* params, ...); - static bool IsType(LuaBind::State& state, const char* typeName, int idx); - 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); + }; \ No newline at end of file -- cgit v1.1-26-g67d0