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

Public Member Functions

bool Add (GameProperty gameProperty)
 
GameProperty Get< T > (int id, params object[] args)
 
bool Update (GameProperty gameProperty)
 
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 GamePropertyDAO 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

GameProperty DAO for PlayerPrefs database.

Member Function Documentation

bool GamePropertyDAOPlayerPrefs.Add ( GameProperty  gameProperty)

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

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

Deletes all fields of GameProperty from PlayerPrefs.

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

Implements DAO< Type >.

GameProperty GamePropertyDAOPlayerPrefs.Get< T > ( int  id,
params object[]  args 
)

Gets GameProperty from PlayerPrefs fields.

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

Implements DAO< Type >.

bool GamePropertyDAOPlayerPrefs.Update ( GameProperty  gameProperty)

Updates fields of GameProperty in PlayerPrefs.

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

Member Data Documentation

string GamePropertyDAOPlayerPrefs.columnId
protected

PlayerPrefs key for Id field.

string GamePropertyDAOPlayerPrefs.columnName
protected

PlayerPrefs key for Name field.

string GamePropertyDAOPlayerPrefs.columnValue
protected

PlayerPrefs key for Value field.

Property Documentation

GamePropertyDAO GamePropertyDAOPlayerPrefs.Instance
staticget

Gets a single instance of GamePropertyDAOPlayerPrefs

Returns
GamePropertyDAO

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