Exemple #1
0
 public bool Save(IGame game)
 {
     return(RatUtils.SaveFile(ParseSaveName(game.Guid), game));
 }
Exemple #2
0
 private bool SaveLeaderBoard()
 {
     return(RatUtils.SaveFile(LeaderBoardFileName, scores));
 }
Exemple #3
0
 public IGame Load(Guid guid)
 {
     return((IGame)RatUtils.LoadFile(ParseSaveName(guid)));
 }
Exemple #4
0
 private SortedSet <IBoardItem> LoadLeaderBoard()
 {
     return((SortedSet <IBoardItem>)RatUtils.LoadFile(LeaderBoardFileName) ?? new SortedSet <IBoardItem>());
 }