static int Send(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                Game.MessageManager          obj  = (Game.MessageManager)ToLua.CheckObject <Game.MessageManager>(L, 1);
                UFrame.MessageCenter.Message arg0 = (UFrame.MessageCenter.Message)ToLua.CheckObject <UFrame.MessageCenter.Message>(L, 2);
                obj.Send(arg0);
                return(0);
            }
            else if (count == 3)
            {
                Game.MessageManager          obj  = (Game.MessageManager)ToLua.CheckObject <Game.MessageManager>(L, 1);
                UFrame.MessageCenter.Message arg0 = (UFrame.MessageCenter.Message)ToLua.CheckObject <UFrame.MessageCenter.Message>(L, 2);
                bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
                obj.Send(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: Game.MessageManager.Send"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }