1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 11:02:57 +08:00

Use cleaner array creation expression

This commit is contained in:
Andrei Zavatski 2025-01-07 01:23:19 +03:00
parent 791ca915e4
commit d35b308745

View File

@ -33,12 +33,12 @@ namespace osu.Game.Audio
/// <summary> /// <summary>
/// All valid sample addition constants. /// All valid sample addition constants.
/// </summary> /// </summary>
public static readonly string[] ALL_ADDITIONS = new[] { HIT_WHISTLE, HIT_FINISH, HIT_CLAP }; public static readonly string[] ALL_ADDITIONS = [HIT_WHISTLE, HIT_FINISH, HIT_CLAP];
/// <summary> /// <summary>
/// All valid bank constants. /// All valid bank constants.
/// </summary> /// </summary>
public static readonly string[] ALL_BANKS = new[] { BANK_NORMAL, BANK_SOFT, BANK_DRUM }; public static readonly string[] ALL_BANKS = [BANK_NORMAL, BANK_SOFT, BANK_DRUM];
/// <summary> /// <summary>
/// The name of the sample to load. /// The name of the sample to load.