Fire initial match user states in TestMultiplayerClient

This commit is contained in:
Dean Herbert
2021-08-03 17:08:19 +09:00
parent a0119f8cd6
commit 75426f84f1
3 changed files with 62 additions and 16 deletions

View File

@ -142,6 +142,8 @@ namespace osu.Game.Online.Multiplayer
APIRoom = room;
foreach (var user in joinedRoom.Users)
updateUserPlayingState(user.UserID, user.State);
OnRoomJoined();
}, cancellationSource.Token).ConfigureAwait(false);
// Update room settings.
@ -149,6 +151,13 @@ namespace osu.Game.Online.Multiplayer
}, cancellationSource.Token).ConfigureAwait(false);
}
/// <summary>
/// Fired when the room join sequence is complete
/// </summary>
protected virtual void OnRoomJoined()
{
}
/// <summary>
/// Joins the <see cref="MultiplayerRoom"/> with a given ID.
/// </summary>