Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
luaregpackets.hpp
Go to the documentation of this file.
1
11#ifndef MINESERVER_LUAREGPACKETS_H
12#define MINESERVER_LUAREGPACKETS_H
13
14#include <plugins/luaheaders.h>
20
26void loadPacketsLua(lua_State *state)
27{
28 const char* namespaceName = "packets";
29 LoginStart::loadLua(state, namespaceName);
30 LoginSuccess::loadLua(state, namespaceName);
31
32 loadPlayPacketsLua(state);
33
34 ServerListPacket::loadLua(state, namespaceName);
35 PingPongPacket::loadLua(state, namespaceName);
36
37 HandshakePacket::loadLua(state, namespaceName);
38}
39
40#endif // MINESERVER_LUAREGPACKETS_H
static void loadLua(lua_State *state, const char *baseNamespaceName)
Loads packet as lua class.
Definition handshake.cpp:31
static void loadLua(lua_State *state, const char *baseNamespaceName)
Loads Packet to lua.
Definition loginstartend.cpp:26
static void loadLua(lua_State *state, const char *baseNamespaceName)
Loads Packet to lua state.
Definition loginstartend.cpp:50
static void loadLua(lua_State *state, const char *baseNamespaceName)
Loads this Packet as lua class.
Definition pingpong.cpp:24
static void loadLua(lua_State *state, const char *baseNamespaceName)
Loads this Packet as a lua class.
Definition serverlist.cpp:71
The file containing handshake protocol.
The file containing login start and end packets.
Utility header file for lua things.
void loadPacketsLua(lua_State *state)
Loads packets lua classes.
Definition luaregpackets.hpp:26
Utility for loading types lua classes.
void loadPlayPacketsLua(lua_State *state)
Loads entities classes to lua.
Definition luaregplaypackets.hpp:23
The file containing logic for pinging the server.
The file containing packet logic for server list.