MouseDance MouseDance
MouseDance MouseDance
MouseDance User Docs powered by DocFx, DiscordFx

Search Results for

    Interface IBeatmapScoreCalculator

    Implement this if you want to customize how player's score is calculated per Hit Object that the player hits. Remember to call SetScoreCalculator(IBeatmapScoreCalculator) before starting the game, for this to actually work.

    Namespace: MouseDance.Runtime.Callbacks
    Assembly: MouseDance.Runtime.dll
    Syntax
    public interface IBeatmapScoreCalculator

    Methods

    CalculateScore(IHitObject, Int32, Beatmap)

    Calculate the score the player will get for pressing a Hit Circle.

    Declaration
    int CalculateScore(IHitObject hitCircle, int gotHitCircleValue, Beatmap beatmap)
    Parameters
    Type Name Description
    IHitObject hitCircle

    The Hit Circle that was pressed that we're calculating score for.

    Int32 gotHitCircleValue

    The 50, 100, or 300 score that the player got for pressing this Hit Circle.

    OsuParsers.Beatmaps.Beatmap beatmap

    Entire beatmap. Apart from data on all the Hit Objects, this includes difficulty properties, among other things.

    Returns
    Type Description
    Int32

    How much is to be added to the player's score.

    CalculateScore(IHitObject, Int32, Int32, Int32, Boolean, Beatmap)

    Calculate the score the player will get for finishing a Slider.

    Declaration
    int CalculateScore(IHitObject slider, int gotSliderHeadScore, int collectedSliderParts, int totalSliderParts, bool wasPressEverReleased, Beatmap beatmap)
    Parameters
    Type Name Description
    IHitObject slider

    The Slider we're calculating score for.

    Int32 gotSliderHeadScore

    The 50, 100, or 300 score that the player got when they pressed this Slider's head.

    Int32 collectedSliderParts

    Amount of Slider parts that the player collected (head, ticks, tail, repeats).

    Int32 totalSliderParts

    Total number of parts the Slider has (head, ticks, tail, repeats).

    Boolean wasPressEverReleased

    Even if player has their mouse down right now, did player ever release their press of the button throughout the Slider?

    OsuParsers.Beatmaps.Beatmap beatmap

    Entire beatmap. Apart from data on all the Hit Objects, this includes difficulty properties, among other things.

    Returns
    Type Description
    Int32

    How much is to be added to the player's score.