mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-17 07:03:02 -04:00
Added serverUtility library
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
// ======================================================================
|
||||
//
|
||||
// PvpEnemy.cpp
|
||||
//
|
||||
// Copyright 2003 Sony Online Entertainment
|
||||
//
|
||||
// ======================================================================
|
||||
|
||||
#include "serverUtility/FirstServerUtility.h"
|
||||
#include "serverUtility/PvpEnemy.h"
|
||||
#include "Archive/Archive.h"
|
||||
#include "Archive/ByteStream.h"
|
||||
#include "sharedFoundation/NetworkIdArchive.h"
|
||||
|
||||
// ======================================================================
|
||||
|
||||
namespace Archive
|
||||
{
|
||||
|
||||
// ======================================================================
|
||||
|
||||
void put(Archive::ByteStream &target, PvpEnemy const &source)
|
||||
{
|
||||
put(target, source.enemyId);
|
||||
put(target, source.enemyFaction);
|
||||
put(target, source.expireTime);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
void get(Archive::ReadIterator &source, PvpEnemy &target)
|
||||
{
|
||||
get(source, target.enemyId);
|
||||
get(source, target.enemyFaction);
|
||||
get(source, target.expireTime);
|
||||
}
|
||||
|
||||
// ======================================================================
|
||||
|
||||
}
|
||||
|
||||
// ======================================================================
|
||||
|
||||
Reference in New Issue
Block a user