コード例 #1
0
        /// <summary>
        /// 开始考试
        /// </summary>
        private void StartExam(ExamContext context)
        {
            Context = context;
            //每次开始考试都重置靠边停车的触发状态
            IsTriggerPullOver = false;
            Context.StartExam();
            ExamScore.Reset();
            ExamScore.VoiceBrokenRule = Settings.VoiceBrokenRule;
            VoiceStartExam();
            //超车项目语音删除掉!
            //Logger.Error("VoiceStartExam");
            InitMapItem();
            //todo:触发器主要是达到里程自动触发 靠边停车项目 目前暂时取消
            Messenger.Send(new ExamStartMessage(context));

            //InitMapItem();
        }
コード例 #2
0
 public async Task StartExamAsync(ExamContext context)
 {
     Speaker.CancelAllAsync();
     StartExam(context);
     PointSearcher.SetMapPoints(context.Map.MapPoints);
 }
コード例 #3
0
 public ExamItemExecutionContext(ExamContext context)
 {
     ExamContext = context;
     ExamGroup   = ExamContext.ExamGroup;
 }