Interface IHitObjectWithEvents
Common properties among Hit Objects. Used so BeatmapRunner can handle Hit Objects regardless of what type they are.
Inherited Members
Namespace: MouseDance.Runtime
Assembly: MouseDance.Runtime.dll
Syntax
public interface IHitObjectWithEvents : IHitObject
Methods
OnPressed(Int32)
Notifies the Hit Object that it's been pressed by the player.
Declaration
void OnPressed(int idxThatNeedsToBePressed)
Parameters
Type | Name | Description |
---|---|---|
Int32 | idxThatNeedsToBePressed | The current Hit Object index that should be pressed right now. If this doesn't match the Hit Object's index, then the player clicked out-of-sequence. |
OnReleased()
Notifies the Hit Object that the player released their press on this Hit Object. Only needed for Hit Objects that need to know whether the player released their mouse button (or touch input).
Declaration
void OnReleased()
Resize(Single, Single)
Resize this currently displayed Hit Object.
Declaration
void Resize(float radius, float radiusMultiplier)
Parameters
Type | Name | Description |
---|---|---|
Single | radius | New size of Hit Object in pixel radius. |
Single | radiusMultiplier | Multiplier to the size coming from CircleRadiusMultiplier. |