예제 #1
0
        private void OnMailWrite(PacketBase packet)
        {
            c2ss.MailWrite msg = packet as c2ss.MailWrite;

            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.HandleWriteMail(msg.info);
            }
        }
예제 #2
0
 /// <summary>
 /// 写邮件
 /// </summary>
 public static void SendWriteMail(MailWriteInfo info)
 {
     c2ss.MailWrite msg = PacketPools.Get(c2ss.msg.MAIL_WRITE) as c2ss.MailWrite;
     msg.info = info;
     ClientNetManager.Instance.Send(msg);
 }