[ADDITION] added a new property to the user (may be removed later on), and made a check for the random word

This commit is contained in:
Dogukan
2020-10-23 15:47:52 +02:00
parent b14a7691b5
commit ec08fbfced
3 changed files with 39 additions and 18 deletions

View File

@@ -13,6 +13,7 @@ namespace SharedClientServer
private bool _host;
private bool _turnToDraw;
private string _message;
private string _randomWord;
[JsonConstructor]
public User(string username, int score, bool host, bool turnToDraw)
@@ -90,5 +91,10 @@ namespace SharedClientServer
get { return _turnToDraw; }
set { _turnToDraw = value; }
}
public string RandomWord
{
get { return _randomWord; }
set { _randomWord = value; }
}
}
}