2019-01-24 08:43:03 +00: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.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2020-09-09 09:35:25 +00:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
2017-11-30 07:58:14 +00:00
|
|
|
namespace osu.Game.Rulesets.Edit.Tools
|
|
|
|
{
|
2018-10-03 07:27:26 +00:00
|
|
|
public abstract class HitObjectCompositionTool
|
2017-11-30 07:58:14 +00:00
|
|
|
{
|
2018-10-03 07:27:26 +00:00
|
|
|
public readonly string Name;
|
2018-05-20 10:22:42 +00:00
|
|
|
|
2018-10-03 07:27:26 +00:00
|
|
|
protected HitObjectCompositionTool(string name)
|
2018-05-20 10:22:42 +00:00
|
|
|
{
|
|
|
|
Name = name;
|
|
|
|
}
|
2018-10-03 07:27:26 +00:00
|
|
|
|
2018-11-06 09:06:34 +00:00
|
|
|
public abstract PlacementBlueprint CreatePlacementBlueprint();
|
2020-01-28 06:00:45 +00:00
|
|
|
|
2020-09-09 09:35:25 +00:00
|
|
|
public virtual Drawable CreateIcon() => null;
|
|
|
|
|
2020-01-28 06:00:45 +00:00
|
|
|
public override string ToString() => Name;
|
2017-11-30 07:58:14 +00:00
|
|
|
}
|
|
|
|
}
|