C# Class BalloonsPop.Highscore.HighscoreHandlingStrategies.JsonHandlingStrategy

Implements high score handling (saving and loading) in a JSON format
Inheritance: IHighscoreHandlingStrategy
Afficher le fichier Open project: Baloons-Pop-4/Main

Méthodes publiques

Méthode Description
JsonHandlingStrategy ( string fileName ) : System

Initializes a new instance of the JsonHandlingStrategy class.

Load ( ) : IHighscoreTable

Loads a IHighscoreTable from a JSON formatted file.

Save ( IHighscoreTable table ) : void

Saves a IHighscoreTable to a JSON formatted file.

Method Details

JsonHandlingStrategy() public méthode

Initializes a new instance of the JsonHandlingStrategy class.
public JsonHandlingStrategy ( string fileName ) : System
fileName string The name of the file to be used for loading and saving.
Résultat System

Load() public méthode

Loads a IHighscoreTable from a JSON formatted file.
public Load ( ) : IHighscoreTable
Résultat IHighscoreTable

Save() public méthode

Saves a IHighscoreTable to a JSON formatted file.
public Save ( IHighscoreTable table ) : void
table IHighscoreTable The concrete implementation of a table.
Résultat void