GetMgrID() публичный Метод

public GetMgrID ( ) : QMgrID
Результат QMgrID
Пример #1
0
	/// <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;
		}
	}
Пример #2
0
    /// <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;
        }
    }
Пример #3
0
    /// <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;
        }
    }
Пример #4
0
        /// <summary>
        /// 转发消息
        /// </summary>
        private void ForwardMsg(QMsg msg)
        {
            int tmpId = msg.GetMgrID();

            switch (tmpId)
            {
            case  QMgrID.UI:
                QUIManager.Instance.SendMsg(msg);
                break;
            }
        }
Пример #5
0
    /// <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;
        }
    }
Пример #6
0
		public void SendMsg(QMsg msg)
		{
			if ((ushort)msg.GetMgrID() == mMgrId)
			{
				ProcessMsg(msg);
			}
			else 
			{
				QMsgCenter.Instance.SendToMsg(msg);
			}
		}