|
Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
|
Login Success Packet. More...
#include <loginstartend.h>
Public Member Functions | |
| LoginSuccess (std::string username, const MinecraftUUID &uuid) | |
| Construct a new Login Success object. | |
| void | read (IMCStream *stream) override |
| Reads Packet Data. | |
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 to lua state. | |
Public Attributes | |
| std::string | username |
| Username of the player. | |
| MinecraftUUID | uuid |
| MinecraftUUID of the player. | |
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. | |
Login Success Packet.
Should be sent by the server when everything went according to plan when trying to log in the client.
|
inline |
Construct a new Login Success object.
| username | the username given to the player |
| uuid | the uuid of the player |
Loads Packet to lua state.
| state | the lua state to load to |
| baseNamespaceName | the base namespace to register to |
Reads Packet Data.
| stream | the stream to read from |
Implements IPacket.
| std::string LoginSuccess::username |
Username of the player.
The username that is given by the server to the client.
| MinecraftUUID LoginSuccess::uuid |
MinecraftUUID of the player.
The MinecraftUUID given by the server to the client.