static int Regist(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); Game.MessageManager obj = (Game.MessageManager)ToLua.CheckObject <Game.MessageManager>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); System.Action <UFrame.MessageCenter.Message> arg1 = (System.Action <UFrame.MessageCenter.Message>)ToLua.CheckDelegate <System.Action <UFrame.MessageCenter.Message> >(L, 3); obj.Regist(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }