mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
add epilepsy warning field
This commit is contained in:
parent
6a144fba80
commit
acbf13ddc4
@ -91,6 +91,8 @@ namespace osu.Game.Beatmaps
|
||||
public bool LetterboxInBreaks { get; set; }
|
||||
public bool WidescreenStoryboard { get; set; }
|
||||
|
||||
public bool EpilepsyWarning { get; set; }
|
||||
|
||||
// Editor
|
||||
// This bookmarks stuff is necessary because DB doesn't know how to store int[]
|
||||
[JsonIgnore]
|
||||
|
@ -175,6 +175,9 @@ namespace osu.Game.Beatmaps.Formats
|
||||
case @"WidescreenStoryboard":
|
||||
beatmap.BeatmapInfo.WidescreenStoryboard = Parsing.ParseInt(pair.Value) == 1;
|
||||
break;
|
||||
case @"EpilepsyWarning":
|
||||
beatmap.BeatmapInfo.EpilepsyWarning = Parsing.ParseInt(pair.Value) == 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user