1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 06:47:19 +08:00

Merge branch 'stateful-multiplayer-client' into realtime-multiplayer-2

This commit is contained in:
smoogipoo 2020-12-21 00:41:42 +09:00
commit b31f4e9e85
2 changed files with 8 additions and 3 deletions

View File

@ -71,7 +71,9 @@ namespace osu.Game.Online.RealtimeMultiplayer
private RulesetStore rulesets { get; set; } = null!;
private Room? apiRoom;
private int playlistItemId; // Todo: THIS IS SUPER TEMPORARY!!
// Todo: This is temporary, until the multiplayer server returns the item id on match start or otherwise.
private int playlistItemId;
/// <summary>
/// Joins the <see cref="MultiplayerRoom"/> for a given API <see cref="Room"/>.

View File

@ -54,9 +54,12 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer
multiplayerClient.LeaveRoom();
// Todo: This is not the way to do this. Basically when we're the only participant and the room closes, there's no way to know if this is actually the case.
RemoveRoom(joinedRoom);
// This is delayed one frame because upon exiting the match subscreen, multiplayer updates the polling rate and messes with polling.
Schedule(() => listingPollingComponent.PollImmediately());
Schedule(() =>
{
RemoveRoom(joinedRoom);
listingPollingComponent.PollImmediately();
});
}
private void joinMultiplayerRoom(Room room, Action<Room> onSuccess = null)