示例#1
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Foo1Child gen_ret = new 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 Foo1Child constructor!"));
        }
示例#2
0
        static int _m_PlainExtension(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            Foo1Child __cl_gen_to_be_invoked = (Foo1Child)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));
            }
        }
示例#3
0
        static int _m_Extension1(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Foo1Child gen_to_be_invoked = (Foo1Child)translator.FastGetCSObj(L, 1);



                {
                    Foo1Parent 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));
            }
        }
示例#4
0
        static int _m_Extension2(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Foo1Child gen_to_be_invoked = (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));

                    Foo1Parent gen_ret = gen_to_be_invoked.Extension2(_b);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <Foo2Parent>(L, 2))
                {
                    Foo2Parent _b = (Foo2Parent)translator.GetObject(L, 2, typeof(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 Foo1Child.Extension2!"));
        }