1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-22 20:12:56 +08:00

Add comment warning about enum entry order in GlobalAction

This commit is contained in:
Marvin Schürz 2025-02-11 18:04:23 +01:00
parent 46e8187d48
commit a8f07ae7b1

View File

@ -227,6 +227,10 @@ namespace osu.Game.Input.Bindings
};
}
/// <remarks>
/// IMPORTANT: New entries should always be added at the end of the enum, as key bindings are stored using the enum's numeric value and
/// changes in order would cause key bindings to get associated with the wrong action.
/// </remarks>
public enum GlobalAction
{
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleChat))]