inline single-use constants

This commit is contained in:
LastExceed 2020-07-12 14:53:40 +02:00
parent 3606febe31
commit bdf680aecb
1 changed files with 2 additions and 5 deletions

View File

@ -30,9 +30,6 @@ public class ManiaModFadeIn : Mod, IApplicableToDrawableRuleset<ManiaHitObject>
public override bool Ranked => true;
public override Type[] IncompatibleMods => new[] { typeof(ModFlashlight<ManiaHitObject>) };
private const float lanecover_size_filled = 0.5f;
private const float lanecover_size_gradient = 0.25f;
public void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRuleset)
{
ManiaPlayfield maniaPlayfield = (ManiaPlayfield)drawableRuleset.Playfield;
@ -42,8 +39,8 @@ public void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRules
column.HitObjectArea.ChildrenOfType<BufferedContainer>().First().Add(new LaneCover(false)
{
RelativeSizeAxes = Axes.Both,
SizeFilled = lanecover_size_filled,
SizeGradient = lanecover_size_gradient
SizeFilled = 0.5f,
SizeGradient = 0.25f
});
}
}