2012-01-29 14:28:19 -05:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2011-11-06 20:41:54 -05:00
|
|
|
#include "cPacket_SoundEffect.h"
|
|
|
|
|
2012-01-29 14:28:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-06 20:41:54 -05:00
|
|
|
cPacket_SoundEffect::cPacket_SoundEffect( const cPacket_SoundEffect & a_Copy )
|
|
|
|
{
|
2012-02-07 15:49:52 -05:00
|
|
|
m_PacketID = E_SOUND_EFFECT;
|
|
|
|
m_SoundID = a_Copy.m_SoundID;
|
|
|
|
m_PosX = a_Copy.m_PosX;
|
|
|
|
m_PosY = a_Copy.m_PosY;
|
|
|
|
m_PosZ = a_Copy.m_PosZ;
|
|
|
|
m_SoundData = a_Copy.m_SoundData;
|
2011-11-06 20:41:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cPacket_SoundEffect::Serialize(AString & a_Data) const
|
2011-11-06 20:41:54 -05:00
|
|
|
{
|
2012-02-07 15:49:52 -05:00
|
|
|
AppendByte (a_Data, m_PacketID);
|
|
|
|
AppendInteger(a_Data, m_SoundID);
|
|
|
|
AppendInteger(a_Data, m_PosX);
|
|
|
|
AppendByte (a_Data, m_PosY);
|
|
|
|
AppendInteger(a_Data, m_PosZ);
|
|
|
|
AppendInteger(a_Data, m_SoundData);
|
2011-11-06 20:41:54 -05:00
|
|
|
}
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|