mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
18 lines
311 B
C++
18 lines
311 B
C++
#include "Packet.hpp"
|
|
|
|
void LoginPacket::handle(const RakNet::RakNetGUID& guid, NetEventCallback* pCallback)
|
|
{
|
|
pCallback->handle(guid, this);
|
|
}
|
|
|
|
void LoginPacket::write(RakNet::BitStream* bs)
|
|
{
|
|
bs->Write(PACKET_LOGIN);
|
|
bs->Write(m_str);
|
|
}
|
|
|
|
void LoginPacket::read(RakNet::BitStream* bs)
|
|
{
|
|
bs->Read(m_str);
|
|
}
|