mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 10:22:56 +08:00
getVariantType -> getPlayfieldType
This commit is contained in:
parent
17d75b349d
commit
eede8333ba
@ -132,7 +132,7 @@ namespace osu.Game.Rulesets.Mania
|
||||
|
||||
public override IEnumerable<KeyBinding> GetDefaultKeyBindings(int variant = 0)
|
||||
{
|
||||
switch (getVariantType(variant))
|
||||
switch (getPlayfieldType(variant))
|
||||
{
|
||||
case PlayfieldType.Single:
|
||||
return new VariantMappingGenerator
|
||||
@ -208,7 +208,7 @@ namespace osu.Game.Rulesets.Mania
|
||||
|
||||
public override string GetVariantName(int variant)
|
||||
{
|
||||
switch (getVariantType(variant))
|
||||
switch (getPlayfieldType(variant))
|
||||
{
|
||||
default:
|
||||
return $"{variant}K";
|
||||
@ -238,7 +238,7 @@ namespace osu.Game.Rulesets.Mania
|
||||
/// </summary>
|
||||
/// <param name="variant">The variant value.</param>
|
||||
/// <returns>The <see cref="PlayfieldType"/> that corresponds to <paramref name="variant"/>.</returns>
|
||||
private PlayfieldType getVariantType(int variant)
|
||||
private PlayfieldType getPlayfieldType(int variant)
|
||||
{
|
||||
return (PlayfieldType)Enum.GetValues(typeof(PlayfieldType)).Cast<int>().OrderByDescending(i => i).First(v => variant >= v);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user