예제 #1
0
        public IActionResult Index(int index)
        {
            var run       = _runFinder.GetByIndex(index);
            var viewmodel = new RunDetailViewModel(run);

            viewmodel.FirstAdvancement = _quickestEventEnhancer.Extend(run.Import);
            viewmodel.PlayerEvents     = _playerEventEnhancer.Extend(run.Import);
            viewmodel.MapRender        = _renderState.Get(run.Analytics.Worldname);

            return(View(viewmodel));
        }
예제 #2
0
        public IActionResult Name(string worldname)
        {
            var run       = _runFinder.GetByName(worldname);
            var viewmodel = new RunDetailViewModel(run);

            viewmodel.FirstAdvancement = _quickestEventEnhancer.Extend(run.Import);
            viewmodel.PlayerEvents     = _playerEventEnhancer.Extend(run.Import);
            viewmodel.MapRender        = _renderState.Get(worldname);
            viewmodel.OverviewerUrl    = _config.OverviewerUrl.ToString();

            return(View("Index", viewmodel));
        }