18 lines
424 B
C++
18 lines
424 B
C++
#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), m_Players(a_Socket) {
|
|
ChangeState<LoggingState>(a_PlayerName);
|
|
}
|
|
|
|
void Client::SendPacket(const protocol::PacketBase& a_Packet) {
|
|
m_Socket->Send(a_Packet);
|
|
}
|
|
|
|
} // namespace client
|
|
} // namespace td
|