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

Public Member Functions

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

Protected Member Functions

 ScoreService ()
 

Static Protected Attributes

static ScoreService instance
 

Properties

static ScoreService Instance [get]
 

Detailed Description

Manage score data

Constructor & Destructor Documentation

ScoreService.ScoreService ( )
protected

Member Function Documentation

abstract List<Score> ScoreService.GetList ( )
pure virtual

Get list of existing scores

Implemented in ScoreServiceImpl.

abstract List<Score> ScoreService.GetList ( Type  type)
pure virtual

Get list of existing scores in defined type

Parameters
type- score type

Implemented in ScoreServiceImpl.

abstract Score ScoreService.GetOrCreate< T > ( int  id,
string  name,
params object[]  args 
)
pure 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

Implemented in ScoreServiceImpl.

abstract void ScoreService.ResetAll ( )
pure virtual

Set all score values to 0.

Implemented in ScoreServiceImpl.

abstract void ScoreService.ResetHighscores ( )
pure virtual

Set all Highscore values to 0.

Implemented in ScoreServiceImpl.

abstract void ScoreService.ResetRunScores ( )
pure virtual

Set all RunScore values to 0.

Implemented in ScoreServiceImpl.

abstract void ScoreService.ResetTotalScores ( )
pure virtual

Set all TotalScore values to 0.

Implemented in ScoreServiceImpl.

abstract bool ScoreService.Update ( Score  score)
pure virtual

Save the score

Implemented in ScoreServiceImpl.

Member Data Documentation

ScoreService ScoreService.instance
staticprotected

Property Documentation

ScoreService ScoreService.Instance
staticget

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