mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Initial support code for beatmap loading
This commit is contained in:
42
osu.Game/Beatmaps/IO/OszArchiveReader.cs
Normal file
42
osu.Game/Beatmaps/IO/OszArchiveReader.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user