Refactor database to reuse existing types

This commit is contained in:
Drew DeVault
2016-10-07 13:50:34 -04:00
parent 23bc26ddac
commit e9a45de51f
11 changed files with 44 additions and 67 deletions

View File

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using osu.Framework.OS;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.Formats;
using osu.Game.Beatmaps.IO;
using SQLite;
@ -52,7 +53,7 @@ namespace osu.Game.Database
var decoder = BeatmapDecoder.GetDecoder(stream);
var beatmap = decoder.Decode(stream);
maps.Add(new Beatmap
{
{
BeatmapID = beatmap.BeatmapID,
BeatmapSetID = metadata.BeatmapSetID,
// TODO: Import more things