Property | Type | Description | |
---|---|---|---|
LatestVersion | System.Version | ||
PlayerTables | string[] | ||
StatsTables | string[] | ||
VersionList | System.Version[] |
Method | Description | |
---|---|---|
CreateSqlTables ( IProgress |
Tells the Database to install the Stats tables into the database
|
|
DeletePlayer ( int Pid, IProgress |
Removes a player, based on pid, from the stats database
|
|
GetPlayerAwards ( int Pid ) : object>>.List |
Returns a list of awards a player has earned
|
|
MigrateTables ( ) : void |
If there is any table updates that need to be applied, calling this method will apply each update until the current database version is up to date
|
|
MigrateTables ( System.Version ToVersion ) : void |
If there is any table updates that need to be applied, calling this method will apply each update until the specifed update version
|
|
PlayerExists ( int Pid ) : bool |
Returns whether or not a player exists in the "player" table
|
|
StatsDatabase ( ) : System |
Creates a connection to the Stats Database
|
|
Truncate ( ) : void |
Clears all stats data from the stats database
|
Method | Description | |
---|---|---|
GetTablesVersion ( ) : void |
Fetches the current tables version We have this in a seperate method because the table migration fetches the the version everytime an update is applied |
Method | Description | |
---|---|---|
CreateMysqlTables ( IProgress |
On a new Mysql database, this method will create the default tables
|
|
CreateSqliteTables ( IProgress |
On a new Sqlite database, this method will create the default tables
|
public CreateSqlTables ( IProgress |
||
TaskProgress | IProgress |
|
return | void |
public DeletePlayer ( int Pid, IProgress |
||
Pid | int | The players Id |
TaskProgress | IProgress |
The progress object to report to. |
return | void |
public GetPlayerAwards ( int Pid ) : object>>.List |
||
Pid | int | The Player ID |
return | object>>.List |
public MigrateTables ( System.Version ToVersion ) : void | ||
ToVersion | System.Version | |
return | void |
public PlayerExists ( int Pid ) : bool | ||
Pid | int | The Player ID |
return | bool |
public static Version,System LatestVersion | ||
return | System.Version |