mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Rename base class to LegacyModelImporter
This commit is contained in:
parent
2df793ca22
commit
a0fa030f55
@ -4,7 +4,7 @@ using osu.Game.IO;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public class LegacyBeatmapImporter : LegacyImporter<BeatmapSetInfo>
|
||||
public class LegacyBeatmapImporter : LegacyModelImporter<BeatmapSetInfo>
|
||||
{
|
||||
protected override string ImportFromStablePath => ".";
|
||||
|
||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Database
|
||||
/// <summary>
|
||||
/// A class which handles importing legacy user data of a single type from osu-stable.
|
||||
/// </summary>
|
||||
public abstract class LegacyImporter<TModel>
|
||||
public abstract class LegacyModelImporter<TModel>
|
||||
where TModel : class
|
||||
{
|
||||
/// <summary>
|
||||
@ -29,7 +29,7 @@ namespace osu.Game.Database
|
||||
|
||||
protected readonly IModelImporter<TModel> Importer;
|
||||
|
||||
protected LegacyImporter(IModelImporter<TModel> importer)
|
||||
protected LegacyModelImporter(IModelImporter<TModel> importer)
|
||||
{
|
||||
Importer = importer;
|
||||
}
|
@ -7,7 +7,7 @@ using osu.Game.Scoring;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public class LegacyScoreImporter : LegacyImporter<ScoreInfo>
|
||||
public class LegacyScoreImporter : LegacyModelImporter<ScoreInfo>
|
||||
{
|
||||
protected override string ImportFromStablePath => Path.Combine("Data", "r");
|
||||
|
||||
|
@ -2,7 +2,7 @@ using osu.Game.Skinning;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public class LegacySkinImporter : LegacyImporter<SkinInfo>
|
||||
public class LegacySkinImporter : LegacyModelImporter<SkinInfo>
|
||||
{
|
||||
protected override string ImportFromStablePath => "Skins";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user