コード例 #1
0
        private void act_OnLogLineRead(bool isImport, LogLineEventArgs logInfo)
        {
            if (isImport || timeline == null)
            {
                return;
            }

            string line = logInfo.logLine;

            TimelineAnchorData anchor = timeline.FindAnchorMatchingLogline(CurrentTime, logInfo.logLine);

            if (anchor != null)
            {
                if (anchor.Jump == 0)
                {
                    CurrentTime = 0;
                    Paused      = true;
                }
                else
                {
                    CurrentTime = anchor.Jump > 0 ? anchor.Jump : anchor.TimeFromStart;
                    Paused      = false;
                }
            }
        }
コード例 #2
0
        /// <summary> ログを解析してジャンプ/シンクの処理を実行します。
        /// </summary>
        /// <param name="pLine"></param>
        public void LogAnalyz(string pLine)
        {
            TimelineAnchorData anchor = this.TimelineObjectModel.FindAnchorMatchingLogline(pLine);

            if (anchor != null)
            {
                if (anchor.Jump == 0)
                {
                    this.TimelineControlModule.TimerStop(this.CommonDataModel, this.TimelineObjectModel);
                }
                else
                {
                    double time = anchor.Jump > 0 ? anchor.Jump : anchor.TimeFromStart;
                    this.TimelineObjectModel.TimerData.CurrentCombatTime = time;
                    this.TimelineControlModule.CurrentCombatRelativeClock.CurrentTime = time;
                    this.TimelineControlModule.TimerStart(this.CommonDataModel, this.TimelineObjectModel);
                }
            }
        }