예제 #1
0
        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();
        }
예제 #2
0
 public bool IsHost(MultiplayerRoom room) => room.HostId == UserId;