C# Class BalloonsPop.Highscore.HighscoreHandlingStrategies.JsonHandlingStrategy

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

Public Methods

Method 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 method

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.
return System

Load() public method

Loads a IHighscoreTable from a JSON formatted file.
public Load ( ) : IHighscoreTable
return IHighscoreTable

Save() public method

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