mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Move all endpoint information to a configuration class
This commit is contained in:
@ -81,6 +81,13 @@ namespace osu.Game.Online.Spectator
|
||||
/// </summary>
|
||||
public event Action<int, SpectatorState> OnUserFinishedPlaying;
|
||||
|
||||
private readonly string endpoint;
|
||||
|
||||
public SpectatorStreamingClient(EndpointConfiguration endpoints)
|
||||
{
|
||||
endpoint = endpoints.SpectatorEndpoint;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
@ -104,12 +111,6 @@ namespace osu.Game.Online.Spectator
|
||||
}
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
private const string endpoint = "https://dev.ppy.sh/spectator";
|
||||
#else
|
||||
private const string endpoint = "https://spectator.ppy.sh/spectator";
|
||||
#endif
|
||||
|
||||
protected virtual async Task Connect()
|
||||
{
|
||||
if (connection != null)
|
||||
|
Reference in New Issue
Block a user