mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Reorder private/protected methods
This commit is contained in:
parent
c4976e9db8
commit
ea8e49c543
@ -28,13 +28,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
|||||||
Host.ValueChanged += hostChanged;
|
Host.ValueChanged += hostChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void hostChanged(ValueChangedEvent<APIUser> value)
|
|
||||||
{
|
|
||||||
if (value.OldValue == null) return;
|
|
||||||
|
|
||||||
hostChangedSample?.Play();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void UserJoined(MultiplayerRoomUser user)
|
protected override void UserJoined(MultiplayerRoomUser user)
|
||||||
{
|
{
|
||||||
base.UserJoined(user);
|
base.UserJoined(user);
|
||||||
@ -56,6 +49,14 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
|||||||
userKickedSample?.Play();
|
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)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user