public IHighscoreTable Load()
{
try
{
string json = File.ReadAllText(this.FileName);
var playerScores = JsonConvert.DeserializeObject<List<PlayerScore>>(json);
return new HighscoreTable(playerScores);
}
catch (Exception)
{
Logger.Warn("No highscore.json, falling back to empty highscore table.");
return new HighscoreTable();
}
}