Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
pingpong.h
Go to the documentation of this file.
1
12#ifndef MINESERVER_PINGPONG_H
13#define MINESERVER_PINGPONG_H
14
15#include <net/packet.h>
16#include <plugins/luaheaders.h>
17
24class PingPongPacket : public IPacket
25{
26protected:
33 void write(IMCStream *stream) override;
34
35public:
45 ~PingPongPacket() override = default;
46
52 long payload;
53
60 void read(IMCStream *stream) override;
61
68 static void loadLua(lua_State* state, const char* baseNamespaceName);
69};
70
71#endif // MINESERVER_PINGPONG_H
Stream interface.
Definition stream.h:32
Interface for all Packets.
Definition packet.h:25
The Ping Pong Packet.
Definition pingpong.h:25
PingPongPacket()
Construct a new Server List Packet object.
Definition pingpong.h:40
long payload
Payload.
Definition pingpong.h:52
static void loadLua(lua_State *state, const char *baseNamespaceName)
Loads this Packet as lua class.
Definition pingpong.cpp:24
~PingPongPacket() override=default
Destroy the Server List Packet object.
void read(IMCStream *stream) override
Read Packet Data.
Definition pingpong.cpp:19
void write(IMCStream *stream) override
Write Packet Data.
Definition pingpong.cpp:14
Utility header file for lua things.
The file containing the packet data.