begin player auth

This commit is contained in:
2025-08-15 11:25:35 +02:00
parent 833173b5e8
commit a50898a88b
16 changed files with 139 additions and 40 deletions

View File

@@ -1,8 +1,14 @@
#include <client/Client.h>
#include <client/state/LoggingState.h>
namespace td {
namespace client {
Client::Client(const std::shared_ptr<IClientSocket>& a_Socket, const std::string& a_PlayerName) : m_Socket(a_Socket) {
ChangeState<LoggingState>(a_PlayerName);
}
void Client::SendPacket(const protocol::PacketBase& a_Packet) {
m_Socket->Send(a_Packet);
}