Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
serverlist.h
Go to the documentation of this file.
1
12#ifndef MINESERVER_SERVERLIST_H
13#define MINESERVER_SERVERLIST_H
14
15#include <net/packet.h>
16#include <plugins/luaheaders.h>
17
27{
28protected:
35 void write(IMCStream *stream) override;
36
37public:
58
68 ~ServerListPacket() override = default;
69
78 void read(IMCStream *stream) override;
79
86 static void loadLua(lua_State* state, const char* baseNamespaceName);
87};
88
89#endif // MINESERVER_SERVERLIST_H
Minecraft Chat Message implementation.
Definition chatmessage.h:28
Stream interface.
Definition stream.h:32
Interface for all Packets.
Definition packet.h:25
Server List packet.
Definition serverlist.h:27
static void loadLua(lua_State *state, const char *baseNamespaceName)
Loads this Packet as a lua class.
Definition serverlist.cpp:71
int maxPlayers
Max players.
Definition serverlist.h:44
void write(IMCStream *stream) override
Write Packet Data.
Definition serverlist.cpp:19
ChatMessage motd
Message of The Day (MoTD)
Definition serverlist.h:57
int onlinePlayers
Online players.
Definition serverlist.h:51
void read(IMCStream *stream) override
Read Packet Data.
Definition serverlist.cpp:65
~ServerListPacket() override=default
Destroy the Server List Packet object.
ServerListPacket()
Construct a new Server List Packet object.
Definition serverlist.cpp:56
Utility header file for lua things.
The file containing the packet data.