mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Rename request
This commit is contained in:
@ -14,7 +14,7 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
[MessagePackObject]
|
[MessagePackObject]
|
||||||
[Union(0, typeof(ChangeTeamRequest))] // IMPORTANT: Add rules to SignalRUnionWorkaroundResolver for new derived types.
|
[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
|
public abstract class MatchUserRequest
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ using osu.Game.Online.API;
|
|||||||
|
|
||||||
namespace osu.Game.Online.Multiplayer.Queueing
|
namespace osu.Game.Online.Multiplayer.Queueing
|
||||||
{
|
{
|
||||||
public class AddPlaylistItemRequest : MatchUserRequest
|
public class EnqueuePlaylistItemRequest : MatchUserRequest
|
||||||
{
|
{
|
||||||
[Key(0)]
|
[Key(0)]
|
||||||
public int BeatmapID { get; set; }
|
public int BeatmapID { get; set; }
|
@ -26,7 +26,7 @@ namespace osu.Game.Online
|
|||||||
{ typeof(TeamVersusUserState), new TypeRedirectingFormatter<TeamVersusUserState, MatchUserState>() },
|
{ typeof(TeamVersusUserState), new TypeRedirectingFormatter<TeamVersusUserState, MatchUserState>() },
|
||||||
{ typeof(TeamVersusRoomState), new TypeRedirectingFormatter<TeamVersusRoomState, MatchRoomState>() },
|
{ typeof(TeamVersusRoomState), new TypeRedirectingFormatter<TeamVersusRoomState, MatchRoomState>() },
|
||||||
{ typeof(ChangeTeamRequest), new TypeRedirectingFormatter<ChangeTeamRequest, MatchUserRequest>() },
|
{ 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.
|
// 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.
|
// 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();
|
loadingLayer.Show();
|
||||||
|
|
||||||
client.SendMatchRequest(new AddPlaylistItemRequest
|
client.SendMatchRequest(new EnqueuePlaylistItemRequest
|
||||||
{
|
{
|
||||||
BeatmapID = item.BeatmapID,
|
BeatmapID = item.BeatmapID,
|
||||||
RulesetID = item.RulesetID,
|
RulesetID = item.RulesetID,
|
||||||
|
Reference in New Issue
Block a user