Flying Piggy 2D Runner Kit  1.0
Complete 2D runner template for Unity
 All Classes Files Functions Variables Enumerations Enumerator Properties
ScoreServiceImpl Class Reference
Inheritance diagram for ScoreServiceImpl:
ScoreService

Public Member Functions

override Score GetOrCreate< T > (int id, string name, params object[] args)
 
override bool Update (Score score)
 
override List< ScoreGetList ()
 
override List< ScoreGetList (Type type)
 
override void ResetAll ()
 
override void ResetRunScores ()
 
override void ResetHighscores ()
 
override void ResetTotalScores ()
 

Additional Inherited Members

- Protected Member Functions inherited from ScoreService
 ScoreService ()
 
- Static Protected Attributes inherited from ScoreService
static ScoreService instance
 
- Properties inherited from ScoreService
static ScoreService Instance [get]
 

Detailed Description

Manage scores via Data access object. Get, create and save scores.

Member Function Documentation

override List<Score> ScoreServiceImpl.GetList ( )
virtual

Get list of existing scores

Implements ScoreService.

override List<Score> ScoreServiceImpl.GetList ( Type  type)
virtual

Get list of existing scores in defined type

Parameters
type- score type

Implements ScoreService.

override Score ScoreServiceImpl.GetOrCreate< T > ( int  id,
string  name,
params object[]  args 
)
virtual

Get a score or create a new one if it doesn't exist yet.

Parameters
id- id of the score
name- name of the score
args- arguments according to the constructor of the type T

Implements ScoreService.

override void ScoreServiceImpl.ResetAll ( )
virtual

Set all score values to 0.

Implements ScoreService.

override void ScoreServiceImpl.ResetHighscores ( )
virtual

Set all Highscore values to 0.

Implements ScoreService.

override void ScoreServiceImpl.ResetRunScores ( )
virtual

Set all RunScore values to 0.

Implements ScoreService.

override void ScoreServiceImpl.ResetTotalScores ( )
virtual

Set all TotalScore values to 0.

Implements ScoreService.

override bool ScoreServiceImpl.Update ( Score  score)
virtual

Save the score

Implements ScoreService.


The documentation for this class was generated from the following file: