public bool AddUser(string userID, string netSessionID) { if (GetUser(userID) != null) { return(false); } var roomUser = new LobbyUser(); roomUser.Set(userID, netSessionID); UserList.Add(roomUser); return(true); }
public bool RemoveUser(LobbyUser user) { return(UserList.Remove(user)); }