1
0
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:
Gagah Pangeran 2020-07-20 17:36:42 +07:00
parent 6a144fba80
commit acbf13ddc4
2 changed files with 5 additions and 0 deletions

View File

@ -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]

View File

@ -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;
}
}