summaryrefslogtreecommitdiffstats
path: root/source/packets/cPacket_Metadata.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-28 23:59:49 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-28 23:59:49 +0200
commit1651fcd9807f1033a5fc76e60cb17922e687a7b1 (patch)
treec9b82453023b52b05a61bcfd4c882ab5f6b60e23 /source/packets/cPacket_Metadata.cpp
parentFixed a few warnings (diff)
downloadcuberite-1651fcd9807f1033a5fc76e60cb17922e687a7b1.tar
cuberite-1651fcd9807f1033a5fc76e60cb17922e687a7b1.tar.gz
cuberite-1651fcd9807f1033a5fc76e60cb17922e687a7b1.tar.bz2
cuberite-1651fcd9807f1033a5fc76e60cb17922e687a7b1.tar.lz
cuberite-1651fcd9807f1033a5fc76e60cb17922e687a7b1.tar.xz
cuberite-1651fcd9807f1033a5fc76e60cb17922e687a7b1.tar.zst
cuberite-1651fcd9807f1033a5fc76e60cb17922e687a7b1.zip
Diffstat (limited to '')
-rw-r--r--source/packets/cPacket_Metadata.cpp110
1 files changed, 0 insertions, 110 deletions
diff --git a/source/packets/cPacket_Metadata.cpp b/source/packets/cPacket_Metadata.cpp
deleted file mode 100644
index 595801b54..000000000
--- a/source/packets/cPacket_Metadata.cpp
+++ /dev/null
@@ -1,110 +0,0 @@
-
-#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
-
-#include "cPacket_Metadata.h"
-
-
-
-
-
-cPacket_Metadata::cPacket_Metadata(int s, int id)
- : m_EMetaData( (cPawn::MetaData)s )
- , m_UniqueID( id )
- , m_Type( 0 )
- , m_MetaData( 0 )
-{
- m_PacketID = E_METADATA;
- FormPacket();
-}
-
-
-
-
-
-cPacket_Metadata::cPacket_Metadata()
- : m_UniqueID( 0 )
- , m_Type( 0 )
- , m_MetaData( 0 )
-{
- m_PacketID = E_METADATA;
- m_EMetaData = cPawn::NORMAL;
- FormPacket();
-}
-
-
-
-
-
-cPacket_Metadata::cPacket_Metadata(const cPacket_Metadata & a_Other)
- : m_EMetaData( a_Other.m_EMetaData )
- , m_UniqueID( a_Other.m_UniqueID )
- , m_Type( a_Other.m_Type )
- , m_MetaData( NULL )
-{
- m_PacketID = E_METADATA;
- FormPacket();
-}
-
-
-
-
-
-cPacket_Metadata::~cPacket_Metadata()
-{
- delete [] m_MetaData;
-}
-
-
-
-
-
-void cPacket_Metadata::FormPacket()
-{
- delete [] m_MetaData;
- m_MetaData = new char[3];
- m_MetaDataSize = 3;
- // m_UniqueID = GetUniqueID();
- m_MetaData[0] = 0x00;
-
- m_MetaData[2] = 0x7f;
- switch(m_EMetaData)
- {
- case cPawn::NORMAL:
- m_MetaData[1] = 0x00;
- break;
- case cPawn::BURNING:
- m_MetaData[1] = 0x01;
- break;
- case cPawn::CROUCHED:
- m_MetaData[1] = 0x02;
- break;
- case cPawn::RIDING:
- m_MetaData[1] = 0x04;
- break;
- case cPawn::SPRINTING:
- m_MetaData[1] = 0x08;
- break;
- case cPawn::EATING:
- case cPawn::BLOCKING:
- m_MetaData[1] = 0x10;
- break;
- default:
- m_MetaData[1] = 0x00;
- break;
- }
-}
-
-
-
-
-
-void cPacket_Metadata::Serialize(AString & a_Data) const
-{
- AppendByte (a_Data, m_PacketID);
- AppendInteger(a_Data, m_UniqueID);
- AppendData (a_Data, m_MetaData, m_MetaDataSize);
-}
-
-
-
-