static int _g_get_Handler(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Maria.EventListenerCmd __cl_gen_to_be_invoked = (Maria.EventListenerCmd)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.Handler); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <Maria.EventListenerCmd.OnEventCmdHandler>(L, 3)) { uint cmd = LuaAPI.xlua_touint(L, 2); Maria.EventListenerCmd.OnEventCmdHandler callback = translator.GetDelegate <Maria.EventListenerCmd.OnEventCmdHandler>(L, 3); Maria.EventListenerCmd __cl_gen_ret = new Maria.EventListenerCmd(cmd, callback); 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 Maria.EventListenerCmd constructor!")); }
static int _m_AddCmdEventListener(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Maria.EventDispatcher __cl_gen_to_be_invoked = (Maria.EventDispatcher)translator.FastGetCSObj(L, 1); try { { Maria.EventListenerCmd listener = (Maria.EventListenerCmd)translator.GetObject(L, 2, typeof(Maria.EventListenerCmd)); __cl_gen_to_be_invoked.AddCmdEventListener(listener); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }