mirror of
https://github.com/ppy/osu
synced 2025-01-13 01:21:08 +00:00
Add the ability to retrieve (fallback) metadata from a beatmap.
This commit is contained in:
parent
62d4af9798
commit
2cdda98b47
@ -1,7 +1,6 @@
|
||||
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
||||
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using OpenTK.Graphics;
|
||||
using osu.Game.Beatmaps.Objects;
|
||||
@ -13,6 +12,7 @@ namespace osu.Game.Beatmaps
|
||||
public class Beatmap
|
||||
{
|
||||
public BeatmapInfo BeatmapInfo { get; set; }
|
||||
public BeatmapMetadata Metadata => BeatmapInfo?.Metadata ?? BeatmapInfo?.BeatmapSet?.Metadata;
|
||||
public List<HitObject> HitObjects { get; set; }
|
||||
public List<ControlPoint> ControlPoints { get; set; }
|
||||
public List<Color4> ComboColors { get; set; }
|
||||
|
Loading…
Reference in New Issue
Block a user