19 lines
527 B
C++
19 lines
527 B
C++
#include <client/handlers/KeepAliveHandler.h>
|
|
|
|
namespace blitz {
|
|
namespace client {
|
|
|
|
KeepAliveHandler::KeepAliveHandler(network::EnetConnection& a_Connection, EnttWorld& a_World) :
|
|
protocol::PacketHandler(a_Connection, a_World) {
|
|
m_Slot.Connect(m_Connection.OnKeepAlive, this, &KeepAliveHandler::Handle);
|
|
}
|
|
|
|
void KeepAliveHandler::Handle(const blitz::protocol::data::KeepAlive& a_KeepAlive) {
|
|
m_Connection.SendKeepAlive(a_KeepAlive);
|
|
}
|
|
|
|
KeepAliveHandler::~KeepAliveHandler() {}
|
|
|
|
} // namespace client
|
|
} // namespace blitz
|