Interface ISlider
Used by the SliderBall to notify the Slider its rolling through of events.
Inherited Members
Namespace: MouseDance.Runtime
Assembly: MouseDance.Runtime.dll
Syntax
public interface ISlider : IHitObjectWithEvents, IHitObject
Methods
OnBallReachedPositionInPath(Int32, Int32, Boolean, Single)
Called by the SliderBall to notify this Slider of its progress rolling.
Declaration
void OnBallReachedPositionInPath(int pathIdx, int numberOfTimes, bool forwardDirection, float ballDistanceToMouse)
Parameters
Type | Name | Description |
---|---|---|
Int32 | pathIdx | The position that the ball has reached. |
Int32 | numberOfTimes | Number of times left. 1 means this is the final movement. |
Boolean | forwardDirection | Whether we are moving forward (from head to tail) or reverse (from tail to head). |
Single | ballDistanceToMouse | Current distance of mouse cursor to ball at the moment. |
OnPressedBody()
Called by the BeatmapRunner to notify this Slider that the player clicked on the SliderBall while it's already in-the-process of moving through this Slider.
Declaration
void OnPressedBody()
OnReachedEnd()
Called by the BeatmapRunner to notify this Slider that its End Time has been reached.
Declaration
void OnReachedEnd()