예제 #1
0
        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);
        }
예제 #2
0
 public bool RemoveUser(LobbyUser user)
 {
     return(UserList.Remove(user));
 }