C# 클래스 BalloonsPop.Highscore.HighscoreHandlingStrategies.JsonHandlingStrategy

Implements high score handling (saving and loading) in a JSON format
상속: IHighscoreHandlingStrategy
파일 보기 프로젝트 열기: Baloons-Pop-4/Main

공개 메소드들

메소드 설명
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.

메소드 상세

JsonHandlingStrategy() 공개 메소드

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.
리턴 System

Load() 공개 메소드

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

Save() 공개 메소드

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