1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

IsDuel -> Dual

This commit is contained in:
andy840119 2019-02-28 23:40:03 +09:00
parent 0e30bf902d
commit e634475bf4
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
protected override IEnumerable<Type> ValidConversionTypes { get; } = new[] { typeof(IHasXPosition) }; protected override IEnumerable<Type> ValidConversionTypes { get; } = new[] { typeof(IHasXPosition) };
public int TargetColumns; public int TargetColumns;
public bool IsDuel; public bool Dual;
public readonly bool IsForCurrentRuleset; public readonly bool IsForCurrentRuleset;
// Internal for testing purposes // Internal for testing purposes
@ -51,7 +51,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
if (TargetColumns >= 10) if (TargetColumns >= 10)
{ {
TargetColumns = TargetColumns / 2; TargetColumns = TargetColumns / 2;
IsDuel = true; Dual = true;
} }
} }
else else
@ -82,7 +82,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
{ {
beatmap = new ManiaBeatmap(new StageDefinition { Columns = TargetColumns }); beatmap = new ManiaBeatmap(new StageDefinition { Columns = TargetColumns });
if(IsDuel) if(Dual)
beatmap.Stages.Add(new StageDefinition { Columns = TargetColumns }); beatmap.Stages.Add(new StageDefinition { Columns = TargetColumns });
return beatmap; return beatmap;

View File

@ -27,7 +27,7 @@ namespace osu.Game.Rulesets.Mania.Mods
if (isForCurrentRuleset) if (isForCurrentRuleset)
return; return;
mbc.IsDuel = true; mbc.Dual = true;
} }
public PlayfieldType PlayfieldType => PlayfieldType.Dual; public PlayfieldType PlayfieldType => PlayfieldType.Dual;