static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { DCET.Model.MessageDispatcherComponent gen_ret = new DCET.Model.MessageDispatcherComponent(); 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 DCET.Model.MessageDispatcherComponent constructor!")); }
static int _m_Load(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.MessageDispatcherComponent gen_to_be_invoked = (DCET.Model.MessageDispatcherComponent)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Load( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Awake(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.MessageDispatcherComponentAwakeSystem gen_to_be_invoked = (DCET.Model.MessageDispatcherComponentAwakeSystem)translator.FastGetCSObj(L, 1); { DCET.Model.MessageDispatcherComponent _t = (DCET.Model.MessageDispatcherComponent)translator.GetObject(L, 2, typeof(DCET.Model.MessageDispatcherComponent)); gen_to_be_invoked.Awake(_t); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Handle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.MessageDispatcherComponent gen_to_be_invoked = (DCET.Model.MessageDispatcherComponent)translator.FastGetCSObj(L, 1); { DCET.Model.Session _session = (DCET.Model.Session)translator.GetObject(L, 2, typeof(DCET.Model.Session)); DCET.Model.MessageInfo _messageInfo; translator.Get(L, 3, out _messageInfo); gen_to_be_invoked.Handle(_session, _messageInfo); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_RegisterHandler(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.MessageDispatcherComponent gen_to_be_invoked = (DCET.Model.MessageDispatcherComponent)translator.FastGetCSObj(L, 1); { ushort _opcode = (ushort)LuaAPI.xlua_tointeger(L, 2); DCET.Model.IMHandler _handler = (DCET.Model.IMHandler)translator.GetObject(L, 3, typeof(DCET.Model.IMHandler)); gen_to_be_invoked.RegisterHandler(_opcode, _handler); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }