Added serverDatabase library

This commit is contained in:
Anonymous
2014-01-17 08:02:53 -07:00
parent 5783bdd0e2
commit ebad6e01af
206 changed files with 14638 additions and 0 deletions
@@ -0,0 +1,51 @@
// ======================================================================
//
// PurgeCompleteCustomPersistStep.cpp
// copyright (c) 2001 Sony Online Entertainment
//
// ======================================================================
#include "serverDatabase/FirstServerDatabase.h"
#include "serverDatabase/PurgeCompleteCustomPersistStep.h"
#include "serverDatabase/DatabaseProcess.h"
#include "sharedNetworkMessages/GenericValueTypeMessage.h"
// ======================================================================
PurgeCompleteCustomPersistStep::PurgeCompleteCustomPersistStep(StationId stationId) :
m_stationId(stationId)
{
}
// ----------------------------------------------------------------------
PurgeCompleteCustomPersistStep::~PurgeCompleteCustomPersistStep()
{
}
// ----------------------------------------------------------------------
bool PurgeCompleteCustomPersistStep::beforePersist(DB::Session *session)
{
UNREF(session);
return true;
}
// ----------------------------------------------------------------------
bool PurgeCompleteCustomPersistStep::afterPersist(DB::Session *session)
{
UNREF(session);
return true;
}
// ----------------------------------------------------------------------
void PurgeCompleteCustomPersistStep::onComplete()
{
GenericValueTypeMessage<StationId> msg("PurgeCompleteMessage", m_stationId);
DatabaseProcess::getInstance().sendToCentralServer(msg,true);
}
// ======================================================================