2020-12-04 17:18:41 +08:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
2020-12-04 14:34:31 +08:00
|
|
|
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>
|
2020-12-08 13:51:48 +08:00
|
|
|
/// <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>
|
2020-12-08 13:39:26 +08:00
|
|
|
Task LeaveRoom();
|
2020-12-04 14:34:31 +08:00
|
|
|
}
|
2020-12-08 13:51:48 +08:00
|
|
|
}
|