public void ChangeSettings(MultiplayerRoom room) { MatchType = room.MatchType; ActiveMods = room.ActiveMods; Name = room.Name; BeatmapName = room.BeatmapName; BeatmapId = room.BeatmapId; BeatmapMd5 = room.BeatmapMd5; HostId = room.HostId; PlayMode = room.PlayMode; ScoringType = room.ScoringType; TeamType = room.TeamType; SpecialModes = room.SpecialModes; Seed = room.Seed; SetMods(ActiveMods, GetSlotByUserId(HostId)); Update(); }
public bool IsHost(MultiplayerRoom room) => room.HostId == UserId;