1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-19 05:17:17 +08:00

Move public methods up

This commit is contained in:
Dean Herbert 2020-02-14 17:03:23 +09:00
parent cd2d1b0669
commit 4ce687d608

View File

@ -24,6 +24,18 @@ namespace osu.Game.Rulesets.Osu.Mods
/// </summary>
private const float relax_leniency = 3;
private bool wasHit;
private bool wasLeft;
private OsuInputManager osuInputManager;
public void ApplyToDrawableRuleset(DrawableRuleset<OsuHitObject> drawableRuleset)
{
// grab the input manager for future use.
osuInputManager = (OsuInputManager)drawableRuleset.KeyBindingInputManager;
osuInputManager.AllowUserPresses = false;
}
public void Update(Playfield playfield)
{
bool requiresHold = false;
@ -79,11 +91,6 @@ namespace osu.Game.Rulesets.Osu.Mods
}
}
private bool wasHit;
private bool wasLeft;
private OsuInputManager osuInputManager;
private void addAction(bool hitting)
{
if (wasHit == hitting)
@ -104,12 +111,5 @@ namespace osu.Game.Rulesets.Osu.Mods
state.Apply(osuInputManager.CurrentState, osuInputManager);
}
public void ApplyToDrawableRuleset(DrawableRuleset<OsuHitObject> drawableRuleset)
{
// grab the input manager for future use.
osuInputManager = (OsuInputManager)drawableRuleset.KeyBindingInputManager;
osuInputManager.AllowUserPresses = false;
}
}
}