2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-04-29 02:13:54 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Game.Rulesets.Objects;
|
2017-04-29 02:08:48 +08:00
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Replays
|
|
|
|
|
{
|
|
|
|
|
public abstract class AutoGenerator<T> : IAutoGenerator
|
|
|
|
|
where T : HitObject
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates the auto replay and returns it.
|
|
|
|
|
/// Every subclass of OsuAutoGeneratorBase should implement this!
|
|
|
|
|
/// </summary>
|
|
|
|
|
public abstract Replay Generate();
|
|
|
|
|
|
|
|
|
|
#region Parameters
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The beatmap we're making.
|
|
|
|
|
/// </summary>
|
|
|
|
|
protected Beatmap<T> Beatmap;
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
2017-04-29 02:30:34 +08:00
|
|
|
|
protected AutoGenerator(Beatmap<T> beatmap)
|
2017-04-29 02:08:48 +08:00
|
|
|
|
{
|
|
|
|
|
Beatmap = beatmap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Constants
|
|
|
|
|
|
|
|
|
|
// Shared amongst all modes
|
|
|
|
|
protected const double KEY_UP_DELAY = 50;
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|