mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:18:22 +08:00
Rename callback to match standards
This commit is contained in:
parent
d2aa601912
commit
361d70f68a
@ -31,7 +31,7 @@ namespace osu.Game.Online.Multiplayer
|
||||
{
|
||||
public Action<Notification>? PostNotification { protected get; set; }
|
||||
|
||||
public Action<Room, string>? InviteAccepted { protected get; set; }
|
||||
public Action<Room, string>? PresentMatch { protected get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when any change occurs to the multiplayer room.
|
||||
@ -457,7 +457,7 @@ namespace osu.Game.Online.Multiplayer
|
||||
{
|
||||
Activated = () =>
|
||||
{
|
||||
InviteAccepted?.Invoke(apiRoom, password);
|
||||
PresentMatch?.Invoke(apiRoom, password);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -873,7 +873,7 @@ namespace osu.Game
|
||||
ScoreManager.PresentImport = items => PresentScore(items.First().Value);
|
||||
|
||||
MultiplayerClient.PostNotification = n => Notifications.Post(n);
|
||||
MultiplayerClient.InviteAccepted = PresentMultiplayerMatch;
|
||||
MultiplayerClient.PresentMatch = PresentMultiplayerMatch;
|
||||
|
||||
// make config aware of how to lookup skins for on-screen display purposes.
|
||||
// if this becomes a more common thing, tracked settings should be reconsidered to allow local DI.
|
||||
|
Loading…
Reference in New Issue
Block a user