mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 12:42:56 +08:00
Remove unused automapper setup for the time being
This commit is contained in:
parent
710599c521
commit
37bf79e8a4
@ -3,13 +3,7 @@
|
|||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
using osu.Game.Beatmaps;
|
|
||||||
using osu.Game.Configuration;
|
|
||||||
using osu.Game.Input.Bindings;
|
using osu.Game.Input.Bindings;
|
||||||
using osu.Game.IO;
|
|
||||||
using osu.Game.Rulesets;
|
|
||||||
using osu.Game.Scoring;
|
|
||||||
using osu.Game.Skinning;
|
|
||||||
using Realms;
|
using Realms;
|
||||||
|
|
||||||
namespace osu.Game.Database
|
namespace osu.Game.Database
|
||||||
@ -21,22 +15,7 @@ namespace osu.Game.Database
|
|||||||
c.ShouldMapField = fi => false;
|
c.ShouldMapField = fi => false;
|
||||||
c.ShouldMapProperty = pi => pi.SetMethod != null && pi.SetMethod.IsPublic;
|
c.ShouldMapProperty = pi => pi.SetMethod != null && pi.SetMethod.IsPublic;
|
||||||
|
|
||||||
c.CreateMap<BeatmapDifficulty, BeatmapDifficulty>();
|
|
||||||
c.CreateMap<BeatmapInfo, BeatmapInfo>();
|
|
||||||
c.CreateMap<BeatmapMetadata, BeatmapMetadata>();
|
|
||||||
c.CreateMap<BeatmapSetFileInfo, BeatmapSetFileInfo>();
|
|
||||||
|
|
||||||
c.CreateMap<BeatmapSetInfo, BeatmapSetInfo>()
|
|
||||||
.ForMember(s => s.Beatmaps, d => d.MapFrom(s => s.Beatmaps))
|
|
||||||
.ForMember(s => s.Files, d => d.MapFrom(s => s.Files))
|
|
||||||
.MaxDepth(2);
|
|
||||||
|
|
||||||
c.CreateMap<RealmKeyBinding, RealmKeyBinding>();
|
c.CreateMap<RealmKeyBinding, RealmKeyBinding>();
|
||||||
c.CreateMap<DatabasedSetting, DatabasedSetting>();
|
|
||||||
c.CreateMap<FileInfo, FileInfo>();
|
|
||||||
c.CreateMap<ScoreFileInfo, ScoreFileInfo>();
|
|
||||||
c.CreateMap<SkinInfo, SkinInfo>();
|
|
||||||
c.CreateMap<RulesetInfo, RulesetInfo>();
|
|
||||||
}).CreateMapper();
|
}).CreateMapper();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user