mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:42:56 +08:00
Rename UserMods -> Mods for MultiplayerRoomUser
This commit is contained in:
parent
85e63afcb4
commit
2e85ce5b82
@ -36,7 +36,7 @@ namespace osu.Game.Online.Multiplayer
|
||||
/// </summary>
|
||||
[Key(3)]
|
||||
[NotNull]
|
||||
public IEnumerable<APIMod> UserMods { get; set; } = Enumerable.Empty<APIMod>();
|
||||
public IEnumerable<APIMod> Mods { get; set; } = Enumerable.Empty<APIMod>();
|
||||
|
||||
[IgnoreMember]
|
||||
public User? User { get; set; }
|
||||
|
@ -400,7 +400,7 @@ namespace osu.Game.Online.Multiplayer
|
||||
if (user == null)
|
||||
return;
|
||||
|
||||
user.UserMods = mods;
|
||||
user.Mods = mods;
|
||||
|
||||
RoomUpdated?.Invoke();
|
||||
}, false);
|
||||
|
@ -165,7 +165,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
|
||||
var ruleset = rulesets.GetRuleset(Room.Settings.RulesetID).CreateInstance();
|
||||
|
||||
userStateDisplay.Status = User.State;
|
||||
userModsDisplay.Current.Value = User.UserMods.Select(m => m.ToMod(ruleset)).ToList();
|
||||
userModsDisplay.Current.Value = User.Mods.Select(m => m.ToMod(ruleset)).ToList();
|
||||
|
||||
if (Room.Host?.Equals(User) == true)
|
||||
crown.FadeIn(fade_time);
|
||||
|
Loading…
Reference in New Issue
Block a user