Esempio n. 1
0
        static int _m_Test1(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));
                    
                    gen_to_be_invoked.Test1( _a );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
Esempio n. 2
0
        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);
            }
            
        }