static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new XLuaTest.Foo1Child(); 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.Foo1Child constructor!")); }
static int _m_Extension1(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaTest.Foo1Child gen_to_be_invoked = (XLuaTest.Foo1Child)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.Extension1( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Extension2(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); XLuaTest.Foo1Child gen_to_be_invoked = (XLuaTest.Foo1Child)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <UnityEngine.GameObject>(L, 2)) { UnityEngine.GameObject _b = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); var gen_ret = gen_to_be_invoked.Extension2(_b); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <XLuaTest.Foo2Parent>(L, 2)) { XLuaTest.Foo2Parent _b = (XLuaTest.Foo2Parent)translator.GetObject(L, 2, typeof(XLuaTest.Foo2Parent)); gen_to_be_invoked.Extension2(_b); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to XLuaTest.Foo1Child.Extension2!")); }