mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 07:32:58 +08:00
Add basic server implementation
This commit is contained in:
parent
daed27460c
commit
f4ccbbd092
@ -1,6 +1,8 @@
|
||||
// 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 System.Threading.Tasks;
|
||||
|
||||
namespace osu.Game.Online.RealtimeMultiplayer
|
||||
{
|
||||
/// <summary>
|
||||
@ -8,6 +10,17 @@ namespace osu.Game.Online.RealtimeMultiplayer
|
||||
/// </summary>
|
||||
public interface IMultiplayerServer
|
||||
{
|
||||
// TODO: implement
|
||||
/// <summary>
|
||||
/// Request to join a multiplayer room.
|
||||
/// </summary>
|
||||
/// <param name="roomId">The databased room ID.</param>
|
||||
/// <returns>Whether the room could be joined.</returns>
|
||||
Task<bool> JoinRoom(long roomId);
|
||||
|
||||
/// <summary>
|
||||
/// Request to leave the currently joined room.
|
||||
/// </summary>
|
||||
/// <param name="roomId">The databased room ID.</param>
|
||||
Task LeaveRoom(long roomId);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user