1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 03:17:25 +08:00
osu-lazer/osu.Game/Rulesets/Edit/Tools/HitObjectCompositionTool.cs

31 lines
945 B
C#
Raw Normal View History

2018-04-13 17:19:50 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2018-05-20 18:22:42 +08:00
using System;
using osu.Framework.Input;
2018-04-13 17:19:50 +08:00
using osu.Game.Rulesets.Objects;
namespace osu.Game.Rulesets.Edit.Tools
{
public class HitObjectCompositionTool<T> : ICompositionTool
where T : HitObject
{
2018-05-20 18:22:42 +08:00
public string Name { get; } = typeof(T).Name;
2018-05-22 14:00:11 +08:00
public Func<InputState, MouseDownEventArgs, bool> OnMouseDown;
public Func<InputState, MouseDownEventArgs, bool> OnMouseUp;
public Func<InputState, MouseDownEventArgs, bool> OnDragStart;
public Func<InputState, MouseDownEventArgs, bool> OnDragRequested;
public Func<InputState, MouseDownEventArgs, bool> OnDragEnd;
2018-05-20 18:22:42 +08:00
public HitObjectCompositionTool()
{
}
public HitObjectCompositionTool(string name)
{
Name = name;
}
2018-04-13 17:19:50 +08:00
}
}