diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-02 21:40:39 +0100 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-02 21:40:39 +0100 |
commit | a5af50c293d87a21632c2811577c7b1838f6974f (patch) | |
tree | fe95ecc0694f4d4318ff011c50a18e89ad570be7 /source/packets/cPacket_NewInvalidState.h | |
parent | Fixed some "Entity was not found in any chunk!" warnings (diff) | |
download | cuberite-a5af50c293d87a21632c2811577c7b1838f6974f.tar cuberite-a5af50c293d87a21632c2811577c7b1838f6974f.tar.gz cuberite-a5af50c293d87a21632c2811577c7b1838f6974f.tar.bz2 cuberite-a5af50c293d87a21632c2811577c7b1838f6974f.tar.lz cuberite-a5af50c293d87a21632c2811577c7b1838f6974f.tar.xz cuberite-a5af50c293d87a21632c2811577c7b1838f6974f.tar.zst cuberite-a5af50c293d87a21632c2811577c7b1838f6974f.zip |
Diffstat (limited to 'source/packets/cPacket_NewInvalidState.h')
-rw-r--r-- | source/packets/cPacket_NewInvalidState.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source/packets/cPacket_NewInvalidState.h b/source/packets/cPacket_NewInvalidState.h new file mode 100644 index 000000000..a83cb8080 --- /dev/null +++ b/source/packets/cPacket_NewInvalidState.h @@ -0,0 +1,24 @@ +#pragma once + +#include "cPacket.h" +#include "PacketID.h" + + +class cPacket_NewInvalidState : public cPacket +{ +public: + cPacket_NewInvalidState() + : m_Reason( 0 ) + , m_GameMode( 0 ) + { m_PacketID = E_NEW_INVALID_STATE;} + cPacket_NewInvalidState( const cPacket_NewInvalidState & a_Copy ); + virtual cPacket* Clone() const { return new cPacket_NewInvalidState(*this); } + + bool Parse(cSocket & a_Socket); + bool Send(cSocket & a_Socket); + + char m_Reason; // 0 = Invalid Bed, 1 = Begin Raining, 2 End Raining, 3 = Change Gamemode + char m_GameMode; // Used only when reason = 3. 0 is survival, 1 is creative. + + static const unsigned int c_Size = 1 + 1 + 1; +}; |