mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Update naming in line with discussion
This commit is contained in:
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
@ -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
|
||||||
|
@ -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; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user