Beispiel #1
0
    /// <summary>
    /// 标记某邮件已读
    /// </summary>
    public void mailReaded(int index)
    {
        MailData data = _mails.get(index);

        if (data == null)
        {
            me.warnLog("标记某邮件已读时,找不到邮件");
            return;
        }

        if (data.readed)
        {
            me.warnLog("标记某邮件已读时,邮件已读");
            return;
        }

        toRemoveRedPoint(data);

        data.readed = true;
        _newNum--;
        me.dispatch(GameEventType.RefreshNewMailNum);
        me.dispatch(GameEventType.RefreshOneMail, index);

        MailReadedRequest.create(index, data.instanceID).send();
    }
Beispiel #2
0
    /// <summary>
    /// 创建实例
    /// </summary>
    public static MailReadedRequest create(int index, int instanceID)
    {
        MailReadedRequest re = (MailReadedRequest)BytesControl.createRequest(dataID);

        re.index      = index;
        re.instanceID = instanceID;
        return(re);
    }