12#ifndef MINESERVER_SERVERLIST_H
13#define MINESERVER_SERVERLIST_H
86 static void loadLua(lua_State* state,
const char* baseNamespaceName);
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
The file containing the packet data.