2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-03-31 14:59:53 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
using osu.Game.Rulesets.Replays;
|
2017-03-31 14:59:53 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play
|
|
|
|
|
{
|
|
|
|
|
public class ReplayPlayer : Player
|
|
|
|
|
{
|
|
|
|
|
public Replay Replay;
|
|
|
|
|
|
|
|
|
|
public ReplayPlayer(Replay replay)
|
|
|
|
|
{
|
|
|
|
|
Replay = replay;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void LoadComplete()
|
|
|
|
|
{
|
|
|
|
|
base.LoadComplete();
|
2017-08-09 12:28:29 +08:00
|
|
|
|
RulesetContainer.SetReplay(Replay);
|
2017-03-31 14:59:53 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|