diff options
Diffstat (limited to '')
52 files changed, 358 insertions, 9 deletions
diff --git a/source/packets/cPacket.cpp b/source/packets/cPacket.cpp index a22e27d41..06ae24706 100644 --- a/source/packets/cPacket.cpp +++ b/source/packets/cPacket.cpp @@ -1,15 +1,21 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket.h"
-#include "../cMCLogger.h"
#include "../Endianness.h"
#ifdef _WIN32
-#define MSG_NOSIGNAL (0)
+ #define MSG_NOSIGNAL (0)
#endif
#ifdef __MAC_NA
-#define MSG_NOSIGNAL (0)
+ #define MSG_NOSIGNAL (0)
#endif
+
+
+
+
//*****************************************************************************
// Blocking receive all function
//*****************************************************************************
diff --git a/source/packets/cPacket.h b/source/packets/cPacket.h index 5f226cfcf..3d6f812a9 100644 --- a/source/packets/cPacket.h +++ b/source/packets/cPacket.h @@ -4,11 +4,10 @@ #include "../PacketID.h"
#ifdef _WIN32
-#include <xstring>
+ // #include <xstring>
#else
-#include <cstring> // Silly Linux doesn't have xstring...
-#include <string>
-#include <cstdio>
+ #include <cstring> // Silly Linux doesn't have xstring...
+ #include <cstdio>
#endif
class cSocket;
diff --git a/source/packets/cPacket_13.cpp b/source/packets/cPacket_13.cpp index 5e649fbd9..bf1b47437 100644 --- a/source/packets/cPacket_13.cpp +++ b/source/packets/cPacket_13.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_13.h"
+
+
+
+
bool cPacket_13::Parse(cSocket & a_Socket)
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_AddToInventory.cpp b/source/packets/cPacket_AddToInventory.cpp index e8701cb7b..da350e9b3 100644 --- a/source/packets/cPacket_AddToInventory.cpp +++ b/source/packets/cPacket_AddToInventory.cpp @@ -1,8 +1,15 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_AddToInventory.h"
#include "cPacket_WholeInventory.h"
#include "../cItem.h"
#include "cPacket_ItemData.h"
+
+
+
+
bool cPacket_AddToInventory::Send( cSocket & a_Socket )
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_ArmAnim.cpp b/source/packets/cPacket_ArmAnim.cpp index f0a662f27..03880101e 100644 --- a/source/packets/cPacket_ArmAnim.cpp +++ b/source/packets/cPacket_ArmAnim.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_ArmAnim.h"
+
+
+
+
bool cPacket_ArmAnim::Parse( cSocket & a_Socket )
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_BlockAction.cpp b/source/packets/cPacket_BlockAction.cpp index adbd9b93f..46faf0cc6 100644 --- a/source/packets/cPacket_BlockAction.cpp +++ b/source/packets/cPacket_BlockAction.cpp @@ -1,5 +1,12 @@ + +#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules + #include "cPacket_BlockAction.h" + + + + cPacket_BlockAction::cPacket_BlockAction( const cPacket_BlockAction & a_Copy ) { m_PacketID = E_BLOCK_ACTION; diff --git a/source/packets/cPacket_BlockChange.cpp b/source/packets/cPacket_BlockChange.cpp index 44b389a14..8b758f618 100644 --- a/source/packets/cPacket_BlockChange.cpp +++ b/source/packets/cPacket_BlockChange.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_BlockChange.h"
+
+
+
+
bool cPacket_BlockChange::Send(cSocket & a_Socket)
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_BlockDig.cpp b/source/packets/cPacket_BlockDig.cpp index c6092f9cd..498023508 100644 --- a/source/packets/cPacket_BlockDig.cpp +++ b/source/packets/cPacket_BlockDig.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_BlockDig.h"
+
+
+
+
bool cPacket_BlockDig::Send(cSocket & a_Socket)
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_BlockPlace.cpp b/source/packets/cPacket_BlockPlace.cpp index 9943ae38e..6fd8cef28 100644 --- a/source/packets/cPacket_BlockPlace.cpp +++ b/source/packets/cPacket_BlockPlace.cpp @@ -1,6 +1,13 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_BlockPlace.h"
#include "cPacket_ItemData.h"
+
+
+
+
bool cPacket_BlockPlace::Parse(cSocket & a_Socket)
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_Chat.cpp b/source/packets/cPacket_Chat.cpp index d948c5deb..251c9d7ec 100644 --- a/source/packets/cPacket_Chat.cpp +++ b/source/packets/cPacket_Chat.cpp @@ -1,6 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_Chat.h"
+
+
+
bool cPacket_Chat::Parse( cSocket & a_Socket )
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_CollectItem.cpp b/source/packets/cPacket_CollectItem.cpp index 0ad92ddad..cc67cef35 100644 --- a/source/packets/cPacket_CollectItem.cpp +++ b/source/packets/cPacket_CollectItem.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_CollectItem.h"
+
+
+
+
bool cPacket_CollectItem::Send( cSocket & a_Socket )
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_CreativeInventoryAction.cpp b/source/packets/cPacket_CreativeInventoryAction.cpp index 834a3c2fe..685d488e6 100644 --- a/source/packets/cPacket_CreativeInventoryAction.cpp +++ b/source/packets/cPacket_CreativeInventoryAction.cpp @@ -1,6 +1,13 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_CreativeInventoryAction.h"
#include "cPacket_ItemData.h"
+
+
+
+
cPacket_CreativeInventoryAction::cPacket_CreativeInventoryAction( const cPacket_CreativeInventoryAction & a_Copy )
{
m_PacketID = E_CREATIVE_INVENTORY_ACTION;
diff --git a/source/packets/cPacket_DestroyEntity.cpp b/source/packets/cPacket_DestroyEntity.cpp index 6dfd059c8..6e1f8a97a 100644 --- a/source/packets/cPacket_DestroyEntity.cpp +++ b/source/packets/cPacket_DestroyEntity.cpp @@ -1,6 +1,13 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_DestroyEntity.h"
#include "../cEntity.h"
+
+
+
+
cPacket_DestroyEntity::cPacket_DestroyEntity(cEntity* a_Entity)
{
m_PacketID = E_DESTROY_ENT;
diff --git a/source/packets/cPacket_Disconnect.cpp b/source/packets/cPacket_Disconnect.cpp index c2a0e3be6..2e085c516 100644 --- a/source/packets/cPacket_Disconnect.cpp +++ b/source/packets/cPacket_Disconnect.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_Disconnect.h"
+
+
+
+
bool cPacket_Disconnect::Parse( cSocket & a_Socket )
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_EntityEquipment.cpp b/source/packets/cPacket_EntityEquipment.cpp index afd2e7678..b3030ac74 100644 --- a/source/packets/cPacket_EntityEquipment.cpp +++ b/source/packets/cPacket_EntityEquipment.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_EntityEquipment.h"
+
+
+
+
cPacket_EntityEquipment::cPacket_EntityEquipment( const cPacket_EntityEquipment & a_Copy )
{
m_PacketID = E_ENTITY_EQUIPMENT;
diff --git a/source/packets/cPacket_EntityLook.cpp b/source/packets/cPacket_EntityLook.cpp index f4caf7191..7cca43210 100644 --- a/source/packets/cPacket_EntityLook.cpp +++ b/source/packets/cPacket_EntityLook.cpp @@ -1,7 +1,14 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_EntityLook.h"
#include "../cEntity.h"
+
+
+
+
cPacket_EntityLook::cPacket_EntityLook(cEntity* a_Entity)
{
m_PacketID = E_ENT_LOOK;
diff --git a/source/packets/cPacket_EntityStatus.cpp b/source/packets/cPacket_EntityStatus.cpp index 41d94b6c2..aafea5c12 100644 --- a/source/packets/cPacket_EntityStatus.cpp +++ b/source/packets/cPacket_EntityStatus.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_EntityStatus.h"
+
+
+
+
bool cPacket_EntityStatus::Send(cSocket & a_Socket)
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_Explosion.cpp b/source/packets/cPacket_Explosion.cpp index e1de9d6ff..d2baba876 100644 --- a/source/packets/cPacket_Explosion.cpp +++ b/source/packets/cPacket_Explosion.cpp @@ -1,5 +1,12 @@ + +#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules + #include "cPacket_Explosion.h" + + + + cPacket_Explosion::~cPacket_Explosion() { if( m_Records ) diff --git a/source/packets/cPacket_Flying.cpp b/source/packets/cPacket_Flying.cpp index b8cab1de1..44f30bbe3 100644 --- a/source/packets/cPacket_Flying.cpp +++ b/source/packets/cPacket_Flying.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_Flying.h"
+
+
+
+
bool cPacket_Flying::Parse(cSocket & a_Socket)
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_Handshake.cpp b/source/packets/cPacket_Handshake.cpp index 2513ab33d..482f25d26 100644 --- a/source/packets/cPacket_Handshake.cpp +++ b/source/packets/cPacket_Handshake.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_Handshake.h"
+
+
+
+
bool cPacket_Handshake::Parse(cSocket & a_Socket)
{
//printf("Parse: NEW Handshake\n");
diff --git a/source/packets/cPacket_InventoryProgressBar.cpp b/source/packets/cPacket_InventoryProgressBar.cpp index c8d7b0383..4f00ef80a 100644 --- a/source/packets/cPacket_InventoryProgressBar.cpp +++ b/source/packets/cPacket_InventoryProgressBar.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_InventoryProgressBar.h"
+
+
+
+
bool cPacket_InventoryProgressBar::Send(cSocket & a_Socket)
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_InventorySlot.cpp b/source/packets/cPacket_InventorySlot.cpp index 3c3a40210..f28c39aa7 100644 --- a/source/packets/cPacket_InventorySlot.cpp +++ b/source/packets/cPacket_InventorySlot.cpp @@ -1,7 +1,14 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_InventorySlot.h"
#include "cPacket_WholeInventory.h"
#include "cPacket_ItemData.h"
+
+
+
+
bool cPacket_InventorySlot::Send(cSocket & a_Socket)
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_ItemData.cpp b/source/packets/cPacket_ItemData.cpp index 1c1d13c60..851323ee4 100644 --- a/source/packets/cPacket_ItemData.cpp +++ b/source/packets/cPacket_ItemData.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_ItemData.h"
+
+
+
+
bool cPacket_ItemData::Parse(cSocket & a_Socket)
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_ItemSwitch.cpp b/source/packets/cPacket_ItemSwitch.cpp index 39c61833e..517e1de4b 100644 --- a/source/packets/cPacket_ItemSwitch.cpp +++ b/source/packets/cPacket_ItemSwitch.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_ItemSwitch.h"
+
+
+
+
bool cPacket_ItemSwitch::Parse( cSocket & a_Socket )
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_KeepAlive.cpp b/source/packets/cPacket_KeepAlive.cpp index 8dcd9092f..11c4efa11 100644 --- a/source/packets/cPacket_KeepAlive.cpp +++ b/source/packets/cPacket_KeepAlive.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_KeepAlive.h"
+
+
+
+
bool cPacket_KeepAlive::Send(cSocket & a_Socket)
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_Login.cpp b/source/packets/cPacket_Login.cpp index 2716aaf97..60feb215a 100644 --- a/source/packets/cPacket_Login.cpp +++ b/source/packets/cPacket_Login.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_Login.h"
+
+
+
+
const std::string cPacket_Login::LEVEL_TYPE_DEFAULT = "DEFAULT";
const std::string cPacket_Login::LEVEL_TYPE_SUPERFLAT = "SUPERFLAT";
diff --git a/source/packets/cPacket_MapChunk.cpp b/source/packets/cPacket_MapChunk.cpp index 08681494c..6bc764e09 100644 --- a/source/packets/cPacket_MapChunk.cpp +++ b/source/packets/cPacket_MapChunk.cpp @@ -1,8 +1,15 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_MapChunk.h"
#include "../cChunk.h"
#include "zlib.h"
+
+
+
+
cPacket_MapChunk::~cPacket_MapChunk()
{
if( m_CompressedData )
diff --git a/source/packets/cPacket_Metadata.cpp b/source/packets/cPacket_Metadata.cpp index d06bdacbe..e130f86fc 100644 --- a/source/packets/cPacket_Metadata.cpp +++ b/source/packets/cPacket_Metadata.cpp @@ -1,5 +1,12 @@ + +#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 ) diff --git a/source/packets/cPacket_MultiBlock.cpp b/source/packets/cPacket_MultiBlock.cpp index ef396874f..392bc7fef 100644 --- a/source/packets/cPacket_MultiBlock.cpp +++ b/source/packets/cPacket_MultiBlock.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_MultiBlock.h"
+
+
+
+
cPacket_MultiBlock::cPacket_MultiBlock( const cPacket_MultiBlock & a_Copy )
{
m_PacketID = E_MULTI_BLOCK;
diff --git a/source/packets/cPacket_NamedEntitySpawn.cpp b/source/packets/cPacket_NamedEntitySpawn.cpp index 222711119..8718bb206 100644 --- a/source/packets/cPacket_NamedEntitySpawn.cpp +++ b/source/packets/cPacket_NamedEntitySpawn.cpp @@ -1,6 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_NamedEntitySpawn.h"
+
+
+
bool cPacket_NamedEntitySpawn::Send( cSocket & a_Socket )
{
unsigned int TotalSize = c_Size + m_PlayerName.size() * sizeof( short );
diff --git a/source/packets/cPacket_NewInvalidState.cpp b/source/packets/cPacket_NewInvalidState.cpp index 6755ec207..ce9b9d12a 100644 --- a/source/packets/cPacket_NewInvalidState.cpp +++ b/source/packets/cPacket_NewInvalidState.cpp @@ -1,5 +1,12 @@ + +#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules + #include "cPacket_NewInvalidState.h" + + + + cPacket_NewInvalidState::cPacket_NewInvalidState( const cPacket_NewInvalidState & a_Copy ) { m_PacketID = E_NEW_INVALID_STATE; diff --git a/source/packets/cPacket_PickupSpawn.cpp b/source/packets/cPacket_PickupSpawn.cpp index 73f4e3846..6ddd99911 100644 --- a/source/packets/cPacket_PickupSpawn.cpp +++ b/source/packets/cPacket_PickupSpawn.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_PickupSpawn.h"
+
+
+
+
bool cPacket_PickupSpawn::Parse( cSocket & a_Socket )
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_PlayerListItem.cpp b/source/packets/cPacket_PlayerListItem.cpp index 85970b7ca..70971dc34 100644 --- a/source/packets/cPacket_PlayerListItem.cpp +++ b/source/packets/cPacket_PlayerListItem.cpp @@ -1,6 +1,13 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_PlayerListItem.h"
#include "../cChatColor.h"
+
+
+
+
cPacket_PlayerListItem::cPacket_PlayerListItem(std::string a_PlayerName, bool a_Online, short a_Ping)
{
m_PacketID = E_PLAYER_LIST_ITEM;
diff --git a/source/packets/cPacket_PlayerLook.cpp b/source/packets/cPacket_PlayerLook.cpp index 2660ccf92..30c25c074 100644 --- a/source/packets/cPacket_PlayerLook.cpp +++ b/source/packets/cPacket_PlayerLook.cpp @@ -1,6 +1,13 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_PlayerLook.h"
#include "../cPlayer.h"
+
+
+
+
cPacket_PlayerLook::cPacket_PlayerLook( cPlayer* a_Player )
{
m_PacketID = E_PLAYERLOOK;
diff --git a/source/packets/cPacket_PlayerMoveLook.cpp b/source/packets/cPacket_PlayerMoveLook.cpp index 3970e27ae..55bd8f803 100644 --- a/source/packets/cPacket_PlayerMoveLook.cpp +++ b/source/packets/cPacket_PlayerMoveLook.cpp @@ -1,6 +1,13 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_PlayerMoveLook.h"
#include "../cPlayer.h"
+
+
+
+
cPacket_PlayerMoveLook::cPacket_PlayerMoveLook( cPlayer* a_Player )
{
m_PacketID = E_PLAYERMOVELOOK;
diff --git a/source/packets/cPacket_PlayerPosition.cpp b/source/packets/cPacket_PlayerPosition.cpp index e1d6877bb..c9e6c966f 100644 --- a/source/packets/cPacket_PlayerPosition.cpp +++ b/source/packets/cPacket_PlayerPosition.cpp @@ -1,6 +1,13 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_PlayerPosition.h"
#include "../cPlayer.h"
+
+
+
+
cPacket_PlayerPosition::cPacket_PlayerPosition( cPlayer* a_Player )
{
m_PacketID = E_PLAYERPOS;
diff --git a/source/packets/cPacket_PreChunk.cpp b/source/packets/cPacket_PreChunk.cpp index 686984a1e..8117f0ad7 100644 --- a/source/packets/cPacket_PreChunk.cpp +++ b/source/packets/cPacket_PreChunk.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_PreChunk.h"
+
+
+
+
bool cPacket_PreChunk::Send(cSocket & a_Socket)
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_RelativeEntityMove.cpp b/source/packets/cPacket_RelativeEntityMove.cpp index 4a1dc56b2..8072097b6 100644 --- a/source/packets/cPacket_RelativeEntityMove.cpp +++ b/source/packets/cPacket_RelativeEntityMove.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_RelativeEntityMove.h"
+
+
+
+
bool cPacket_RelativeEntityMove::Send( cSocket & a_Socket )
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_RelativeEntityMoveLook.cpp b/source/packets/cPacket_RelativeEntityMoveLook.cpp index e879870cd..8de1a0be7 100644 --- a/source/packets/cPacket_RelativeEntityMoveLook.cpp +++ b/source/packets/cPacket_RelativeEntityMoveLook.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_RelativeEntityMoveLook.h"
+
+
+
+
bool cPacket_RelativeEntityMoveLook::Send( cSocket & a_Socket )
{
unsigned int TotalSize = c_Size;
diff --git a/source/packets/cPacket_Respawn.cpp b/source/packets/cPacket_Respawn.cpp index 1bc18d500..b09659eb3 100644 --- a/source/packets/cPacket_Respawn.cpp +++ b/source/packets/cPacket_Respawn.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_Respawn.h"
+
+
+
+
bool cPacket_Respawn::Send(cSocket & a_Socket)
{
unsigned int TotalSize = c_Size + m_LevelType.size() * sizeof(short);
diff --git a/source/packets/cPacket_SoundEffect.cpp b/source/packets/cPacket_SoundEffect.cpp index 962c0b709..453750d55 100644 --- a/source/packets/cPacket_SoundEffect.cpp +++ b/source/packets/cPacket_SoundEffect.cpp @@ -1,5 +1,12 @@ + +#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules + #include "cPacket_SoundEffect.h" + + + + cPacket_SoundEffect::cPacket_SoundEffect( const cPacket_SoundEffect & a_Copy ) { m_PacketID = E_SOUND_EFFECT; diff --git a/source/packets/cPacket_SpawnMob.cpp b/source/packets/cPacket_SpawnMob.cpp index 0055e74db..417a7c004 100644 --- a/source/packets/cPacket_SpawnMob.cpp +++ b/source/packets/cPacket_SpawnMob.cpp @@ -1,7 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_SpawnMob.h"
#include "../Vector3i.h"
-#include "../cMCLogger.h"
+
+
+
cPacket_SpawnMob::~cPacket_SpawnMob()
{
diff --git a/source/packets/cPacket_TeleportEntity.cpp b/source/packets/cPacket_TeleportEntity.cpp index f5be680aa..0b735a1cb 100644 --- a/source/packets/cPacket_TeleportEntity.cpp +++ b/source/packets/cPacket_TeleportEntity.cpp @@ -1,7 +1,14 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_TeleportEntity.h"
#include "../cEntity.h"
+
+
+
+
cPacket_TeleportEntity::cPacket_TeleportEntity(cEntity* a_Client)
{
m_PacketID = E_ENT_TELEPORT;
diff --git a/source/packets/cPacket_Thunderbolt.cpp b/source/packets/cPacket_Thunderbolt.cpp index 48e8f1573..51c951a1d 100644 --- a/source/packets/cPacket_Thunderbolt.cpp +++ b/source/packets/cPacket_Thunderbolt.cpp @@ -1,5 +1,12 @@ + +#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules + #include "cPacket_Thunderbolt.h" + + + + cPacket_Thunderbolt::cPacket_Thunderbolt( const cPacket_Thunderbolt & a_Copy ) { m_PacketID = E_THUNDERBOLT; diff --git a/source/packets/cPacket_TimeUpdate.cpp b/source/packets/cPacket_TimeUpdate.cpp index 09a9ca66a..c1e760d62 100644 --- a/source/packets/cPacket_TimeUpdate.cpp +++ b/source/packets/cPacket_TimeUpdate.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_TimeUpdate.h"
+
+
+
+
bool cPacket_TimeUpdate::Parse(cSocket & a_Socket)
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_UpdateHealth.cpp b/source/packets/cPacket_UpdateHealth.cpp index fe4929cc9..c6cec56ae 100644 --- a/source/packets/cPacket_UpdateHealth.cpp +++ b/source/packets/cPacket_UpdateHealth.cpp @@ -1,6 +1,11 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_UpdateHealth.h"
-#include "../cMCLogger.h"
+
+
+
bool cPacket_UpdateHealth::Send(cSocket & a_Socket)
{
diff --git a/source/packets/cPacket_UpdateSign.cpp b/source/packets/cPacket_UpdateSign.cpp index f7d3f8618..726ee5865 100644 --- a/source/packets/cPacket_UpdateSign.cpp +++ b/source/packets/cPacket_UpdateSign.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_UpdateSign.h"
+
+
+
+
bool cPacket_UpdateSign::Parse( cSocket & a_Socket )
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_UseEntity.cpp b/source/packets/cPacket_UseEntity.cpp index bbe22d3ec..346341fb0 100644 --- a/source/packets/cPacket_UseEntity.cpp +++ b/source/packets/cPacket_UseEntity.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_UseEntity.h"
+
+
+
+
bool cPacket_UseEntity::Parse(cSocket & a_Socket)
{
m_Socket = a_Socket;
diff --git a/source/packets/cPacket_WholeInventory.cpp b/source/packets/cPacket_WholeInventory.cpp index f9b7be2c4..130d4dc8c 100644 --- a/source/packets/cPacket_WholeInventory.cpp +++ b/source/packets/cPacket_WholeInventory.cpp @@ -1,9 +1,16 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_WholeInventory.h"
#include "../cItem.h"
#include "../cInventory.h"
#include "../cWindow.h"
#include "cPacket_ItemData.h"
+
+
+
+
cPacket_WholeInventory::cPacket_WholeInventory( const cPacket_WholeInventory & a_Clone )
{
m_PacketID = E_INVENTORY_WHOLE;
diff --git a/source/packets/cPacket_WindowClick.cpp b/source/packets/cPacket_WindowClick.cpp index a84fbd34a..2df2108e1 100644 --- a/source/packets/cPacket_WindowClick.cpp +++ b/source/packets/cPacket_WindowClick.cpp @@ -1,7 +1,14 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_WindowClick.h"
#include "cPacket_WholeInventory.h"
#include "cPacket_ItemData.h"
+
+
+
+
bool cPacket_WindowClick::Parse(cSocket & a_Socket)
{
// LOG("-----------INV66-----------");
diff --git a/source/packets/cPacket_WindowClose.cpp b/source/packets/cPacket_WindowClose.cpp index 0881fb703..6cd8f861a 100644 --- a/source/packets/cPacket_WindowClose.cpp +++ b/source/packets/cPacket_WindowClose.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_WindowClose.h"
+
+
+
+
bool cPacket_WindowClose::Parse(cSocket & a_Socket)
{
//LOG("CLOSE INVENTORY PACKET");
diff --git a/source/packets/cPacket_WindowOpen.cpp b/source/packets/cPacket_WindowOpen.cpp index 5d1299acd..46e84a943 100644 --- a/source/packets/cPacket_WindowOpen.cpp +++ b/source/packets/cPacket_WindowOpen.cpp @@ -1,5 +1,12 @@ +
+#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+
#include "cPacket_WindowOpen.h"
+
+
+
+
bool cPacket_WindowOpen::Send(cSocket & a_Socket)
{
unsigned int TotalSize = c_Size + m_WindowTitle.size() * sizeof( short );
|