Skip to content

Commit

Permalink
Change handler interface should support the generate handler with enum.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Sep 26, 2023
1 parent be4fdc6 commit 3d519c8
Showing 1 changed file with 13 additions and 0 deletions.
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>
Expand Down

0 comments on commit 3d519c8

Please sign in to comment.