// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Game.Rulesets.Mania.Objects.Drawables { /// /// The head of a . /// public class DrawableHoldNoteHead : DrawableNote { protected override ManiaSkinComponents Component => ManiaSkinComponents.HoldNoteHead; public DrawableHoldNoteHead(DrawableHoldNote holdNote) : base(holdNote.HitObject.Head) { } public void UpdateResult() => base.UpdateResult(true); protected override void UpdateInitialTransforms() { base.UpdateInitialTransforms(); // This hitobject should never expire, so this is just a safe maximum. LifetimeEnd = LifetimeStart + 30000; } public override bool OnPressed(ManiaAction action) => false; // Handled by the hold note public override void OnReleased(ManiaAction action) { } } }