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

Protected Member Functions

string GenerateKey (string columnName)
 
bool GetBoolean (int i)
 
int GetInt (bool b)
 

Protected Attributes

string tableName
 

Detailed Description

Common methods for PlayerPrefs database.

Member Function Documentation

string DAOPlayerPrefs.GenerateKey ( string  columnName)
protected

Generates a key for PlayerPefs field.

bool DAOPlayerPrefs.GetBoolean ( int  i)
protected

Converts an integer to a boolean.

Parameters
i- if 0 then considered as FALSE, else TRUE.
Returns
boolean
int DAOPlayerPrefs.GetInt ( bool  b)
protected

Converts a boolean to an integer.

Parameters
b- if TRUE then considered as 1, else 0.
Returns
integer 0 or 1.

Member Data Documentation

string DAOPlayerPrefs.tableName
protected

Name of a "table" for PlayerPrefs keys.


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