static int _m_Test2(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaTest.Foo gen_to_be_invoked = (XLuaTest.Foo)translator.FastGetCSObj(L, 1); { XLuaTest.Foo1Parent _a = (XLuaTest.Foo1Parent)translator.GetObject(L, 2, typeof(XLuaTest.Foo1Parent)); XLuaTest.Foo2Parent _b = (XLuaTest.Foo2Parent)translator.GetObject(L, 3, typeof(XLuaTest.Foo2Parent)); UnityEngine.GameObject _c = (UnityEngine.GameObject)translator.GetObject(L, 4, typeof(UnityEngine.GameObject)); XLuaTest.Foo1Parent gen_ret = gen_to_be_invoked.Test2( _a, _b, _c ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new XLuaTest.Foo2Parent(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to XLuaTest.Foo2Parent constructor!")); }