public override BindableBeatmap GetBoundCopy() { var copy = new OsuTestBeatmap(Default); copy.BindTo(this); return(copy); }
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent) { // This is the earliest we can get OsuGameBase, which is used by the dummy working beatmap to find textures var working = new DummyWorkingBeatmap(parent.Get <AudioManager>(), parent.Get <TextureStore>()); beatmap = new OsuTestBeatmap(working) { Default = working }; return(Dependencies = new DependencyContainer(base.CreateChildDependencies(parent))); }
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent) { // This is the earliest we can get OsuGameBase, which is used by the dummy working beatmap to find textures var working = new DummyWorkingBeatmap(parent.Get <AudioManager>(), parent.Get <TextureStore>()); beatmap = new OsuTestBeatmap(working) { Default = working }; Dependencies = new DependencyContainer(base.CreateChildDependencies(parent)); if (!UseOnlineAPI) { dummyAPI = new DummyAPIAccess(); Dependencies.CacheAs <IAPIProvider>(dummyAPI); Add(dummyAPI); } return(Dependencies); }