mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-07 22:13:07 -04:00
Initial LoginServer project commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// TaskGetCharactersForDelete.cpp
|
||||
// copyright (c) 2001 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#include "FirstLoginServer.h"
|
||||
#include "TaskGetCharactersForDelete.h"
|
||||
|
||||
#include "PurgeManager.h"
|
||||
#include "serverNetworkMessages/AvatarList.h"
|
||||
|
||||
// ======================================================================
|
||||
|
||||
TaskGetCharactersForDelete::TaskGetCharactersForDelete (StationId stationId, int clusterGroupId) :
|
||||
TaskGetAvatarList(stationId, clusterGroupId, NULL)
|
||||
{
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
TaskGetCharactersForDelete::~TaskGetCharactersForDelete()
|
||||
{
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
void TaskGetCharactersForDelete::onComplete()
|
||||
{
|
||||
bool success=true;
|
||||
AvatarList const & theList = getAvatars();
|
||||
for (AvatarList::const_iterator i=theList.begin(); i!=theList.end(); ++i)
|
||||
{
|
||||
if (!LoginServer::getInstance().deleteCharacter(i->m_clusterId, i->m_networkId, getStationId()))
|
||||
success=false;
|
||||
}
|
||||
|
||||
PurgeManager::onAllCharactersDeleted(getStationId(), success);
|
||||
}
|
||||
|
||||
// ======================================================================
|
||||
Reference in New Issue
Block a user