Пример #1
0
        public ReplayLobby AddReplayLobby(IChannel chan, IPreload preload, Lobby lobby)
        {
            var rLobby = new ReplayLobby(preload, lobby.Host, lobby.GetUsers(), lobby.GetMultiplayerMode());

            _replayLobby.Add(chan.Id.ToString(), rLobby);
            return(rLobby);
        }
Пример #2
0
        /// <returns>Updated embed or null if user not in lobby</returns>
        public Embed?ToggleReadyLobby(ReplayLobby rLobby, IUser user)
        {
            var result = rLobby.ToggleReady(user);

            return(result ? rLobby.GetEmbed() : null);
        }