1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:03:08 +08:00

Rename request

This commit is contained in:
smoogipoo 2021-10-21 17:02:11 +09:00
parent 691e414acb
commit f41cf822b0
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ namespace osu.Game.Online.Multiplayer
[Serializable]
[MessagePackObject]
[Union(0, typeof(ChangeTeamRequest))] // IMPORTANT: Add rules to SignalRUnionWorkaroundResolver for new derived types.
[Union(1, typeof(AddPlaylistItemRequest))]
[Union(1, typeof(EnqueuePlaylistItemRequest))]
public abstract class MatchUserRequest
{
}

View File

@ -10,7 +10,7 @@ using osu.Game.Online.API;
namespace osu.Game.Online.Multiplayer.Queueing
{
public class AddPlaylistItemRequest : MatchUserRequest
public class EnqueuePlaylistItemRequest : MatchUserRequest
{
[Key(0)]
public int BeatmapID { get; set; }

View File

@ -26,7 +26,7 @@ namespace osu.Game.Online
{ typeof(TeamVersusUserState), new TypeRedirectingFormatter<TeamVersusUserState, MatchUserState>() },
{ typeof(TeamVersusRoomState), new TypeRedirectingFormatter<TeamVersusRoomState, MatchRoomState>() },
{ typeof(ChangeTeamRequest), new TypeRedirectingFormatter<ChangeTeamRequest, MatchUserRequest>() },
{ typeof(AddPlaylistItemRequest), new TypeRedirectingFormatter<AddPlaylistItemRequest, MatchUserRequest>() },
{ typeof(EnqueuePlaylistItemRequest), new TypeRedirectingFormatter<EnqueuePlaylistItemRequest, MatchUserRequest>() },
// These should not be required. The fallback should work. But something is weird with the way caching is done.
// For future adventurers, I would not advise looking into this further. It's likely not worth the effort.

View File

@ -57,7 +57,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
{
loadingLayer.Show();
client.SendMatchRequest(new AddPlaylistItemRequest
client.SendMatchRequest(new EnqueuePlaylistItemRequest
{
BeatmapID = item.BeatmapID,
RulesetID = item.RulesetID,