/// <summary> /// 转发消息 /// </summary> private void ForwardMsg(QMsg msg) { QMgrID tmpId = msg.GetMgrID(); switch (tmpId) { case QMgrID.AB: break; case QMgrID.Sound: QSoundMgr.Instance.SendMsg (msg); break; case QMgrID.CharactorManager: break; case QMgrID.Game: break; case QMgrID.NetManager: break; case QMgrID.NPCManager: break; case QMgrID.UI: break; default: break; } }
/// <summary> /// 转发消息 /// </summary> private void ForwardMsg(QMsg msg) { QMgrID tmpId = msg.GetMgrID(); switch (tmpId) { case QMgrID.AB: break; case QMgrID.Sound: QSoundMgr.Instance.SendMsg(msg); break; case QMgrID.CharactorManager: break; case QMgrID.Game: break; case QMgrID.NetManager: break; case QMgrID.NPCManager: break; case QMgrID.UI: break; default: break; } }
/// <summary> /// 转发消息 /// </summary> private void ForwardMsg(QMsg tempMsg) { QMgrID tmpId = tempMsg.GetMgrID(); switch (tmpId) { case QMgrID.AB: break; case QMgrID.Sound: break; case QMgrID.CharactorManager: break; case QMgrID.Game: break; case QMgrID.NetManager: break; case QMgrID.NPCManager: break; case QMgrID.UI: break; default: break; } }
/// <summary> /// 转发消息 /// </summary> private void ForwardMsg(QMsg msg) { int tmpId = msg.GetMgrID(); switch (tmpId) { case QMgrID.UI: QUIManager.Instance.SendMsg(msg); break; } }
/// <summary> /// 转发消息 /// </summary> private static void ForwardMsg(QMsg msg) { int tmpId = msg.GetMgrID(); switch (tmpId) { case QMgrID.AB: break; case QMgrID.Sound: break; case QMgrID.CharactorManager: break; case QMgrID.Framework: break; case QMgrID.Network: NetManager.Instance.SendMsg(msg); break; case QMgrID.NPCManager: break; case QMgrID.UI: QUIManager.Instance.SendMsg(msg); break; case QMgrID.Data: ToDoList.ToDoListManager.Instance.SendMsg(msg); break; default: break; } }
public void SendMsg(QMsg msg) { if ((ushort)msg.GetMgrID() == mMgrId) { ProcessMsg(msg); } else { QMsgCenter.Instance.SendToMsg(msg); } }