From 1cd31d14c95f9d52e30fbc611df5da4b46f048d9 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 19 Nov 2021 15:33:48 +0800 Subject: *misc --- Runtime/Lua/LuaBind/LuaBindInvoker.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Runtime/Lua/LuaBind/LuaBindInvoker.h') diff --git a/Runtime/Lua/LuaBind/LuaBindInvoker.h b/Runtime/Lua/LuaBind/LuaBindInvoker.h index 5f24b15..cbfb2f9 100644 --- a/Runtime/Lua/LuaBind/LuaBindInvoker.h +++ b/Runtime/Lua/LuaBind/LuaBindInvoker.h @@ -59,6 +59,12 @@ namespace LuaBind udata.PushUserdata(state); ++argc; } + template + void AddLuaObject(T& obj) { + //LuaObjectTransfer::CastToLuaObject(state, obj); + obj.CastToLuaObject(state); + ++argc; + } void Invoke(int nReturns = 0); -- cgit v1.1-26-g67d0