mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 20:47:26 +08:00
22 lines
681 B
C#
22 lines
681 B
C#
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>
|
|
/// <exception cref="UserAlreadyInMultiplayerRoom">If the user is already in the requested (or another) room.</exception>
|
|
Task JoinRoom(long roomId);
|
|
|
|
/// <summary>
|
|
/// Request to leave the currently joined room.
|
|
/// </summary>
|
|
Task LeaveRoom();
|
|
}
|
|
} |