Adding database thread start/stop functions and init.

This commit is contained in:
lotodore
2009-09-26 22:10:43 +00:00
parent 9e6ca8cd66
commit d0d831a4f6
4 changed files with 21 additions and 0 deletions
+10
View File
@@ -38,6 +38,16 @@ ServerDBGeneric::Init(const string &/*host*/, const string &/*user*/, const stri
{
}
void
ServerDBGeneric::Start()
{
}
void
ServerDBGeneric::Stop()
{
}
void
ServerDBGeneric::AsyncPlayerLogin(unsigned requestId, const string &/*playerName*/, const string &/*secretString*/)
{
+3
View File
@@ -35,6 +35,9 @@ public:
virtual void Init(const std::string &host, const std::string &user, const std::string &pwd,
const std::string &database, const std::string &encryptionKey);
virtual void Start();
virtual void Stop();
virtual void AsyncPlayerLogin(unsigned requestId, const std::string &playerName, const std::string &secretString);
virtual bool PlayerLogout(db_id playerId);
+3
View File
@@ -35,6 +35,9 @@ public:
virtual void Init(const std::string &host, const std::string &user, const std::string &pwd,
const std::string &database, const std::string &encryptionKey) = 0;
virtual void Start() = 0;
virtual void Stop() = 0;
virtual void AsyncPlayerLogin(unsigned requestId, const std::string &playerName, const std::string &secretString) = 0;
virtual bool PlayerLogout(db_id playerId) = 0;