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

Search Results for

    Interface IBeatmapLoaded

    Implement this if you want to be notified when a Beatmap has been loaded by the Beatmap Runner. Make sure to call SetOnBeatmapLoaded(IBeatmapLoaded) before starting the game, for this to actually work.

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

    Methods

    OnBeatmapLoaded(Beatmap)

    Called after a beatmap has been loaded (with LoadAndStart) but right before the game is actually started. This can be used to edit the beatmap as much as you want before it is used. Make sure you call SetOnBeatmapLoaded(IBeatmapLoaded) before the game is started so that this actually gets called.

    Declaration
    void OnBeatmapLoaded(Beatmap beatmap)
    Parameters
    Type Name Description
    OsuParsers.Beatmaps.Beatmap beatmap

    Editable reference to the beatmap.

    Remarks

    This is only called once for every .osu file that has just been loaded. It is not called repeatedly when the song is restarted.