My Project
Public Member Functions | Static Public Member Functions | List of all members
ParaEngine::CDataProviderManager Class Reference

a singleton class for managing all data providers used in the game engine. More...

#include <DataProviderManager.h>

Public Member Functions

void Cleanup ()
 cleanup everything. More...
 
CCharacterDBGetCharacterDB ()
 get the global character model database
 
CKidsDBProviderGetKidsDBProvider ()
 get the current kids game database
 
CNpcDatabaseGetNpcDB ()
 this function shall never be called from the scripting interface. More...
 
AttributeProviderGetAttributeProvider ()
 get the current attribute data provider. More...
 
void SetNpcDB (const string &sConnectionstring)
 set the global NPC data base to a new database file. More...
 
void SetAttributeProvider (const string &sConnectionstring)
 set the current attribute data base to a new database file. More...
 
void SetKidsDBProvider (const string &sConnectionstring)
 set the current kids game data base to a new database file. More...
 
void SetWorldDB (const string &sConnectionstring)
 set world database. More...
 
LocalGameLanguage GetLocalGameLanguage (void)
 Get local game language.
 
void SetLocalGameLanguage (const LocalGameLanguage lang)
 Set local game language.
 

Static Public Member Functions

static CDataProviderManagerGetSingleton ()
 

Detailed Description

a singleton class for managing all data providers used in the game engine.

such as, character database, NPC database, world, string, music, etc.

Member Function Documentation

§ Cleanup()

void CDataProviderManager::Cleanup ( )

cleanup everything.

§ GetAttributeProvider()

AttributeProvider * CDataProviderManager::GetAttributeProvider ( )

get the current attribute data provider.

§ GetNpcDB()

CNpcDatabase * CDataProviderManager::GetNpcDB ( )

this function shall never be called from the scripting interface.

this is solely for exporting API. and should not be used from the scripting interface. get the current NPC data provider.

§ SetAttributeProvider()

void CDataProviderManager::SetAttributeProvider ( const string &  sConnectionstring)

set the current attribute data base to a new database file.

Parameters
sConnectionstring: currently it is the file path of the database file.

§ SetKidsDBProvider()

void CDataProviderManager::SetKidsDBProvider ( const string &  sConnectionstring)

set the current kids game data base to a new database file.

Parameters
sConnectionstring: currently it is the file path of the database file.

§ SetNpcDB()

void CDataProviderManager::SetNpcDB ( const string &  sConnectionstring)

set the global NPC data base to a new database file.

Parameters
sConnectionstring: currently it is the file path of the database file.

§ SetWorldDB()

void ParaEngine::CDataProviderManager::SetWorldDB ( const string &  sConnectionstring)
inline

set world database.

it sets attribute provider, NPC database, etc to the same database file.

Parameters
sConnectionstring: currently it is the file path of the database file.

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