forked from karaoke-dev/karaoke
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change handler interface should support the generate handler with enum.
- Loading branch information
1 parent
be4fdc6
commit 3d519c8
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
osu.Game.Rulesets.Karaoke/Edit/ChangeHandlers/IAutoGenerateChangeHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Edit.ChangeHandlers; | ||
|
||
/// <summary> | ||
/// This interface is defined checking able to generate or detect the property, and make the change for the property. | ||
/// </summary> | ||
/// <typeparam name="TEnum"></typeparam> | ||
public interface IEnumAutoGenerateChangeHandler<in TEnum> where TEnum : Enum | ||
{ | ||
bool CanGenerate(TEnum property); | ||
|
||
void AutoGenerate(TEnum property); | ||
} | ||
|
||
/// <summary> | ||
/// This interface is defined checking able to generate or detect the property, and make the change for the property. | ||
/// </summary> | ||
|