diff options
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindInvoker.h')
| -rw-r--r-- | Runtime/Lua/LuaBind/LuaBindInvoker.h | 6 | 
1 files changed, 6 insertions, 0 deletions
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<class T>  +        void AddLuaObject(T& obj) { +            //LuaObjectTransfer::CastToLuaObject<T>(state, obj); +            obj.CastToLuaObject(state); +            ++argc; +        }  		void Invoke(int nReturns = 0);  | 
