/// <summary> /// 创建实例 /// </summary> public static MailRemoveRedPointRequest create(int index) { MailRemoveRedPointRequest re = (MailRemoveRedPointRequest)BytesControl.createRequest(dataID); re.index = index; return(re); }
/// <summary> /// 邮件移除红点 /// </summary> public void mailRemoveRedPoint(int index) { MailData data = _mails.get(index); if (data == null) { me.warnLog("邮件移除红点时,找不到邮件"); return; } if (!data.hasRedPoint) { me.warnLog("邮件移除红点时,没有红点"); return; } toRemoveRedPoint(data); me.dispatch(GameEventType.RefreshOneMail, index); me.send(MailRemoveRedPointRequest.create(index)); }