mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Refactor database to reuse existing types
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user