Modify LobbyServer
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace LobbyServer
|
||||
{
|
||||
public class ScoreEntry
|
||||
@@ -5,12 +7,12 @@ namespace LobbyServer
|
||||
public string Pseudo { get; }
|
||||
public int Score { get; }
|
||||
|
||||
[JsonConstructor]
|
||||
public ScoreEntry(string pseudo, int score)
|
||||
{
|
||||
Pseudo = pseudo;
|
||||
Score = score;
|
||||
}
|
||||
|
||||
public ScoreEntry(string serialized)
|
||||
{
|
||||
var split = serialized.Split(';');
|
||||
|
||||
Reference in New Issue
Block a user