mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:47:52 +08:00
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
// 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;
|
|
using System.Collections.Generic;
|
|
using osu.Game.Rulesets;
|
|
using osu.Game.Rulesets.Objects;
|
|
|
|
namespace osu.Game.Beatmaps
|
|
{
|
|
/// <summary>
|
|
/// Provides functionality to convert a <see cref="IBeatmap"/> for a <see cref="Ruleset"/>.
|
|
/// </summary>
|
|
public interface IBeatmapConverter
|
|
{
|
|
/// <summary>
|
|
/// Invoked when a <see cref="HitObject"/> has been converted.
|
|
/// The first argument contains the <see cref="HitObject"/> that was converted.
|
|
/// The second argument contains the <see cref="HitObject"/>s that were output from the conversion process.
|
|
/// </summary>
|
|
event Action<HitObject, IEnumerable<HitObject>> ObjectConverted;
|
|
|
|
IBeatmap Beatmap { get; }
|
|
|
|
/// <summary>
|
|
/// Whether <see cref="Beatmap"/> can be converted by this <see cref="IBeatmapConverter"/>.
|
|
/// </summary>
|
|
bool CanConvert { get; }
|
|
|
|
/// <summary>
|
|
/// Converts <see cref="Beatmap"/>.
|
|
/// </summary>
|
|
IBeatmap Convert();
|
|
}
|
|
}
|