static int _m_Test2(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Foo __cl_gen_to_be_invoked = (Foo)translator.FastGetCSObj(L, 1); try { { Foo1Parent a = (Foo1Parent)translator.GetObject(L, 2, typeof(Foo1Parent)); Foo2Parent b = (Foo2Parent)translator.GetObject(L, 3, typeof(Foo2Parent)); UnityEngine.GameObject c = (UnityEngine.GameObject)translator.GetObject(L, 4, typeof(UnityEngine.GameObject)); Foo1Parent __cl_gen_ret = __cl_gen_to_be_invoked.Test2(a, b, c); translator.Push(L, __cl_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) { Foo1Parent __cl_gen_ret = new Foo1Parent(); translator.Push(L, __cl_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 Foo1Parent constructor!")); }
static int _m_PlainExtension(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Foo1Parent __cl_gen_to_be_invoked = (Foo1Parent)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.PlainExtension( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Extension1(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Foo1Child __cl_gen_to_be_invoked = (Foo1Child)translator.FastGetCSObj(L, 1); try { { Foo1Parent __cl_gen_ret = __cl_gen_to_be_invoked.Extension1( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Test1(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Foo __cl_gen_to_be_invoked = (Foo)translator.FastGetCSObj(L, 1); try { { Foo1Parent a = (Foo1Parent)translator.GetObject(L, 2, typeof(Foo1Parent)); __cl_gen_to_be_invoked.Test1(a); return(0); } } 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); Foo1Parent __cl_gen_to_be_invoked = (Foo1Parent)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)); Foo1Parent __cl_gen_ret = __cl_gen_to_be_invoked.Extension2(b); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && translator.Assignable <Foo2Parent>(L, 2)) { Foo2Parent b = (Foo2Parent)translator.GetObject(L, 2, typeof(Foo2Parent)); __cl_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 Foo1Parent.Extension2!")); }
public static void PlainExtension(this Foo1Parent a) { Debug.Log("PlainExtension"); }