2018-12-21 17:22:13 +08:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using osu.Game.Online.Multiplayer;
|
|
|
|
using osu.Game.Scoring;
|
|
|
|
using osu.Game.Screens.Multi.Ranking.Types;
|
|
|
|
using osu.Game.Screens.Ranking;
|
|
|
|
using osu.Game.Screens.Ranking.Types;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Multi.Ranking
|
|
|
|
{
|
2018-12-26 19:05:57 +08:00
|
|
|
public class MatchResults : Results
|
2018-12-21 17:22:13 +08:00
|
|
|
{
|
|
|
|
private readonly Room room;
|
|
|
|
|
2018-12-26 19:05:57 +08:00
|
|
|
public MatchResults(ScoreInfo score, Room room)
|
2018-12-21 17:22:13 +08:00
|
|
|
: base(score)
|
|
|
|
{
|
|
|
|
this.room = room;
|
|
|
|
}
|
|
|
|
|
2018-12-22 15:26:27 +08:00
|
|
|
protected override IEnumerable<IResultPageInfo> CreateResultPages() => new IResultPageInfo[]
|
2018-12-21 17:22:13 +08:00
|
|
|
{
|
2018-12-22 15:26:27 +08:00
|
|
|
new ScoreOverviewPageInfo(Score, Beatmap),
|
|
|
|
new BeatmapLeaderboardPageInfo(Score, Beatmap),
|
|
|
|
new RoomLeaderboardPageInfo(Score, Beatmap, room),
|
2018-12-21 17:22:13 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|