static int _g_get_Event(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { CatLib.Base.CMonoComponent __cl_gen_to_be_invoked = (CatLib.Base.CMonoComponent)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.Event); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { CatLib.Base.CMonoComponent __cl_gen_ret = new CatLib.Base.CMonoComponent(); 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 CatLib.Base.CMonoComponent constructor!")); }
static int _m_OnDestroy(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); CatLib.Base.CMonoComponent __cl_gen_to_be_invoked = (CatLib.Base.CMonoComponent)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.OnDestroy( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }