mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:23:21 +08:00
Implement background/video/break encoding
This commit is contained in:
parent
d1dc3456d1
commit
e09bbf0315
@ -129,7 +129,11 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private void handleEvents(TextWriter writer)
|
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)
|
private void handleTimingPoints(TextWriter writer)
|
||||||
|
Loading…
Reference in New Issue
Block a user