mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 23:37:26 +08:00
28 lines
750 B
C#
28 lines
750 B
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 osu.Framework.Input;
|
|
using osu.Game.Rulesets.Objects;
|
|
|
|
namespace osu.Game.Rulesets.Edit.Tools
|
|
{
|
|
public class HitObjectCompositionTool<T> : ICompositionTool
|
|
where T : HitObject
|
|
{
|
|
public string Name { get; } = typeof(T).Name;
|
|
|
|
public Action<InputState, MouseDownEventArgs, bool> OnMouseDown { get; }
|
|
public Action<InputState, MouseDownEventArgs, bool> OnMouseUp { get; }
|
|
|
|
public HitObjectCompositionTool()
|
|
{
|
|
}
|
|
|
|
public HitObjectCompositionTool(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
}
|
|
}
|