Files
2025-08-10 11:49:07 +02:00

25 lines
473 B
C++

#pragma once
#include <client/IClientSocket.h>
#include <td/common/StateMachine.h>
namespace td {
namespace client {
class ClientState;
class Client : public StateMachine<Client, void, float> {
private:
std::shared_ptr<IClientSocket> m_Socket;
public:
Client(const std::shared_ptr<IClientSocket>& a_Socket) : m_Socket(a_Socket) {}
void SendPacket(const protocol::PacketBase& a_Packet);
friend class ClientState;
};
} // namespace client
} // namespace td