예제 #1
0
파일: Entry.cs 프로젝트: larnin/Spectrum
        private void Finished(object sender, FinishedEventArgs e)
        {
            if (e.Type != RaceEndType.Finished)
            {
                return;
            }

            if (!_active || !_started)
            {
                return;
            }

            _bestTrackTimes.Add(_thisTrackBest);
            var finished = new SplitTrack(_previousTrackTimes.LastOrDefault(), TimeSpan.FromMilliseconds(e.FinalTime), G.Sys.GameManager_.Level_.Name_);

            _previousTrackTimes.Add(finished);

            _started = false;
            ShowPressed(8f);
            _finished = true;
        }
예제 #2
0
 public SplitTrack(SplitTrack oldTime, TimeSpan newTime, string trackName)
 {
     _old      = oldTime.Total;
     _new      = newTime;
     TrackName = trackName;
 }