mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +08:00
Move cache declarations of ISamplePlaybackDisabler
to interface
This commit is contained in:
parent
9ae019eb39
commit
cbd1169495
@ -130,7 +130,6 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
}
|
||||
|
||||
[Cached(typeof(ISkinSource))]
|
||||
[Cached(typeof(ISamplePlaybackDisabler))]
|
||||
private class TestSkinSourceContainer : Container, ISkinSource, ISamplePlaybackDisabler
|
||||
{
|
||||
[Resolved]
|
||||
|
@ -1,6 +1,7 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Game.Skinning;
|
||||
|
||||
@ -10,6 +11,7 @@ namespace osu.Game.Audio
|
||||
/// Allows a component to disable sample playback dynamically as required.
|
||||
/// Automatically handled by <see cref="PausableSkinnableSound"/>.
|
||||
/// </summary>
|
||||
[Cached]
|
||||
public interface ISamplePlaybackDisabler
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -51,7 +51,6 @@ using osuTK.Input;
|
||||
namespace osu.Game.Screens.Edit
|
||||
{
|
||||
[Cached(typeof(IBeatSnapProvider))]
|
||||
[Cached(typeof(ISamplePlaybackDisabler))]
|
||||
[Cached]
|
||||
public class Editor : ScreenWithBeatmapBackground, IKeyBindingHandler<GlobalAction>, IKeyBindingHandler<PlatformAction>, IBeatSnapProvider, ISamplePlaybackDisabler
|
||||
{
|
||||
|
@ -38,7 +38,6 @@ using osuTK.Graphics;
|
||||
namespace osu.Game.Screens.Play
|
||||
{
|
||||
[Cached]
|
||||
[Cached(typeof(ISamplePlaybackDisabler))]
|
||||
public abstract class Player : ScreenWithBeatmapBackground, ISamplePlaybackDisabler, ILocalUserPlayInfo
|
||||
{
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user