2021-05-25 17:09:24 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2022-03-29 15:27:42 +08:00
|
|
|
using System;
|
2021-05-25 17:09:24 +08:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
using osu.Game.Scoring;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
|
|
{
|
2022-03-29 15:27:42 +08:00
|
|
|
[Obsolete("Use ICreateReplayData instead")] // Can be removed 20220929
|
|
|
|
public interface ICreateReplay : ICreateReplayData
|
2021-05-25 17:09:24 +08:00
|
|
|
{
|
|
|
|
public Score CreateReplayScore(IBeatmap beatmap, IReadOnlyList<Mod> mods);
|
2022-03-29 15:27:42 +08:00
|
|
|
|
|
|
|
ModReplayData ICreateReplayData.CreateReplayData(IBeatmap beatmap, IReadOnlyList<Mod> mods)
|
|
|
|
{
|
|
|
|
var replayScore = CreateReplayScore(beatmap, mods);
|
2022-03-31 10:34:23 +08:00
|
|
|
return new ModReplayData(replayScore.Replay, new ModCreatedUser { Username = replayScore.ScoreInfo.User.Username });
|
2022-03-29 15:27:42 +08:00
|
|
|
}
|
2021-05-25 17:09:24 +08:00
|
|
|
}
|
|
|
|
}
|