Update naming in line with discussion

This commit is contained in:
Dean Herbert
2021-08-03 15:09:03 +09:00
parent a42762e351
commit 66427127f0
3 changed files with 5 additions and 15 deletions

View File

@ -1,11 +0,0 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Online.Multiplayer
{
public enum MatchRulesetType
{
HeadToHead,
TeamVs
}
}

View File

@ -8,6 +8,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using MessagePack; using MessagePack;
using osu.Game.Online.API; using osu.Game.Online.API;
using osu.Game.Online.Rooms;
namespace osu.Game.Online.Multiplayer namespace osu.Game.Online.Multiplayer
{ {
@ -40,7 +41,7 @@ namespace osu.Game.Online.Multiplayer
public string Password { get; set; } = string.Empty; public string Password { get; set; } = string.Empty;
[Key(8)] [Key(8)]
public MatchRulesetType MatchRulesetType { get; set; } public MatchType MatchRulesetType { get; set; }
public bool Equals(MultiplayerRoomSettings other) public bool Equals(MultiplayerRoomSettings other)
=> BeatmapID == other.BeatmapID => BeatmapID == other.BeatmapID

View File

@ -24,6 +24,9 @@ namespace osu.Game.Online.Multiplayer
[Key(1)] [Key(1)]
public MultiplayerUserState State { get; set; } = MultiplayerUserState.Idle; public MultiplayerUserState State { get; set; } = MultiplayerUserState.Idle;
[Key(4)]
public MatchRulesetUserState? MatchRulesetState { get; set; }
/// <summary> /// <summary>
/// The availability state of the current beatmap. /// The availability state of the current beatmap.
/// </summary> /// </summary>
@ -36,9 +39,6 @@ namespace osu.Game.Online.Multiplayer
[Key(3)] [Key(3)]
public IEnumerable<APIMod> Mods { get; set; } = Enumerable.Empty<APIMod>(); public IEnumerable<APIMod> Mods { get; set; } = Enumerable.Empty<APIMod>();
[Key(4)]
public MatchRulesetUserState? MatchRulesetState { get; set; }
[IgnoreMember] [IgnoreMember]
public User? User { get; set; } public User? User { get; set; }