mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 23:07:44 +08:00
27 lines
848 B
C#
27 lines
848 B
C#
// 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>
|
|
/// An interface defining the spectator server instance.
|
|
/// </summary>
|
|
public interface IMultiplayerServer
|
|
{
|
|
/// <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);
|
|
}
|
|
}
|