|
Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
Disconnect Packet for Play state. More...
#include <disconnect.h>
Public Member Functions | |
| DisconnectPlay (const ChatMessage &reason) | |
| Construct a new Disconnect Play 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 Play state.
Packet that should be sent to disconnect a client when being in ClientState::PLAY state.
|
inline |
Construct a new Disconnect Play 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.