Interface IHitObjectSizeCalculator
Implement this if you want to edit the size of each Hit Object just as they are about to be spawned. Make sure to call SetHitObjectSizeCalculator(IHitObjectSizeCalculator) before starting the game, for this to actually work.
Namespace: MouseDance.Runtime.Callbacks
Assembly: MouseDance.Runtime.dll
Syntax
public interface IHitObjectSizeCalculator
Methods
GetHitCircleRadius(Int32, Int32, Int32, HitCircle, Beatmap)
Determine what radius will be for this Hit Circle.
Declaration
float GetHitCircleRadius(int idx, int comboCounter, int comboColourIdx, HitCircle hitCircle, Beatmap beatmap)
Parameters
Type | Name | Description |
---|---|---|
Int32 | idx | Index position of the Hit Circle in the entire Beatmap. Starts at 0. |
Int32 | comboCounter | Number to be displayed on the Hit Circle. |
Int32 | comboColourIdx | What index of colour this Hit Circle is given. Starts at 0. |
OsuParsers.Beatmaps.Objects.HitCircle | hitCircle | Extra info about the Hit Circle. |
OsuParsers.Beatmaps.Beatmap | beatmap | Data on the entire Beatmap. |
Returns
Type | Description |
---|---|
Single | Radius (in osu!pixels) that the Hit Circle will be in. |
GetSliderCircleRadius(Int32, Int32, Int32, Slider, Beatmap)
Determine what radius will be for this Slider.
Declaration
float GetSliderCircleRadius(int idx, int comboCounter, int comboColourIdx, Slider slider, Beatmap beatmap)
Parameters
Type | Name | Description |
---|---|---|
Int32 | idx | Index position of this Slider in the entire Beatmap. Starts at 0. |
Int32 | comboCounter | Combo Number to be displayed on the Slider. |
Int32 | comboColourIdx | What index of colour this Slider is given. Starts at 0. |
OsuParsers.Beatmaps.Objects.Slider | slider | Extra info about the Slider. |
OsuParsers.Beatmaps.Beatmap | beatmap | Data on the entire Beatmap. |
Returns
Type | Description |
---|---|
Single | Radius (in osu!pixels) that the Slider will be in. |