public void GetNewMail(stNotifyNewMailUserCmd_S cmd) { if (MailList == null) { MailList = new List <ListMailInfo>(); } this.MailList.Add(cmd.data); MailSort(MailList); mail_dic.Add(cmd.data.mailid, cmd.data); Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.MAIL_ADDNEWMAIL, null); stShowMainPanelRedPoint st = new stShowMainPanelRedPoint() { modelID = (int)WarningEnum.Mail, direction = (int)WarningDirection.None, bShowRed = true, }; Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.MAINPANEL_SHOWREDWARING, st); }
public void AddNewMail(stNotifyNewMailUserCmd_S cmd) { DataManager.Manager <MailManager>().GetNewMail(cmd); }