Esempio n. 1
0
        /// <summary>
        /// 任务完成的消息响应
        /// </summary>
        /// <param name="args"></param>
        void OnTaskCompleted(CEventBaseArgs args)
        {
            var taskId = (uint)(args.arg);

            if (TaskDefine.GetTaskType(taskId) != GameConst.QUEST_MAIN)
            {
                m_FinishedBranchTask[taskId] = true;
            }

            // 已经开始监听并且没有正在执行的指引步骤或者正在执行的是弱指引
            if (m_ListenerStarted)
            {
                if (!m_IsPlayingGuideStep || (m_PlayingGuideStep != null && !m_PlayingGuideStep.IsForcible))
                {
                    m_Dirty = true;
                }
            }
        }
Esempio n. 2
0
 private ushort GetTaskType(uint task_id)
 {
     return(TaskDefine.GetTaskType(task_id));
 }