Flying Piggy 2D Runner Kit  1.0
Complete 2D runner template for Unity
 All Classes Files Functions Variables Enumerations Enumerator Properties
ScoreDAOPlayerPrefs Class Reference
Inheritance diagram for ScoreDAOPlayerPrefs:
DAOPlayerPrefs ScoreDAO DAO< Type >

Public Member Functions

bool Add (Score score)
 
Score Get< T > (int id, params object[] args)
 
bool Update (Score score)
 
bool Delete (int id)
 
- Public Member Functions inherited from DAO< Type >
bool Add (Type dataObject)
 
bool Update (Type dataObject)
 

Protected Attributes

string columnId
 
string columnName
 
string columnValue
 
- Protected Attributes inherited from DAOPlayerPrefs
string tableName
 

Properties

static ScoreDAO Instance [get]
 

Additional Inherited Members

- Protected Member Functions inherited from DAOPlayerPrefs
string GenerateKey (string columnName)
 
bool GetBoolean (int i)
 
int GetInt (bool b)
 

Detailed Description

Score DAO for PlayerPrefs database.

Member Function Documentation

bool ScoreDAOPlayerPrefs.Add ( Score  score)

Adds Iall fields of Score into PlayerPrefs if Score with current Id hasn't existed in PlayerPrefs.

Parameters
id- Score's Id.
args- parameters of Score's constructor.
Returns
Returns FALSE if Score with current Id has existed before, else returns TRUE.
bool ScoreDAOPlayerPrefs.Delete ( int  id)

Deletes all fields of Score from PlayerPrefs.

Parameters
id- Score's Id.
Returns
TRUE if all fields are deleted.

Implements DAO< Type >.

Score ScoreDAOPlayerPrefs.Get< T > ( int  id,
params object[]  args 
)

Gets Score from PlayerPrefs fields.

Parameters
id- Score's Id.
args- parameters of Score's constructor.
Returns
an instance of Score.

Implements DAO< Type >.

bool ScoreDAOPlayerPrefs.Update ( Score  score)

Updates fields of Score in PlayerPrefs.

Parameters
id- Score's Id.
Returns
TRUE if fields are updated.

Member Data Documentation

string ScoreDAOPlayerPrefs.columnId
protected

PlayerPrefs key for Id field.

string ScoreDAOPlayerPrefs.columnName
protected

PlayerPrefs key for Name field.

string ScoreDAOPlayerPrefs.columnValue
protected

PlayerPrefs key for Value field.

Property Documentation

ScoreDAO ScoreDAOPlayerPrefs.Instance
staticget

Gets a single instance of ScoreDAOPlayerPrefs

Returns
ScoreDAO

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