mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Rename request
This commit is contained in:
parent
691e414acb
commit
f41cf822b0
@ -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
|
||||
{
|
||||
}
|
||||
|
@ -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; }
|
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user