Cache editor beatmap in placement blueprint test scene

This commit is contained in:
Bartłomiej Dach 2021-05-19 20:48:06 +02:00
parent 1d9a4b7bba
commit e9cab29134
1 changed files with 4 additions and 0 deletions

View File

@ -33,8 +33,12 @@ private void load()
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
{
var dependencies = new DependencyContainer(base.CreateChildDependencies(parent));
dependencies.CacheAs(new EditorClock());
var playable = Beatmap.Value.GetPlayableBeatmap(Beatmap.Value.BeatmapInfo.Ruleset);
dependencies.CacheAs(new EditorBeatmap(playable));
return dependencies;
}