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); }
/// <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); }