1
0
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:
Dean Herbert 2023-10-12 17:59:47 +09:00
parent d2aa601912
commit 361d70f68a
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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.