2012-02-07 15:49:52 -05:00
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
2012-03-14 17:21:03 -04:00
|
|
|
#include "../ChunkDef.h"
|
2012-01-27 09:04:28 -05:00
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-13 16:47:03 -05:00
|
|
|
class cPacket_MapChunk :
|
|
|
|
public cPacket
|
2011-10-03 14:41:19 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
cPacket_MapChunk()
|
2012-03-01 13:08:53 -05:00
|
|
|
: m_PosX( 0 )
|
|
|
|
, m_PosZ( 0 )
|
|
|
|
, m_bContiguous( false )
|
|
|
|
, m_BitMap1( 0 )
|
|
|
|
, m_BitMap2( 0 )
|
|
|
|
, m_CompressedSize( 0 )
|
|
|
|
, m_UnusedInt( 0 )
|
2012-03-24 07:40:29 -04:00
|
|
|
, m_CompressedData( NULL )
|
|
|
|
{ m_PacketID = E_MAP_CHUNK; }
|
2012-02-13 16:47:03 -05:00
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
cPacket_MapChunk( const cPacket_MapChunk & a_Copy );
|
2012-03-14 17:21:03 -04:00
|
|
|
cPacket_MapChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ, const BLOCKTYPE * a_BlockData, const BIOMETYPE * a_BiomeData);
|
2011-10-03 14:41:19 -04:00
|
|
|
~cPacket_MapChunk();
|
|
|
|
virtual cPacket* Clone() const { return new cPacket_MapChunk(*this); }
|
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
virtual void Serialize(AString & a_Data) const override;
|
2011-10-03 14:41:19 -04:00
|
|
|
|
2012-03-01 13:08:53 -05:00
|
|
|
int m_PosX;
|
|
|
|
int m_PosZ;
|
2012-03-24 07:40:29 -04:00
|
|
|
bool m_bContiguous;
|
2012-03-01 13:08:53 -05:00
|
|
|
short m_BitMap1;
|
|
|
|
short m_BitMap2;
|
|
|
|
int m_CompressedSize;
|
|
|
|
int m_UnusedInt;
|
2012-02-07 15:49:52 -05:00
|
|
|
char * m_CompressedData;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|