[ADD] added get lobby for users method
This commit is contained in:
@@ -121,6 +121,18 @@ namespace Server.Models
|
||||
}
|
||||
}
|
||||
|
||||
public Lobby GetLobbyForUser(User user)
|
||||
{
|
||||
foreach (Lobby l in lobbies)
|
||||
{
|
||||
if (l.Users.Contains(user))
|
||||
{
|
||||
return l;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void AddToLobby(Lobby lobby, User user)
|
||||
{
|
||||
foreach (Lobby l in lobbies)
|
||||
|
||||
Reference in New Issue
Block a user