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:
commit
b31f4e9e85
@ -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"/>.
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user