mirror of https://github.com/ppy/osu
27 lines
684 B
C#
27 lines
684 B
C#
// 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.
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Localisation;
|
|
|
|
namespace osu.Game.Rulesets.Edit.Tools
|
|
{
|
|
public abstract class CompositionTool
|
|
{
|
|
public readonly string Name;
|
|
|
|
public LocalisableString TooltipText { get; init; }
|
|
|
|
protected CompositionTool(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
public abstract PlacementBlueprint? CreatePlacementBlueprint();
|
|
|
|
public virtual Drawable? CreateIcon() => null;
|
|
|
|
public override string ToString() => Name;
|
|
}
|
|
}
|