mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-07 22:13:07 -04:00
Added serverNetworkMessages library
This commit is contained in:
+167
@@ -0,0 +1,167 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// TransferAccountData.cpp
|
||||
// copyright (c) 2001-2004 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#include "serverNetworkMessages/FirstServerNetworkMessages.h"
|
||||
#include "serverNetworkMessages/TransferAccountData.h"
|
||||
#include "Unicode.h"
|
||||
#include "UnicodeUtils.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferAccountData::TransferAccountData(const TransferAccountData & rhs) :
|
||||
m_track(rhs.m_track),
|
||||
m_sourceStationId(rhs.m_sourceStationId),
|
||||
m_destinationStationId(rhs.m_destinationStationId),
|
||||
m_transactionId(rhs.m_transactionId),
|
||||
m_startGalaxy(rhs.m_startGalaxy),
|
||||
m_destinationHasAvatars(rhs.m_destinationHasAvatars),
|
||||
m_sourceAvatarData(rhs.m_sourceAvatarData)
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferAccountData::TransferAccountData() :
|
||||
m_track(0),
|
||||
m_sourceStationId(0),
|
||||
m_destinationStationId(0),
|
||||
m_transactionId(0),
|
||||
m_startGalaxy(),
|
||||
m_destinationHasAvatars(),
|
||||
m_sourceAvatarData()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferAccountData::~TransferAccountData()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferAccountData::getTrack() const
|
||||
{
|
||||
return m_track;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferAccountData::getSourceStationId() const
|
||||
{
|
||||
return m_sourceStationId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferAccountData::getDestinationStationId() const
|
||||
{
|
||||
return m_destinationStationId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferAccountData::getTransactionId() const
|
||||
{
|
||||
return m_transactionId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::vector<AvatarData> & TransferAccountData::getSourceAvatarData() const
|
||||
{
|
||||
return m_sourceAvatarData;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferAccountData::getStartGalaxy() const
|
||||
{
|
||||
return m_startGalaxy;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
bool TransferAccountData::getDestinationHasAvatars() const
|
||||
{
|
||||
return m_destinationHasAvatars;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
std::string TransferAccountData::toString() const
|
||||
{
|
||||
char buf[64] = {"\0"};
|
||||
|
||||
std::string result;
|
||||
|
||||
result += "startGalaxy: ";
|
||||
result += getStartGalaxy();
|
||||
|
||||
result += " | sourceStationId: ";
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) - 1, "%d", getSourceStationId());
|
||||
result += buf;
|
||||
|
||||
result += " | destinationStationId: ";
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) - 1, "%d", getDestinationStationId());
|
||||
result += buf;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferAccountData::setDestinationStationId(const unsigned int destinationStationId)
|
||||
{
|
||||
m_destinationStationId = destinationStationId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferAccountData::setSourceStationId(const unsigned int sourceStationId)
|
||||
{
|
||||
m_sourceStationId = sourceStationId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferAccountData::setTrack(const unsigned int track)
|
||||
{
|
||||
m_track = track;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferAccountData::setTransactionId(const unsigned int transactionId)
|
||||
{
|
||||
m_transactionId = transactionId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferAccountData::setSourceAvatarData(const std::vector<AvatarData> & avatarData)
|
||||
{
|
||||
m_sourceAvatarData = avatarData;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferAccountData::setStartGalaxy(const std::string & galaxy)
|
||||
{
|
||||
m_startGalaxy = galaxy;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferAccountData::setDestinationHasAvatars(const bool avatars)
|
||||
{
|
||||
m_destinationHasAvatars = avatars;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
// TransferAccountData.h
|
||||
// Copyright 2000-05, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Vijay Thakkar
|
||||
|
||||
#ifndef _INCLUDED_TransferAccountData_H
|
||||
#define _INCLUDED_TransferAccountData_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
#include "sharedFoundation/StationId.h"
|
||||
#include <string>
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
typedef std::pair<std::string, std::string> AvatarData;
|
||||
|
||||
class TransferAccountData;
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
class ReadIterator;
|
||||
void get(ReadIterator & source, TransferAccountData & target);
|
||||
}
|
||||
|
||||
class TransferAccountData
|
||||
{
|
||||
public:
|
||||
TransferAccountData(const TransferAccountData & rhs);
|
||||
TransferAccountData();
|
||||
|
||||
~TransferAccountData();
|
||||
|
||||
unsigned int getDestinationStationId () const;
|
||||
unsigned int getSourceStationId () const;
|
||||
unsigned int getTrack () const;
|
||||
unsigned int getTransactionId () const;
|
||||
const std::string & getStartGalaxy () const;
|
||||
bool getDestinationHasAvatars () const;
|
||||
const std::vector<AvatarData> & getSourceAvatarData () const;
|
||||
std::string toString () const;
|
||||
|
||||
void setDestinationStationId (const unsigned int destinationStationId);
|
||||
void setSourceStationId (const unsigned int sourceStationId);
|
||||
void setTrack (const unsigned int track);
|
||||
void setTransactionId (const unsigned int transactionId);
|
||||
void setStartGalaxy (const std::string & galaxy);
|
||||
void setDestinationHasAvatars (const bool avatars);
|
||||
void setSourceAvatarData (const std::vector<AvatarData> & avatarData);
|
||||
|
||||
private:
|
||||
friend void Archive::get(Archive::ReadIterator & source, TransferAccountData & target);
|
||||
|
||||
unsigned int m_track;
|
||||
StationId m_sourceStationId;
|
||||
StationId m_destinationStationId;
|
||||
unsigned int m_transactionId;
|
||||
std::string m_startGalaxy;
|
||||
bool m_destinationHasAvatars;
|
||||
// avatarData elements: < clusterName, avatarName >
|
||||
std::vector<AvatarData> m_sourceAvatarData;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_TransferAccountData_H
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// TransferAccountDataArchive.cpp
|
||||
// copyright (c) 2001-2004 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#include "serverNetworkMessages/FirstServerNetworkMessages.h"
|
||||
#include "serverNetworkMessages/TransferAccountDataArchive.h"
|
||||
#include "serverNetworkMessages/TransferAccountData.h"
|
||||
#include "sharedFoundation/NetworkIdArchive.h"
|
||||
#include "Archive/Archive.h"
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
void get(ReadIterator & source, TransferAccountData & target)
|
||||
{
|
||||
get(source, target.m_destinationStationId);
|
||||
get(source, target.m_sourceStationId);
|
||||
get(source, target.m_track);
|
||||
get(source, target.m_transactionId);
|
||||
get(source, target.m_destinationHasAvatars);
|
||||
get(source, target.m_sourceAvatarData);
|
||||
get(source, target.m_startGalaxy);
|
||||
}
|
||||
|
||||
void put(ByteStream & target, const TransferAccountData & source)
|
||||
{
|
||||
put(target, source.getDestinationStationId());
|
||||
put(target, source.getSourceStationId());
|
||||
put(target, source.getTrack());
|
||||
put(target, source.getTransactionId());
|
||||
put(target, source.getDestinationHasAvatars());
|
||||
put(target, source.getSourceAvatarData());
|
||||
put(target, source.getStartGalaxy());
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// TransferAccountDataArchive.h
|
||||
// copyright (c) 2001-2004 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#ifndef _TransferAccountDataArchive_H
|
||||
#define _TransferAccountDataArchive_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class TransferAccountData;
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
class ByteStream;
|
||||
class ReadIterator;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
void get (ReadIterator & source, TransferAccountData & target);
|
||||
void put (ByteStream & target, const TransferAccountData & source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif//_TransferAccountDataArchive_H
|
||||
+761
@@ -0,0 +1,761 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// TransferCharacterData.cpp
|
||||
// copyright (c) 2001-2004 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#include "serverNetworkMessages/FirstServerNetworkMessages.h"
|
||||
#include "serverNetworkMessages/TransferCharacterData.h"
|
||||
#include "Unicode.h"
|
||||
#include "UnicodeUtils.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferCharacterData::TransferCharacterData(const TransferCharacterData & rhs) :
|
||||
m_track(rhs.m_track),
|
||||
m_customerLocalizedLanguage(rhs.m_customerLocalizedLanguage),
|
||||
m_sourceGalaxy(rhs.m_sourceGalaxy),
|
||||
m_destinationGalaxy(rhs.m_destinationGalaxy),
|
||||
m_sourceCharacterName(rhs.m_sourceCharacterName),
|
||||
m_destinationCharacterName(rhs.m_destinationCharacterName),
|
||||
m_sourceStationId(rhs.m_sourceStationId),
|
||||
m_destinationStationId(rhs.m_destinationStationId),
|
||||
m_transactionId(rhs.m_transactionId),
|
||||
m_characterId(rhs.m_characterId),
|
||||
m_destinationCharacterId(rhs.m_destinationCharacterId),
|
||||
m_containerId(rhs.m_containerId),
|
||||
m_scene(rhs.m_scene),
|
||||
m_startingCoordinates(rhs.m_startingCoordinates),
|
||||
m_customizationData(rhs.m_customizationData),
|
||||
m_scriptDictionaryData(rhs.m_scriptDictionaryData),
|
||||
m_objectTemplateName(rhs.m_objectTemplateName),
|
||||
m_objectTemplateCrc(rhs.m_objectTemplateCrc),
|
||||
m_scaleFactor(rhs.m_scaleFactor),
|
||||
m_hairTemplateName(rhs.m_hairTemplateName),
|
||||
m_hairAppearanceData(rhs.m_hairAppearanceData),
|
||||
m_profession(rhs.m_profession),
|
||||
m_biography(rhs.m_biography),
|
||||
m_isValidName(rhs.m_isValidName),
|
||||
m_isMoveRequest(rhs.m_isMoveRequest),
|
||||
m_withItems(rhs.m_withItems),
|
||||
m_resultDescription(rhs.m_resultDescription),
|
||||
m_allowOverride(rhs.m_allowOverride),
|
||||
m_skillTemplate(rhs.m_skillTemplate),
|
||||
m_workingSkill(rhs.m_workingSkill),
|
||||
m_transferRequestSource(rhs.m_transferRequestSource),
|
||||
m_csToolId(rhs.m_csToolId)
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferCharacterData::TransferCharacterData(TransferRequestMoveValidation::TransferRequestSource transferRequestSource) :
|
||||
m_track(0),
|
||||
m_customerLocalizedLanguage(),
|
||||
m_sourceGalaxy(),
|
||||
m_destinationGalaxy(),
|
||||
m_sourceCharacterName(),
|
||||
m_destinationCharacterName(),
|
||||
m_sourceStationId(0),
|
||||
m_destinationStationId(0),
|
||||
m_transactionId(0),
|
||||
m_characterId(NetworkId::cms_invalid),
|
||||
m_destinationCharacterId(NetworkId::cms_invalid),
|
||||
m_containerId(NetworkId::cms_invalid),
|
||||
m_scene(),
|
||||
m_startingCoordinates(),
|
||||
m_customizationData(),
|
||||
m_scriptDictionaryData(),
|
||||
m_objectTemplateName(),
|
||||
m_objectTemplateCrc(0),
|
||||
m_scaleFactor(1.0f),
|
||||
m_hairTemplateName(),
|
||||
m_hairAppearanceData(),
|
||||
m_profession(),
|
||||
m_biography(),
|
||||
m_isValidName(false),
|
||||
m_isMoveRequest(false),
|
||||
m_withItems(false),
|
||||
m_resultDescription(),
|
||||
m_allowOverride(false),
|
||||
m_skillTemplate(),
|
||||
m_workingSkill(),
|
||||
m_transferRequestSource(transferRequestSource),
|
||||
m_csToolId(0)
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferCharacterData::TransferCharacterData() :
|
||||
m_track(0),
|
||||
m_customerLocalizedLanguage(),
|
||||
m_sourceGalaxy(),
|
||||
m_destinationGalaxy(),
|
||||
m_sourceCharacterName(),
|
||||
m_destinationCharacterName(),
|
||||
m_sourceStationId(0),
|
||||
m_destinationStationId(0),
|
||||
m_transactionId(0),
|
||||
m_characterId(NetworkId::cms_invalid),
|
||||
m_destinationCharacterId(NetworkId::cms_invalid),
|
||||
m_containerId(NetworkId::cms_invalid),
|
||||
m_scene(),
|
||||
m_startingCoordinates(),
|
||||
m_customizationData(),
|
||||
m_scriptDictionaryData(),
|
||||
m_objectTemplateName(),
|
||||
m_objectTemplateCrc(0),
|
||||
m_scaleFactor(1.0f),
|
||||
m_hairTemplateName(),
|
||||
m_hairAppearanceData(),
|
||||
m_profession(),
|
||||
m_biography(),
|
||||
m_isValidName(false),
|
||||
m_isMoveRequest(false),
|
||||
m_withItems(false),
|
||||
m_resultDescription(),
|
||||
m_allowOverride(false),
|
||||
m_skillTemplate(),
|
||||
m_workingSkill(),
|
||||
m_transferRequestSource(TransferRequestMoveValidation::TRS_transfer_server),
|
||||
m_csToolId(0)
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferCharacterData::~TransferCharacterData()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const NetworkId & TransferCharacterData::getCharacterId() const
|
||||
{
|
||||
return m_characterId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const NetworkId & TransferCharacterData::getContainerId() const
|
||||
{
|
||||
return m_containerId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getScene() const
|
||||
{
|
||||
return m_scene;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferCharacterData::getTrack() const
|
||||
{
|
||||
return m_track;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getCustomerLocalizedLanguage() const
|
||||
{
|
||||
return m_customerLocalizedLanguage;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getSourceGalaxy() const
|
||||
{
|
||||
return m_sourceGalaxy;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getDestinationGalaxy() const
|
||||
{
|
||||
return m_destinationGalaxy;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getSourceCharacterName() const
|
||||
{
|
||||
return m_sourceCharacterName;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getDestinationCharacterName() const
|
||||
{
|
||||
return m_destinationCharacterName;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferCharacterData::getSourceStationId() const
|
||||
{
|
||||
return m_sourceStationId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferCharacterData::getDestinationStationId() const
|
||||
{
|
||||
return m_destinationStationId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferCharacterData::getTransactionId() const
|
||||
{
|
||||
return m_transactionId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const Vector & TransferCharacterData::getStartingCoordinates() const
|
||||
{
|
||||
return m_startingCoordinates;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
bool TransferCharacterData::getAllowOverride() const
|
||||
{
|
||||
return m_allowOverride;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getSkillTemplate() const
|
||||
{
|
||||
return m_skillTemplate;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getWorkingSkill() const
|
||||
{
|
||||
return m_workingSkill;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferRequestMoveValidation::TransferRequestSource TransferCharacterData::getTransferRequestSource() const
|
||||
{
|
||||
return m_transferRequestSource;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
std::string TransferCharacterData::toString() const
|
||||
{
|
||||
char buf[64] = {"\0"};
|
||||
|
||||
std::string result;
|
||||
|
||||
result += " transactionId=";
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) - 1, "%d", getTransactionId());
|
||||
result += buf;
|
||||
|
||||
result += " track=";
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) - 1, "%d", getTrack());
|
||||
result += buf;
|
||||
|
||||
TransferRequestMoveValidation::TransferRequestSource const transferRequestSource = getTransferRequestSource();
|
||||
if (transferRequestSource == TransferRequestMoveValidation::TRS_transfer_server)
|
||||
{
|
||||
result += " requestSource=TransferServer";
|
||||
}
|
||||
else if (transferRequestSource == TransferRequestMoveValidation::TRS_console_god_command)
|
||||
{
|
||||
result += " requestSource=GameServer_console_command";
|
||||
}
|
||||
else if (transferRequestSource == TransferRequestMoveValidation::TRS_ingame_freects_command_validate)
|
||||
{
|
||||
result += " requestSource=GameServer_freects_command_validate";
|
||||
}
|
||||
else if (transferRequestSource == TransferRequestMoveValidation::TRS_ingame_freects_command_transfer)
|
||||
{
|
||||
result += " requestSource=GameServer_freects_command_transfer";
|
||||
}
|
||||
else if (transferRequestSource == TransferRequestMoveValidation::TRS_ingame_cts_command_validate)
|
||||
{
|
||||
result += " requestSource=GameServer_cts_command_validate";
|
||||
}
|
||||
else if (transferRequestSource == TransferRequestMoveValidation::TRS_ingame_cts_command_transfer)
|
||||
{
|
||||
result += " requestSource=GameServer_cts_command_transfer";
|
||||
}
|
||||
else
|
||||
{
|
||||
result += " requestSource=";
|
||||
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) - 1, "%d", static_cast<int>(transferRequestSource));
|
||||
result += buf;
|
||||
}
|
||||
|
||||
result += " isValidName=";
|
||||
if(getIsValidName())
|
||||
{
|
||||
result += "true";
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "false";
|
||||
}
|
||||
|
||||
result += " isMoveRequest=";
|
||||
if(getIsMoveRequest())
|
||||
{
|
||||
result += "true";
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "false";
|
||||
}
|
||||
|
||||
result += " withItems=";
|
||||
if(getWithItems())
|
||||
{
|
||||
result += "true";
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "false";
|
||||
}
|
||||
|
||||
result += " allowOverride=";
|
||||
if(getAllowOverride())
|
||||
{
|
||||
result += "true";
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "false";
|
||||
}
|
||||
|
||||
result += " {";
|
||||
|
||||
result += "SOURCE: ";
|
||||
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) - 1, "%d", getSourceStationId());
|
||||
result += buf;
|
||||
result += ", ";
|
||||
|
||||
result += getSourceGalaxy();
|
||||
result += ", ";
|
||||
|
||||
result += getSourceCharacterName();
|
||||
|
||||
result += " (";
|
||||
result += getCharacterId().getValueString();
|
||||
result += ") ";
|
||||
|
||||
|
||||
result += "} ----> {";
|
||||
|
||||
result += "DEST: ";
|
||||
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) - 1, "%d", getDestinationStationId());
|
||||
result += buf;
|
||||
result += ", ";
|
||||
|
||||
result += getDestinationGalaxy();
|
||||
result += ", ";
|
||||
|
||||
result += getDestinationCharacterName();
|
||||
|
||||
result += " (";
|
||||
result += getDestinationCharacterId().getValueString();
|
||||
result += ") ";
|
||||
|
||||
result += "} ";
|
||||
|
||||
result += " customerLocalizedLanguage=";
|
||||
result += getCustomerLocalizedLanguage();
|
||||
|
||||
result += " scene=";
|
||||
result += getScene();
|
||||
memset(buf, 0, sizeof(buf));
|
||||
const Vector & v = getStartingCoordinates();
|
||||
snprintf(buf, sizeof(buf) - 1, " (%.2f %.2f %.2f)", v.x, v.y, v.z);
|
||||
result += buf;
|
||||
|
||||
result += " containerId=";
|
||||
result += getContainerId().getValueString();
|
||||
|
||||
result += " objectTemplateName=";
|
||||
result += getObjectTemplateName();
|
||||
|
||||
result += " objectTemplateCrc=";
|
||||
snprintf(buf, sizeof(buf) - 1, "%lu", getObjectTemplateCrc());
|
||||
result += buf;
|
||||
|
||||
result += " scaleFactor=";
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) - 1, "%.2f", getScaleFactor());
|
||||
result += buf;
|
||||
|
||||
result += " customizationData.length=";
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) - 1, "%d", getCustomizationData().length());
|
||||
result += buf;
|
||||
|
||||
result += " scriptDictionaryData.length=";
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) - 1, "%d", getScriptDictionaryData().size());
|
||||
result += buf;
|
||||
|
||||
result += " hairObjectTemplateName=";
|
||||
result += getHairTemplateName();
|
||||
|
||||
result += " hairAppearanceData.length=";
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, sizeof(buf) -1, "%d", getHairAppearanceData().length());
|
||||
result += buf;
|
||||
|
||||
result += " profession=";
|
||||
result += getProfession();
|
||||
|
||||
result += " skillTemplate=";
|
||||
result += getSkillTemplate();
|
||||
|
||||
result += " getWorkingSkill=";
|
||||
result += getWorkingSkill();
|
||||
|
||||
result += " resultDescription=";
|
||||
result += Unicode::wideToNarrow(getResultDescription());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getCustomizationData() const
|
||||
{
|
||||
return m_customizationData;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::vector<unsigned char> & TransferCharacterData::getScriptDictionaryData() const
|
||||
{
|
||||
return m_scriptDictionaryData;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getObjectTemplateName() const
|
||||
{
|
||||
return m_objectTemplateName;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
uint32 TransferCharacterData::getObjectTemplateCrc() const
|
||||
{
|
||||
return m_objectTemplateCrc;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
float TransferCharacterData::getScaleFactor() const
|
||||
{
|
||||
return m_scaleFactor;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getHairTemplateName() const
|
||||
{
|
||||
return m_hairTemplateName;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getHairAppearanceData() const
|
||||
{
|
||||
return m_hairAppearanceData;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferCharacterData::getProfession() const
|
||||
{
|
||||
return m_profession;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const Unicode::String & TransferCharacterData::getBiography() const
|
||||
{
|
||||
return m_biography;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const NetworkId & TransferCharacterData::getDestinationCharacterId() const
|
||||
{
|
||||
return m_destinationCharacterId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
bool TransferCharacterData::getIsValidName() const
|
||||
{
|
||||
return m_isValidName;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
bool TransferCharacterData::getIsMoveRequest() const
|
||||
{
|
||||
return m_isMoveRequest;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
bool TransferCharacterData::getWithItems() const
|
||||
{
|
||||
return m_withItems;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const Unicode::String & TransferCharacterData::getResultDescription() const
|
||||
{
|
||||
return m_resultDescription;
|
||||
}
|
||||
|
||||
const unsigned int TransferCharacterData::getCSToolId() const
|
||||
{
|
||||
return m_csToolId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setCharacterId(const NetworkId & characterId)
|
||||
{
|
||||
m_characterId = characterId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setContainerId(const NetworkId & containerId)
|
||||
{
|
||||
m_containerId = containerId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setCustomerLocalizedLanguage(const std::string & locale)
|
||||
{
|
||||
m_customerLocalizedLanguage = locale;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setDestinationCharacterId(const NetworkId & destinationCharacterId)
|
||||
{
|
||||
m_destinationCharacterId = destinationCharacterId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setDestinationCharacterName(const std::string & destinationCharacterName)
|
||||
{
|
||||
m_destinationCharacterName = destinationCharacterName;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setDestinationGalaxy(const std::string & destinationGalaxy)
|
||||
{
|
||||
m_destinationGalaxy = destinationGalaxy;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setDestinationStationId(const unsigned int destinationStationId)
|
||||
{
|
||||
m_destinationStationId = destinationStationId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setScene(const std::string & scene)
|
||||
{
|
||||
m_scene = scene;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setSourceCharacterName(const std::string & sourceCharacterName)
|
||||
{
|
||||
m_sourceCharacterName = sourceCharacterName;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setSourceGalaxy(const std::string & sourceGalaxy)
|
||||
{
|
||||
m_sourceGalaxy = sourceGalaxy;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setSourceStationId(const unsigned int sourceStationId)
|
||||
{
|
||||
m_sourceStationId = sourceStationId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setTrack(const unsigned int track)
|
||||
{
|
||||
m_track = track;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setTransactionId(const unsigned int transactionId)
|
||||
{
|
||||
m_transactionId = transactionId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setStartingCoordinates(const Vector & startingCoordinates)
|
||||
{
|
||||
m_startingCoordinates = startingCoordinates;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setCustomizationData(const std::string & customizationData)
|
||||
{
|
||||
m_customizationData = customizationData;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setScriptDictionaryData(const std::vector<unsigned char> & scriptDictionaryData)
|
||||
{
|
||||
m_scriptDictionaryData = scriptDictionaryData;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setObjectTemplateName(const std::string & objectTemplateName)
|
||||
{
|
||||
m_objectTemplateName = objectTemplateName;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setObjectTemplateCrc(uint32 objectTemplateCrc)
|
||||
{
|
||||
m_objectTemplateCrc = objectTemplateCrc;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setScaleFactor(const float scaleFactor)
|
||||
{
|
||||
m_scaleFactor = scaleFactor;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setHairTemplateName(const std::string & hairTemplateName)
|
||||
{
|
||||
m_hairTemplateName = hairTemplateName;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setHairAppearanceData(const std::string & hairAppearanceData)
|
||||
{
|
||||
m_hairAppearanceData = hairAppearanceData;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setProfession(const std::string & profession)
|
||||
{
|
||||
m_profession = profession;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setBiography(const Unicode::String & biography)
|
||||
{
|
||||
m_biography = biography;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setIsMoveRequest(const bool isMoveRequest)
|
||||
{
|
||||
m_isMoveRequest = isMoveRequest;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setWithItems(const bool withItems)
|
||||
{
|
||||
m_withItems = withItems;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setIsValidName(const bool isNameValid)
|
||||
{
|
||||
m_isValidName = isNameValid;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setResultDescription(const Unicode::String & description)
|
||||
{
|
||||
m_resultDescription = description;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setAllowOverride(const bool allowOverride)
|
||||
{
|
||||
m_allowOverride = allowOverride;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setSkillTemplate(const std::string & skillTemplate)
|
||||
{
|
||||
m_skillTemplate = skillTemplate;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setWorkingSkill(const std::string & workingSkill)
|
||||
{
|
||||
m_workingSkill = workingSkill;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
void TransferCharacterData::setCSToolId(const unsigned int toolId)
|
||||
{
|
||||
m_csToolId = toolId;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// TransferCharacterData.h
|
||||
// copyright (c) 2001 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#ifndef INCLUDED_TransferCharacterData_H
|
||||
#define INCLUDED_TransferCharacterData_H
|
||||
|
||||
// ======================================================================
|
||||
|
||||
#include "serverNetworkMessages/TransferRequestMoveValidation.h"
|
||||
#include "sharedFoundation/NetworkId.h"
|
||||
#include "sharedMath/Vector.h"
|
||||
#include <string>
|
||||
|
||||
// ======================================================================
|
||||
|
||||
class TransferCharacterData;
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
class ReadIterator;
|
||||
void get(ReadIterator & source, TransferCharacterData & target);
|
||||
}
|
||||
|
||||
/**
|
||||
* Data structures for passing around the list of avatars for an account.
|
||||
*/
|
||||
class TransferCharacterData
|
||||
{
|
||||
public:
|
||||
TransferCharacterData(const TransferCharacterData & rhs);
|
||||
TransferCharacterData(TransferRequestMoveValidation::TransferRequestSource transferRequestSource);
|
||||
|
||||
~TransferCharacterData();
|
||||
|
||||
const NetworkId & getCharacterId () const;
|
||||
const NetworkId & getContainerId () const;
|
||||
const std::string & getCustomerLocalizedLanguage () const;
|
||||
const NetworkId & getDestinationCharacterId () const;
|
||||
const std::string & getDestinationCharacterName () const;
|
||||
const std::string & getDestinationGalaxy () const;
|
||||
unsigned int getDestinationStationId () const;
|
||||
const std::string & getScene () const;
|
||||
const std::string & getSourceCharacterName () const;
|
||||
const std::string & getSourceGalaxy () const;
|
||||
unsigned int getSourceStationId () const;
|
||||
unsigned int getTrack () const;
|
||||
unsigned int getTransactionId () const;
|
||||
const Vector & getStartingCoordinates () const;
|
||||
std::string toString () const;
|
||||
const std::string & getCustomizationData () const;
|
||||
const std::vector<unsigned char> & getScriptDictionaryData () const;
|
||||
const std::string & getObjectTemplateName () const;
|
||||
uint32 getObjectTemplateCrc () const;
|
||||
float getScaleFactor () const;
|
||||
const std::string & getHairTemplateName () const;
|
||||
const std::string & getHairAppearanceData () const;
|
||||
const std::string & getProfession () const;
|
||||
const Unicode::String & getBiography () const;
|
||||
bool getIsValidName () const;
|
||||
bool getIsMoveRequest () const;
|
||||
bool getWithItems () const;
|
||||
const Unicode::String & getResultDescription () const;
|
||||
bool getAllowOverride () const;
|
||||
const std::string & getSkillTemplate () const;
|
||||
const std::string & getWorkingSkill () const;
|
||||
TransferRequestMoveValidation::TransferRequestSource getTransferRequestSource() const;
|
||||
|
||||
const unsigned int getCSToolId () const;
|
||||
|
||||
void setCharacterId (const NetworkId & characterId);
|
||||
void setContainerId (const NetworkId & containerId);
|
||||
void setCustomerLocalizedLanguage (const std::string & locale);
|
||||
void setDestinationCharacterId (const NetworkId & destinationCharacterId);
|
||||
void setDestinationCharacterName (const std::string & destinationCharacterName);
|
||||
void setDestinationGalaxy (const std::string & destinationGalaxy);
|
||||
void setDestinationStationId (const unsigned int destinationStationId);
|
||||
void setScene (const std::string & scene);
|
||||
void setSourceCharacterName (const std::string & sourceCharacterName);
|
||||
void setSourceGalaxy (const std::string & sourceGalaxy);
|
||||
void setSourceStationId (const unsigned int sourceStationId);
|
||||
void setTrack (const unsigned int track);
|
||||
void setTransactionId (const unsigned int transactionId);
|
||||
void setStartingCoordinates (const Vector & startingCoordinates);
|
||||
void setCustomizationData (const std::string & customizationData);
|
||||
void setScriptDictionaryData (const std::vector<unsigned char> & scriptDictionaryData);
|
||||
void setObjectTemplateName (const std::string & objectTemplateName);
|
||||
void setObjectTemplateCrc (uint32 objectTemplateCrc);
|
||||
void setScaleFactor (const float scaleFactor);
|
||||
void setHairTemplateName (const std::string & hairTemplateName);
|
||||
void setHairAppearanceData (const std::string & hairAppearanceData);
|
||||
void setProfession (const std::string & profession);
|
||||
void setBiography (const Unicode::String & biography);
|
||||
void setIsValidName (const bool isNameValid);
|
||||
void setIsMoveRequest (const bool isMoveRequest);
|
||||
void setWithItems (const bool withItems);
|
||||
void setResultDescription (const Unicode::String & resultDescription);
|
||||
void setAllowOverride (const bool allowOverride);
|
||||
void setSkillTemplate (const std::string & skillTemplate);
|
||||
void setWorkingSkill (const std::string & workingSkill);
|
||||
|
||||
void setCSToolId (const unsigned int toolId);
|
||||
|
||||
private:
|
||||
TransferCharacterData();
|
||||
|
||||
friend class Archive::AutoVariable<TransferCharacterData>;
|
||||
friend struct std::pair<std::string, TransferCharacterData>;
|
||||
friend void Archive::get(Archive::ReadIterator & source, TransferCharacterData & target);
|
||||
|
||||
unsigned int m_track;
|
||||
std::string m_customerLocalizedLanguage;
|
||||
std::string m_sourceGalaxy;
|
||||
std::string m_destinationGalaxy;
|
||||
std::string m_sourceCharacterName;
|
||||
std::string m_destinationCharacterName;
|
||||
unsigned int m_sourceStationId;
|
||||
unsigned int m_destinationStationId;
|
||||
unsigned int m_transactionId;
|
||||
NetworkId m_characterId;
|
||||
NetworkId m_destinationCharacterId;
|
||||
NetworkId m_containerId;
|
||||
std::string m_scene;
|
||||
Vector m_startingCoordinates;
|
||||
std::string m_customizationData;
|
||||
std::vector<unsigned char> m_scriptDictionaryData;
|
||||
std::string m_objectTemplateName;
|
||||
uint32 m_objectTemplateCrc;
|
||||
float m_scaleFactor;
|
||||
std::string m_hairTemplateName;
|
||||
std::string m_hairAppearanceData;
|
||||
std::string m_profession;
|
||||
Unicode::String m_biography;
|
||||
bool m_isValidName;
|
||||
bool m_isMoveRequest;
|
||||
bool m_withItems;
|
||||
Unicode::String m_resultDescription;
|
||||
bool m_allowOverride;
|
||||
std::string m_skillTemplate;
|
||||
std::string m_workingSkill;
|
||||
TransferRequestMoveValidation::TransferRequestSource m_transferRequestSource;
|
||||
|
||||
unsigned int m_csToolId;
|
||||
};
|
||||
|
||||
// ======================================================================
|
||||
|
||||
#endif
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// TransferCharacterDataArchive.cpp
|
||||
// copyright (c) 2001-2004 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#include "serverNetworkMessages/FirstServerNetworkMessages.h"
|
||||
#include "serverNetworkMessages/TransferCharacterDataArchive.h"
|
||||
#include "sharedFoundation/NetworkIdArchive.h"
|
||||
#include "sharedMathArchive/VectorArchive.h"
|
||||
#include "serverNetworkMessages/TransferCharacterData.h"
|
||||
#include "Archive/Archive.h"
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
void get(ReadIterator & source, TransferCharacterData & target)
|
||||
{
|
||||
get(source, target.m_customerLocalizedLanguage);
|
||||
get(source, target.m_destinationCharacterName);
|
||||
get(source, target.m_destinationGalaxy);
|
||||
get(source, target.m_destinationStationId);
|
||||
get(source, target.m_sourceCharacterName);
|
||||
get(source, target.m_sourceGalaxy);
|
||||
get(source, target.m_sourceStationId);
|
||||
get(source, target.m_track);
|
||||
get(source, target.m_transactionId);
|
||||
get(source, target.m_characterId);
|
||||
get(source, target.m_containerId);
|
||||
get(source, target.m_scene);
|
||||
get(source, target.m_startingCoordinates);
|
||||
get(source, target.m_customizationData);
|
||||
get(source, target.m_scriptDictionaryData);
|
||||
get(source, target.m_objectTemplateName);
|
||||
get(source, target.m_objectTemplateCrc);
|
||||
get(source, target.m_scaleFactor);
|
||||
get(source, target.m_hairTemplateName);
|
||||
get(source, target.m_hairAppearanceData);
|
||||
get(source, target.m_profession);
|
||||
get(source, target.m_biography);
|
||||
get(source, target.m_destinationCharacterId);
|
||||
get(source, target.m_isValidName);
|
||||
get(source, target.m_isMoveRequest);
|
||||
get(source, target.m_withItems);
|
||||
get(source, target.m_resultDescription);
|
||||
get(source, target.m_allowOverride);
|
||||
get(source, target.m_csToolId);
|
||||
|
||||
int8 temp;
|
||||
get(source, temp);
|
||||
target.m_transferRequestSource = static_cast<TransferRequestMoveValidation::TransferRequestSource>(temp);
|
||||
}
|
||||
|
||||
void put(ByteStream & target, const TransferCharacterData & source)
|
||||
{
|
||||
put(target, source.getCustomerLocalizedLanguage());
|
||||
put(target, source.getDestinationCharacterName());
|
||||
put(target, source.getDestinationGalaxy());
|
||||
put(target, source.getDestinationStationId());
|
||||
put(target, source.getSourceCharacterName());
|
||||
put(target, source.getSourceGalaxy());
|
||||
put(target, source.getSourceStationId());
|
||||
put(target, source.getTrack());
|
||||
put(target, source.getTransactionId());
|
||||
put(target, source.getCharacterId());
|
||||
put(target, source.getContainerId());
|
||||
put(target, source.getScene());
|
||||
put(target, source.getStartingCoordinates());
|
||||
put(target, source.getCustomizationData());
|
||||
put(target, source.getScriptDictionaryData());
|
||||
put(target, source.getObjectTemplateName());
|
||||
put(target, source.getObjectTemplateCrc());
|
||||
put(target, source.getScaleFactor());
|
||||
put(target, source.getHairTemplateName());
|
||||
put(target, source.getHairAppearanceData());
|
||||
put(target, source.getProfession());
|
||||
put(target, source.getBiography());
|
||||
put(target, source.getDestinationCharacterId());
|
||||
put(target, source.getIsValidName());
|
||||
put(target, source.getIsMoveRequest());
|
||||
put(target, source.getWithItems());
|
||||
put(target, source.getResultDescription());
|
||||
put(target, source.getAllowOverride());
|
||||
put(target, source.getCSToolId());
|
||||
put(target, static_cast<int8>(source.getTransferRequestSource()));
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// TransferCharacterDataArchive.h
|
||||
// copyright (c) 2001-2004 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#ifndef _TransferCharacterDataArchive_H
|
||||
#define _TransferCharacterDataArchive_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class TransferCharacterData;
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
class ByteStream;
|
||||
class ReadIterator;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
void get (ReadIterator & source, TransferCharacterData & target);
|
||||
void put (ByteStream & target, const TransferCharacterData & source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif//_TransferCharacterDataArchive_H
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
// TransferReplyCharacterList.cpp
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "serverNetworkMessages/FirstServerNetworkMessages.h"
|
||||
#include "serverNetworkMessages/TransferReplyCharacterList.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferReplyCharacterList::TransferReplyCharacterList(unsigned int track, unsigned int stationId, const AvatarList & avatarList) :
|
||||
GameNetworkMessage("TransferReplyCharacterList"),
|
||||
m_avatarList(avatarList),
|
||||
m_stationId(stationId),
|
||||
m_track(track)
|
||||
{
|
||||
addVariable(m_avatarList);
|
||||
addVariable(m_stationId);
|
||||
addVariable(m_track);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferReplyCharacterList::TransferReplyCharacterList(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("TransferReplyCharacterList"),
|
||||
m_avatarList(),
|
||||
m_stationId(),
|
||||
m_track()
|
||||
{
|
||||
addVariable(m_avatarList);
|
||||
addVariable(m_stationId);
|
||||
addVariable(m_track);
|
||||
AutoByteStream::unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferReplyCharacterList::~TransferReplyCharacterList()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const AvatarList & TransferReplyCharacterList::getAvatarList() const
|
||||
{
|
||||
return m_avatarList.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferReplyCharacterList::getStationId() const
|
||||
{
|
||||
return m_stationId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferReplyCharacterList::getTrack() const
|
||||
{
|
||||
return m_track.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
// TransferReplyCharacterList.h
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_TransferReplyCharacterList_H
|
||||
#define _INCLUDED_TransferReplyCharacterList_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
#include "serverNetworkMessages/AvatarList.h"
|
||||
#include "serverNetworkMessages/AvatarListArchive.h"
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include <string>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class TransferReplyCharacterList : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
explicit TransferReplyCharacterList(unsigned int track, unsigned int fromStationId, const AvatarList & avatarList);
|
||||
explicit TransferReplyCharacterList(Archive::ReadIterator & source);
|
||||
~TransferReplyCharacterList();
|
||||
|
||||
const AvatarList & getAvatarList () const;
|
||||
unsigned int getStationId () const;
|
||||
unsigned int getTrack () const;
|
||||
|
||||
private:
|
||||
TransferReplyCharacterList & operator = (const TransferReplyCharacterList & rhs);
|
||||
TransferReplyCharacterList(const TransferReplyCharacterList & source);
|
||||
|
||||
Archive::AutoVariable<AvatarList> m_avatarList;
|
||||
Archive::AutoVariable<unsigned int> m_stationId;
|
||||
Archive::AutoVariable<unsigned int> m_track;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_TransferReplyCharacterList_H
|
||||
+162
@@ -0,0 +1,162 @@
|
||||
// TransferReplyMoveValidation.cpp
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "serverNetworkMessages/FirstServerNetworkMessages.h"
|
||||
#include "serverNetworkMessages/TransferReplyMoveValidation.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferReplyMoveValidation::TransferReplyMoveValidation(TransferRequestMoveValidation::TransferRequestSource transferRequestSource, unsigned int track, unsigned int sourceStationId, unsigned int destinationStationId, const std::string & sourceGalaxy, const std::string & destinationGalaxy, const std::string & sourceCharacter, const NetworkId & sourceCharacterId, uint32 sourceCharacterTemplateId, const std::string & destinationCharacter, const std::string & customerLocalizedLanguage, TransferReplyMoveValidationResult result) :
|
||||
GameNetworkMessage("TransferReplyMoveValidation"),
|
||||
m_customerLocalizedLanguage(customerLocalizedLanguage),
|
||||
m_destinationCharacter(destinationCharacter),
|
||||
m_destinationGalaxy(destinationGalaxy),
|
||||
m_destinationStationId(destinationStationId),
|
||||
m_sourceCharacter(sourceCharacter),
|
||||
m_sourceCharacterId(sourceCharacterId),
|
||||
m_sourceCharacterTemplateId(sourceCharacterTemplateId),
|
||||
m_sourceGalaxy(sourceGalaxy),
|
||||
m_sourceStationId(sourceStationId),
|
||||
m_track(track),
|
||||
m_result(static_cast<int8>(result)),
|
||||
m_transferRequestSource(static_cast<int8>(transferRequestSource))
|
||||
{
|
||||
addVariable(m_customerLocalizedLanguage);
|
||||
addVariable(m_destinationCharacter);
|
||||
addVariable(m_destinationGalaxy);
|
||||
addVariable(m_destinationStationId);
|
||||
addVariable(m_sourceCharacter);
|
||||
addVariable(m_sourceCharacterId);
|
||||
addVariable(m_sourceCharacterTemplateId);
|
||||
addVariable(m_sourceGalaxy);
|
||||
addVariable(m_sourceStationId);
|
||||
addVariable(m_track);
|
||||
addVariable(m_result);
|
||||
addVariable(m_transferRequestSource);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferReplyMoveValidation::TransferReplyMoveValidation(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("TransferReplyMoveValidation"),
|
||||
m_customerLocalizedLanguage(),
|
||||
m_destinationCharacter(),
|
||||
m_destinationGalaxy(),
|
||||
m_destinationStationId(),
|
||||
m_sourceCharacter(),
|
||||
m_sourceCharacterId(),
|
||||
m_sourceCharacterTemplateId(),
|
||||
m_sourceGalaxy(),
|
||||
m_sourceStationId(),
|
||||
m_track(),
|
||||
m_result(),
|
||||
m_transferRequestSource()
|
||||
{
|
||||
addVariable(m_customerLocalizedLanguage);
|
||||
addVariable(m_destinationCharacter);
|
||||
addVariable(m_destinationGalaxy);
|
||||
addVariable(m_destinationStationId);
|
||||
addVariable(m_sourceCharacter);
|
||||
addVariable(m_sourceCharacterId);
|
||||
addVariable(m_sourceCharacterTemplateId);
|
||||
addVariable(m_sourceGalaxy);
|
||||
addVariable(m_sourceStationId);
|
||||
addVariable(m_track);
|
||||
addVariable(m_result);
|
||||
addVariable(m_transferRequestSource);
|
||||
AutoByteStream::unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferReplyMoveValidation::~TransferReplyMoveValidation()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferReplyMoveValidation::getCustomerLocalizedLanguage() const
|
||||
{
|
||||
return m_customerLocalizedLanguage.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferReplyMoveValidation::getDestinationCharacter() const
|
||||
{
|
||||
return m_destinationCharacter.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferReplyMoveValidation::getDestinationGalaxy() const
|
||||
{
|
||||
return m_destinationGalaxy.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferReplyMoveValidation::getDestinationStationId() const
|
||||
{
|
||||
return m_destinationStationId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferReplyMoveValidation::getSourceCharacter() const
|
||||
{
|
||||
return m_sourceCharacter.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const NetworkId & TransferReplyMoveValidation::getSourceCharacterId() const
|
||||
{
|
||||
return m_sourceCharacterId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
uint32 TransferReplyMoveValidation::getSourceCharacterTemplateId() const
|
||||
{
|
||||
return m_sourceCharacterTemplateId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferReplyMoveValidation::getSourceGalaxy() const
|
||||
{
|
||||
return m_sourceGalaxy.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferReplyMoveValidation::getSourceStationId() const
|
||||
{
|
||||
return m_sourceStationId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
unsigned int TransferReplyMoveValidation::getTrack() const
|
||||
{
|
||||
return m_track.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferReplyMoveValidation::TransferReplyMoveValidationResult TransferReplyMoveValidation::getResult() const
|
||||
{
|
||||
return static_cast<TransferReplyMoveValidationResult>(m_result.get());
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferRequestMoveValidation::TransferRequestSource TransferReplyMoveValidation::getTransferRequestSource() const
|
||||
{
|
||||
return static_cast<TransferRequestMoveValidation::TransferRequestSource>(m_transferRequestSource.get());
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
// TransferReplyMoveValidation.h
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_TransferReplyMoveValidation_H
|
||||
#define _INCLUDED_TransferReplyMoveValidation_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "serverNetworkMessages/TransferRequestMoveValidation.h"
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include <string>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class TransferReplyMoveValidation : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
enum TransferReplyMoveValidationResult {TRMVR_can_create_regular_character, TRMVR_cannot_create_regular_character, TRMVR_destination_galaxy_invalid, TRMVR_destination_galaxy_not_connected, TRMVR_destination_galaxy_in_loading};
|
||||
|
||||
public:
|
||||
TransferReplyMoveValidation(TransferRequestMoveValidation::TransferRequestSource transferRequestSource, unsigned int track, unsigned int sourceStationId, unsigned int destinationStationId, const std::string & sourceGalaxy, const std::string & destinationGalaxy, const std::string & sourceCharacter, const NetworkId & sourceCharacterId, uint32 sourceCharacterTemplateId, const std::string & destinationCharacter, const std::string & customerLocalizedLanguage, TransferReplyMoveValidationResult result);
|
||||
explicit TransferReplyMoveValidation(Archive::ReadIterator & source);
|
||||
~TransferReplyMoveValidation();
|
||||
|
||||
const std::string & getCustomerLocalizedLanguage () const;
|
||||
const std::string & getDestinationCharacter () const;
|
||||
const std::string & getDestinationGalaxy () const;
|
||||
unsigned int getDestinationStationId () const;
|
||||
const std::string & getSourceCharacter () const;
|
||||
const NetworkId & getSourceCharacterId () const;
|
||||
uint32 getSourceCharacterTemplateId () const;
|
||||
const std::string & getSourceGalaxy () const;
|
||||
unsigned int getSourceStationId () const;
|
||||
unsigned int getTrack () const;
|
||||
TransferReplyMoveValidationResult getResult () const;
|
||||
TransferRequestMoveValidation::TransferRequestSource getTransferRequestSource() const;
|
||||
|
||||
private:
|
||||
TransferReplyMoveValidation & operator = (const TransferReplyMoveValidation & rhs);
|
||||
TransferReplyMoveValidation(const TransferReplyMoveValidation & source);
|
||||
|
||||
Archive::AutoVariable<std::string> m_customerLocalizedLanguage;
|
||||
Archive::AutoVariable<std::string> m_destinationCharacter;
|
||||
Archive::AutoVariable<std::string> m_destinationGalaxy;
|
||||
Archive::AutoVariable<unsigned int> m_destinationStationId;
|
||||
Archive::AutoVariable<std::string> m_sourceCharacter;
|
||||
Archive::AutoVariable<NetworkId> m_sourceCharacterId;
|
||||
Archive::AutoVariable<uint32> m_sourceCharacterTemplateId;
|
||||
Archive::AutoVariable<std::string> m_sourceGalaxy;
|
||||
Archive::AutoVariable<unsigned int> m_sourceStationId;
|
||||
Archive::AutoVariable<unsigned int> m_track;
|
||||
Archive::AutoVariable<int8> m_result;
|
||||
Archive::AutoVariable<int8> m_transferRequestSource;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_TransferReplyMoveValidation_H
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
// TransferRequestMoveValidation.cpp
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "serverNetworkMessages/FirstServerNetworkMessages.h"
|
||||
#include "serverNetworkMessages/TransferRequestMoveValidation.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferRequestMoveValidation::TransferRequestMoveValidation(TransferRequestSource transferRequestSource, unsigned int track, unsigned int sourceStationId, unsigned int destinationStationId, const std::string & sourceGalaxy, const std::string & destinationGalaxy, const std::string & sourceCharacter, const NetworkId & sourceCharacterId, uint32 sourceCharacterTemplateId, const std::string & destinationCharacter, const std::string & customerLocalizedLanguage) :
|
||||
GameNetworkMessage("TransferRequestMoveValidation"),
|
||||
m_customerLocalizedLanguage(customerLocalizedLanguage),
|
||||
m_destinationCharacter(destinationCharacter),
|
||||
m_destinationGalaxy(destinationGalaxy),
|
||||
m_destinationStationId(destinationStationId),
|
||||
m_sourceCharacter(sourceCharacter),
|
||||
m_sourceCharacterId(sourceCharacterId),
|
||||
m_sourceCharacterTemplateId(sourceCharacterTemplateId),
|
||||
m_sourceGalaxy(sourceGalaxy),
|
||||
m_sourceStationId(sourceStationId),
|
||||
m_track(track),
|
||||
m_transferRequestSource(static_cast<int8>(transferRequestSource))
|
||||
{
|
||||
addVariable(m_customerLocalizedLanguage);
|
||||
addVariable(m_destinationCharacter);
|
||||
addVariable(m_destinationGalaxy);
|
||||
addVariable(m_destinationStationId);
|
||||
addVariable(m_sourceCharacter);
|
||||
addVariable(m_sourceCharacterId);
|
||||
addVariable(m_sourceCharacterTemplateId);
|
||||
addVariable(m_sourceGalaxy);
|
||||
addVariable(m_sourceStationId);
|
||||
addVariable(m_track);
|
||||
addVariable(m_transferRequestSource);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferRequestMoveValidation::TransferRequestMoveValidation(Archive::ReadIterator & source) :
|
||||
GameNetworkMessage("TransferRequestMoveValidation"),
|
||||
m_customerLocalizedLanguage(),
|
||||
m_destinationCharacter(),
|
||||
m_destinationGalaxy(),
|
||||
m_destinationStationId(),
|
||||
m_sourceCharacter(),
|
||||
m_sourceCharacterId(),
|
||||
m_sourceCharacterTemplateId(),
|
||||
m_sourceGalaxy(),
|
||||
m_sourceStationId(),
|
||||
m_track(),
|
||||
m_transferRequestSource()
|
||||
{
|
||||
addVariable(m_customerLocalizedLanguage);
|
||||
addVariable(m_destinationCharacter);
|
||||
addVariable(m_destinationGalaxy);
|
||||
addVariable(m_destinationStationId);
|
||||
addVariable(m_sourceCharacter);
|
||||
addVariable(m_sourceCharacterId);
|
||||
addVariable(m_sourceCharacterTemplateId);
|
||||
addVariable(m_sourceGalaxy);
|
||||
addVariable(m_sourceStationId);
|
||||
addVariable(m_track);
|
||||
addVariable(m_transferRequestSource);
|
||||
AutoByteStream::unpack(source);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferRequestMoveValidation::~TransferRequestMoveValidation()
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferRequestMoveValidation::getCustomerLocalizedLanguage() const
|
||||
{
|
||||
return m_customerLocalizedLanguage.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferRequestMoveValidation::getDestinationCharacter() const
|
||||
{
|
||||
return m_destinationCharacter.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferRequestMoveValidation::getDestinationGalaxy() const
|
||||
{
|
||||
return m_destinationGalaxy.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferRequestMoveValidation::getDestinationStationId() const
|
||||
{
|
||||
return m_destinationStationId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferRequestMoveValidation::getSourceCharacter() const
|
||||
{
|
||||
return m_sourceCharacter.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const NetworkId & TransferRequestMoveValidation::getSourceCharacterId() const
|
||||
{
|
||||
return m_sourceCharacterId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
uint32 TransferRequestMoveValidation::getSourceCharacterTemplateId() const
|
||||
{
|
||||
return m_sourceCharacterTemplateId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
const std::string & TransferRequestMoveValidation::getSourceGalaxy() const
|
||||
{
|
||||
return m_sourceGalaxy.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferRequestMoveValidation::getSourceStationId() const
|
||||
{
|
||||
return m_sourceStationId.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
unsigned int TransferRequestMoveValidation::getTrack() const
|
||||
{
|
||||
return m_track.get();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
TransferRequestMoveValidation::TransferRequestSource TransferRequestMoveValidation::getTransferRequestSource() const
|
||||
{
|
||||
return static_cast<TransferRequestSource>(m_transferRequestSource.get());
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
// TransferRequestMoveValidation.h
|
||||
// Copyright 2000-01, Sony Online Entertainment Inc., all rights reserved.
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _INCLUDED_TransferRequestMoveValidation_H
|
||||
#define _INCLUDED_TransferRequestMoveValidation_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
#include "serverNetworkMessages/AvatarList.h"
|
||||
#include "serverNetworkMessages/AvatarListArchive.h"
|
||||
#include "sharedNetworkMessages/GameNetworkMessage.h"
|
||||
#include <string>
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class TransferRequestMoveValidation : public GameNetworkMessage
|
||||
{
|
||||
public:
|
||||
enum TransferRequestSource {TRS_transfer_server, TRS_console_god_command, TRS_ingame_freects_command_validate, TRS_ingame_freects_command_transfer, TRS_ingame_cts_command_validate, TRS_ingame_cts_command_transfer};
|
||||
|
||||
public:
|
||||
TransferRequestMoveValidation(TransferRequestSource transferRequestSource, unsigned int track, unsigned int sourceStationId, unsigned int destinationStationId, const std::string & sourceGalaxy, const std::string & destinationGalaxy, const std::string & sourceCharacter, const NetworkId & sourceCharacterId, uint32 sourceCharacterTemplateId, const std::string & destinationCharacter, const std::string & customerLocalizedLanguage);
|
||||
explicit TransferRequestMoveValidation(Archive::ReadIterator & source);
|
||||
~TransferRequestMoveValidation();
|
||||
|
||||
const std::string & getCustomerLocalizedLanguage () const;
|
||||
const std::string & getDestinationCharacter () const;
|
||||
const std::string & getDestinationGalaxy () const;
|
||||
unsigned int getDestinationStationId () const;
|
||||
const std::string & getSourceCharacter () const;
|
||||
const NetworkId & getSourceCharacterId () const;
|
||||
uint32 getSourceCharacterTemplateId () const;
|
||||
const std::string & getSourceGalaxy () const;
|
||||
unsigned int getSourceStationId () const;
|
||||
unsigned int getTrack () const;
|
||||
TransferRequestSource getTransferRequestSource () const;
|
||||
|
||||
private:
|
||||
TransferRequestMoveValidation & operator = (const TransferRequestMoveValidation & rhs);
|
||||
TransferRequestMoveValidation(const TransferRequestMoveValidation & source);
|
||||
|
||||
Archive::AutoVariable<std::string> m_customerLocalizedLanguage;
|
||||
Archive::AutoVariable<std::string> m_destinationCharacter;
|
||||
Archive::AutoVariable<std::string> m_destinationGalaxy;
|
||||
Archive::AutoVariable<unsigned int> m_destinationStationId;
|
||||
Archive::AutoVariable<std::string> m_sourceCharacter;
|
||||
Archive::AutoVariable<NetworkId> m_sourceCharacterId;
|
||||
Archive::AutoVariable<uint32> m_sourceCharacterTemplateId;
|
||||
Archive::AutoVariable<std::string> m_sourceGalaxy;
|
||||
Archive::AutoVariable<unsigned int> m_sourceStationId;
|
||||
Archive::AutoVariable<unsigned int> m_track;
|
||||
Archive::AutoVariable<int8> m_transferRequestSource;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _INCLUDED_TransferRequestMoveValidation_H
|
||||
Reference in New Issue
Block a user