added something to the user
This commit is contained in:
@@ -117,14 +117,14 @@ namespace Server.Models
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddToLobby(Lobby lobby, string username)
|
public void AddToLobby(Lobby lobby, User user)
|
||||||
{
|
{
|
||||||
foreach (Lobby l in lobbies)
|
foreach (Lobby l in lobbies)
|
||||||
{
|
{
|
||||||
if (l == lobby)
|
if (l == lobby)
|
||||||
{
|
{
|
||||||
bool succ;
|
bool succ;
|
||||||
l.AddUser(username, out succ);
|
l.AddUser(user, out succ);
|
||||||
if (!succ)
|
if (!succ)
|
||||||
{
|
{
|
||||||
// TODO send lobby full message
|
// TODO send lobby full message
|
||||||
|
|||||||
Reference in New Issue
Block a user