Skip to content

Commit

Permalink
Add MapInfo.setBeatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Oct 26, 2024
1 parent bae19d7 commit b2137e3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/osu-base/src/online/MapInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,17 @@ export class MapInfo<THasBeatmap extends boolean = boolean> {
});
}

/**
* Sets the parsed beatmap that is associated with this `MapInfo`.
*
* This is used as an alternative to downloading the beatmap file in case the beatmap file already exists locally.
*
* @param beatmap The beatmap to associate with this `MapInfo`.
*/
setBeatmap(beatmap: Beatmap) {
this.cachedBeatmap = beatmap;
}

/**
* Returns a string representative of the class.
*/
Expand Down

0 comments on commit b2137e3

Please sign in to comment.