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

Login Start Packet. More...

#include <loginstartend.h>

Inheritance diagram for LoginStart:
IPacket

Public Member Functions

 LoginStart ()
 Construct a new Login Start 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.
 

Public Attributes

std::string name
 Name 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 Start Packet.

Packet sent by the client containing initial player name as well as a signal to start encryption.

Member Function Documentation

◆ loadLua()

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

Loads Packet to lua.

Parameters
statelua state to load to
baseNamespaceNamebase namespace to register to

◆ read()

void LoginStart::read ( IMCStream * stream)
overridevirtual

Reads Packet data.

Parameters
streamthe stream to read from

Implements IPacket.

Member Data Documentation

◆ name

std::string LoginStart::name

Name of the player.

Name of the player of the client connecting to the server.


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