From f4ccbbd09261ac4ba63d4633d3d884841b4139c9 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 4 Dec 2020 18:18:41 +0900 Subject: [PATCH] Add basic server implementation --- .../RealtimeMultiplayer/ISpectatorServer.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/osu.Game/Online/RealtimeMultiplayer/ISpectatorServer.cs b/osu.Game/Online/RealtimeMultiplayer/ISpectatorServer.cs index 3d00eaaf6a..ba7d7d3832 100644 --- a/osu.Game/Online/RealtimeMultiplayer/ISpectatorServer.cs +++ b/osu.Game/Online/RealtimeMultiplayer/ISpectatorServer.cs @@ -1,6 +1,8 @@ // Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. +using System.Threading.Tasks; + namespace osu.Game.Online.RealtimeMultiplayer { /// @@ -8,6 +10,17 @@ namespace osu.Game.Online.RealtimeMultiplayer /// public interface IMultiplayerServer { - // TODO: implement + /// + /// Request to join a multiplayer room. + /// + /// The databased room ID. + /// Whether the room could be joined. + Task JoinRoom(long roomId); + + /// + /// Request to leave the currently joined room. + /// + /// The databased room ID. + Task LeaveRoom(long roomId); } }