public void TickDispatchMessages() { while (m_QueueMsg.Count > 0) { PtMessagePackage package = null; if (m_QueueMsg.TryDequeue(out package)) { notifier.Send((S2CMessageId)package.MessageId, package.Content); } //Notify.NotifyMgr.Instance.Send((S2CMessageId)package.MessageId, new Notify.Notification() { Params = new object[] { package.Content } }); } }
public void TickDispatchMessages() { while (m_QueueMsg.Count > 0) { Message msg = null; if (m_QueueMsg.TryDequeue(out msg)) { PtMessagePackage package = PtMessagePackage.Read(msg.Data); notifier.Send((C2SMessageId)package.MessageId, package.Content, msg); //Notify.NotifyMgr.Instance.Send((C2SMessageId)package.MessageId,new Notify.Notification() { Params = new object[] { package.Content,msg} }); } } }