[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:
@@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user