Beispiel #1
0
        /// <summary>
        /// 邮件列表
        /// </summary>
        private void OnMailList(PacketBase packet)
        {
            c2ss.MailList msg    = packet as c2ss.MailList;
            Player        player = UnitManager.Instance.GetPlayerByClientUID(msg.client_uid);

            if (player == null)
            {
                Log.Debug("OnMailList 未找到unit:" + msg.client_uid.srv_uid + ", " + msg.client_uid.conn_idx);
                return;
            }
            Mailbox mail_box = MailboxManager.Instance.GetMailBox(player.char_idx);

            if (mail_box != null)
            {
                mail_box.HandleReqList();
            }
        }
 /// <summary>
 /// 请求邮件列表
 /// </summary>
 public static void SendMailList()
 {
     c2ss.MailList msg = PacketPools.Get(c2ss.msg.MAIL_LIST) as c2ss.MailList;
     ClientNetManager.Instance.Send(msg);
 }