1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 19:17:25 +08:00
osu-lazer/osu.Game/Online/RealtimeMultiplayer/IMultiplayerServer.cs

22 lines
681 B
C#
Raw Normal View History

2020-12-04 17:18:41 +08:00
using System.Threading.Tasks;
namespace osu.Game.Online.RealtimeMultiplayer
{
/// <summary>
/// An interface defining the spectator server instance.
/// </summary>
public interface IMultiplayerServer
{
2020-12-04 17:18:41 +08:00
/// <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);
2020-12-04 17:18:41 +08:00
/// <summary>
/// Request to leave the currently joined room.
/// </summary>
Task LeaveRoom();
}
}