1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 07:22:55 +08:00

Reorder private/protected methods

This commit is contained in:
Dean Herbert 2022-01-15 21:19:02 +09:00
parent c4976e9db8
commit ea8e49c543

View File

@ -28,13 +28,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
Host.ValueChanged += hostChanged;
}
private void hostChanged(ValueChangedEvent<APIUser> value)
{
if (value.OldValue == null) return;
hostChangedSample?.Play();
}
protected override void UserJoined(MultiplayerRoomUser user)
{
base.UserJoined(user);
@ -56,6 +49,14 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
userKickedSample?.Play();
}
private void hostChanged(ValueChangedEvent<APIUser> value)
{
// only play sound when the host changes from an already-existing host.
if (value.OldValue == null) return;
hostChangedSample?.Play();
}
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);