mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Use interface to access API
Allows for better testability.
This commit is contained in:
@ -60,7 +60,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private RulesetInfo ruleset;
|
||||
|
||||
private APIAccess api;
|
||||
private IAPIProvider api;
|
||||
|
||||
private SampleChannel sampleRestart;
|
||||
|
||||
@ -85,7 +85,7 @@ namespace osu.Game.Screens.Play
|
||||
private GameplayClockContainer gameplayClockContainer;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(AudioManager audio, APIAccess api, OsuConfigManager config)
|
||||
private void load(AudioManager audio, IAPIProvider api, OsuConfigManager config)
|
||||
{
|
||||
this.api = api;
|
||||
|
||||
|
Reference in New Issue
Block a user