mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 02:22:59 +08:00
23 lines
823 B
C#
23 lines
823 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Game.Rulesets.Mods;
|
|
using osu.Game.Rulesets.Taiko.Objects;
|
|
using osu.Game.Rulesets.Taiko.UI;
|
|
using osu.Game.Rulesets.UI;
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Mods
|
|
{
|
|
public class TaikoModClassic : ModClassic, IApplicableToDrawableRuleset<TaikoHitObject>
|
|
{
|
|
public void ApplyToDrawableRuleset(DrawableRuleset<TaikoHitObject> drawableRuleset)
|
|
{
|
|
var drawableTaikoRuleset = (DrawableTaikoRuleset)drawableRuleset;
|
|
drawableTaikoRuleset.LockPlayfieldMaxAspect.Value = false;
|
|
|
|
var playfield = (TaikoPlayfield)drawableRuleset.Playfield;
|
|
playfield.ClassicHitTargetPosition.Value = true;
|
|
}
|
|
}
|
|
}
|