Initial support code for beatmap loading

This commit is contained in:
Drew DeVault
2016-10-04 16:29:08 -04:00
parent 768c3bc31e
commit bc69aa1455
11 changed files with 274 additions and 6 deletions

View File

@ -0,0 +1,42 @@
using System;
using System.IO;
namespace osu.Game.Beatmaps.IO
{
public class OszArchiveReader : ArchiveReader
{
static OszArchiveReader()
{
AddReader<OszArchiveReader>((storage, path) =>
{
using (var stream = storage.GetStream(path))
{
// TODO: detect if osz
return false;
}
});
}
private Stream Archive { get; set; }
public OszArchiveReader(Stream archive)
{
Archive = archive;
}
public override string[] ReadBeatmaps()
{
throw new NotImplementedException();
}
public override Stream ReadFile(string name)
{
throw new NotImplementedException();
}
public override Metadata ReadMetadata()
{
throw new NotImplementedException();
}
}
}