Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
Disconnect Packet for Login state. More...
#include <disconnect.h>
Public Member Functions | |
DisconnectLogin (const ChatMessage &reason) | |
Construct a new Disconnect Login object. | |
void | read (IMCStream *stream) override |
Reads the packet from the stream. | |
Public Member Functions inherited from IPacket | |
virtual | ~IPacket ()=default |
Destroy the IPacket object. | |
void | send (IMCStream *stream) |
Sends a Packet in Minecraft format. | |
Static Public Member Functions | |
static void | loadLua (lua_State *state, const char *baseNamespaceName) |
Loads packet as lua class. | |
Public Attributes | |
ChatMessage | reason |
the reason for the disconnection | |
Public Attributes inherited from IPacket | |
int | id |
Packet Id. | |
Additional Inherited Members | |
Protected Member Functions inherited from IPacket | |
IPacket (int id) | |
Construct a new IPacket object. | |
Disconnect Packet for Login state.
Packet that should be sent to disconnect a client when being in ClientState::LOGIN state.
|
inline |
Construct a new Disconnect Login object.
reason | the reason for the disconnection |
Loads packet as lua class.
state | lua state to load to |
baseNamespaceName | the base namespace name to load to |
Reads the packet from the stream.
stream | the stream to read from |
Implements IPacket.