mirror of
https://github.com/ppy/osu
synced 2025-01-11 00:29:30 +00:00
Expose PlaylistItem.APIBeatmap
for now
This commit is contained in:
parent
dd948e5ada
commit
1d8e253112
@ -43,7 +43,7 @@ namespace osu.Game.Online.Rooms
|
|||||||
public readonly BindableList<Mod> RequiredMods = new BindableList<Mod>();
|
public readonly BindableList<Mod> RequiredMods = new BindableList<Mod>();
|
||||||
|
|
||||||
[JsonProperty("beatmap")]
|
[JsonProperty("beatmap")]
|
||||||
private APIBeatmap apiBeatmap { get; set; }
|
public APIBeatmap APIBeatmap { get; set; }
|
||||||
|
|
||||||
private APIMod[] allowedModsBacking;
|
private APIMod[] allowedModsBacking;
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ namespace osu.Game.Online.Rooms
|
|||||||
|
|
||||||
public void MapObjects(BeatmapManager beatmaps, RulesetStore rulesets)
|
public void MapObjects(BeatmapManager beatmaps, RulesetStore rulesets)
|
||||||
{
|
{
|
||||||
Beatmap.Value ??= apiBeatmap.ToBeatmapInfo(rulesets);
|
Beatmap.Value ??= APIBeatmap.ToBeatmapInfo(rulesets);
|
||||||
Ruleset.Value ??= rulesets.GetRuleset(RulesetID);
|
Ruleset.Value ??= rulesets.GetRuleset(RulesetID);
|
||||||
|
|
||||||
Ruleset rulesetInstance = Ruleset.Value.CreateInstance();
|
Ruleset rulesetInstance = Ruleset.Value.CreateInstance();
|
||||||
|
Loading…
Reference in New Issue
Block a user