#include #include namespace td { namespace client { LoggingState::LoggingState(Client& a_Client, const std::string& a_PlayerName) : ClientState(a_Client) { SendPacket(td::protocol::packets::PlayerLoginPacket(a_PlayerName)); } void LoggingState::Update(float a_Delta) { } LoggingState::~LoggingState() {} void LoggingState::Handle(const protocol::packets::PlayerJoinPacket& a_Packet) { // TODO: check if id matches client id } void LoggingState::Handle(const protocol::packets::LoggingSuccessPacket& a_Packet) { ChangeState(); } } // namespace client } // namespace td