1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:47:24 +08:00

Implement background/video/break encoding

This commit is contained in:
smoogipoo 2019-12-12 18:47:28 +09:00
parent d1dc3456d1
commit e09bbf0315

View File

@ -129,7 +129,11 @@ namespace osu.Game.Beatmaps.Formats
private void handleEvents(TextWriter writer)
{
// Todo: Storyboard events
writer.WriteLine(FormattableString.Invariant($"{(int)LegacyEventType.Background},0,{beatmap.BeatmapInfo.Metadata.BackgroundFile}"));
writer.WriteLine(FormattableString.Invariant($"{(int)LegacyEventType.Video},0,{beatmap.BeatmapInfo.Metadata.VideoFile}"));
foreach (var b in beatmap.Breaks)
writer.WriteLine(FormattableString.Invariant($"{(int)LegacyEventType.Break},{b.StartTime},{b.EndTime}"));
}
private void handleTimingPoints(TextWriter writer)