Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
LoginSuccess Class Reference

Login Success Packet. More...

#include <loginstartend.h>

Inheritance diagram for LoginSuccess:
IPacket

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.
 

Detailed Description

Login Success Packet.

Should be sent by the server when everything went according to plan when trying to log in the client.

Constructor & Destructor Documentation

◆ LoginSuccess()

LoginSuccess::LoginSuccess ( std::string username,
const MinecraftUUID & uuid )
inline

Construct a new Login Success object.

Parameters
usernamethe username given to the player
uuidthe uuid of the player

Member Function Documentation

◆ loadLua()

void LoginSuccess::loadLua ( lua_State * state,
const char * baseNamespaceName )
static

Loads Packet to lua state.

Parameters
statethe lua state to load to
baseNamespaceNamethe base namespace to register to

◆ read()

void LoginSuccess::read ( IMCStream * stream)
overridevirtual

Reads Packet Data.

Parameters
streamthe stream to read from
Deprecated
should not be used, useless

Implements IPacket.

Member Data Documentation

◆ username

std::string LoginSuccess::username

Username of the player.

The username that is given by the server to the client.

◆ uuid

MinecraftUUID LoginSuccess::uuid

MinecraftUUID of the player.

The MinecraftUUID given by the server to the client.


The documentation for this class was generated from the following files: