private static void HandleOpen(GameSession session)
        {
            session.Player.Mailbox.ClearExpired();

            session.Send(MailPacket.StartOpen());
            session.Send(MailPacket.Open(session.Player.Mailbox.Box));
            session.Send(MailPacket.EndOpen());
        }
Beispiel #2
0
        private static void HandleOpen(GameSession session)
        {
            session.Send(MailPacket.StartOpen());

            IEnumerable <List <Mail> > packetCount = ResponseKeyHandler.SplitList(session.Player.Mailbox, 5);

            foreach (List <Mail> mails in packetCount)
            {
                session.Send(MailPacket.Open(mails));
            }

            session.Send(MailPacket.EndOpen());
        }