Expose PlaylistItem.APIBeatmap for now

This commit is contained in:
Dean Herbert 2021-11-01 16:44:39 +09:00
parent dd948e5ada
commit 1d8e253112

View File

@ -43,7 +43,7 @@ namespace osu.Game.Online.Rooms
public readonly BindableList<Mod> RequiredMods = new BindableList<Mod>();
[JsonProperty("beatmap")]
private APIBeatmap apiBeatmap { get; set; }
public APIBeatmap APIBeatmap { get; set; }
private APIMod[] allowedModsBacking;
@ -71,7 +71,7 @@ namespace osu.Game.Online.Rooms
public void MapObjects(BeatmapManager beatmaps, RulesetStore rulesets)
{
Beatmap.Value ??= apiBeatmap.ToBeatmapInfo(rulesets);
Beatmap.Value ??= APIBeatmap.ToBeatmapInfo(rulesets);
Ruleset.Value ??= rulesets.GetRuleset(RulesetID);
Ruleset rulesetInstance = Ruleset.Value.CreateInstance();