summaryrefslogtreecommitdiffstats
path: root/source/packets/cPacket_Thunderbolt.h
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-02 21:40:39 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-02 21:40:39 +0100
commita5af50c293d87a21632c2811577c7b1838f6974f (patch)
treefe95ecc0694f4d4318ff011c50a18e89ad570be7 /source/packets/cPacket_Thunderbolt.h
parentFixed some "Entity was not found in any chunk!" warnings (diff)
downloadcuberite-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_Thunderbolt.h')
-rw-r--r--source/packets/cPacket_Thunderbolt.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/source/packets/cPacket_Thunderbolt.h b/source/packets/cPacket_Thunderbolt.h
new file mode 100644
index 000000000..51dad5814
--- /dev/null
+++ b/source/packets/cPacket_Thunderbolt.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#include "cPacket.h"
+#include "PacketID.h"
+
+class cPacket_Thunderbolt : public cPacket
+{
+public:
+ cPacket_Thunderbolt()
+ : m_UniqueID( 0 )
+ , m_Unknown( 0 )
+ , m_xLBPos( 0 )
+ , m_yLBPos( 0 )
+ , m_zLBPos( 0 )
+ { m_PacketID = E_THUNDERBOLT;}
+ virtual cPacket* Clone() const { return new cPacket_Thunderbolt(*this); }
+
+ bool Send(cSocket & a_Socket);
+
+ int m_UniqueID; // The entity ID of the thunderbolt
+ bool m_Unknown; // Always true. Might have a meaning in the future...
+ int m_xLBPos; // Thunderbolt X as Absolute Integer
+ int m_yLBPos; // Thunderbolt Y as Absolute Integer
+ int m_zLBPos; // Thunderbolt Z as Absolute Integer
+
+ static const unsigned int c_Size = 1 + 4 + 1 + 4 + 4 + 4;
+};