mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Initial carousel infrastructue changes
This commit is contained in:
@ -26,10 +26,16 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
private DependencyContainer dependencies;
|
||||
|
||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||
{
|
||||
typeof(BeatmapCarousel),
|
||||
typeof(SongSelect),
|
||||
};
|
||||
|
||||
protected override IReadOnlyDependencyContainer CreateLocalDependencies(IReadOnlyDependencyContainer parent) => dependencies = new DependencyContainer(parent);
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
private void load(BeatmapManager baseMaanger)
|
||||
{
|
||||
PlaySongSelect songSelect;
|
||||
|
||||
@ -43,7 +49,10 @@ namespace osu.Game.Tests.Visual
|
||||
Func<OsuDbContext> contextFactory = () => context;
|
||||
|
||||
dependencies.Cache(rulesets = new RulesetStore(contextFactory));
|
||||
dependencies.Cache(manager = new BeatmapManager(storage, contextFactory, rulesets, null));
|
||||
dependencies.Cache(manager = new BeatmapManager(storage, contextFactory, rulesets, null)
|
||||
{
|
||||
DefaultBeatmap = baseMaanger.GetWorkingBeatmap(null)
|
||||
});
|
||||
|
||||
for (int i = 0; i < 100; i += 10)
|
||||
manager.Import(createTestBeatmapSet(i));
|
||||
|
Reference in New Issue
Block a user