2020-12-04 14:34:31 +08:00
|
|
|
// 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.
|
|
|
|
|
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>
|
|
|
|
/// <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);
|
2020-12-04 14:34:31 +08:00
|
|
|
}
|
|
|
|
}
|