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-02 16:40:39 -04:00
|
|
|
#include "cPacket_Thunderbolt.h"
|
|
|
|
|
2012-01-29 14:28:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-02 20:42:53 -04:00
|
|
|
cPacket_Thunderbolt::cPacket_Thunderbolt( const cPacket_Thunderbolt & a_Copy )
|
|
|
|
{
|
2012-02-07 15:49:52 -05:00
|
|
|
m_PacketID = E_THUNDERBOLT;
|
|
|
|
m_UniqueID = 237183; //just a random Ent ID. I don't think this matters at all.
|
|
|
|
m_Unknown = true;
|
|
|
|
m_xLBPos = a_Copy.m_xLBPos;
|
|
|
|
m_yLBPos = a_Copy.m_yLBPos;
|
|
|
|
m_zLBPos = a_Copy.m_zLBPos;
|
2011-11-02 20:42:53 -04:00
|
|
|
}
|
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cPacket_Thunderbolt::Serialize(AString & a_Data) const
|
2011-11-02 16:40:39 -04:00
|
|
|
{
|
2012-02-07 15:49:52 -05:00
|
|
|
AppendByte (a_Data, m_PacketID);
|
|
|
|
AppendInteger (a_Data, m_UniqueID);
|
|
|
|
AppendBool (a_Data, m_Unknown);
|
|
|
|
AppendInteger (a_Data, m_xLBPos * 32);
|
|
|
|
AppendInteger (a_Data, m_yLBPos * 32);
|
|
|
|
AppendInteger (a_Data, m_zLBPos * 32);
|
2011-11-02 16:40:39 -04:00
|
|
|
}
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|