fully implement KeepAlive behavior
This commit is contained in:
23
include/blitz/protocol/PacketHandler.h
Normal file
23
include/blitz/protocol/PacketHandler.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <Nazara/Core/EnttWorld.hpp>
|
||||
#include <blitz/network/EnetConnection.h>
|
||||
|
||||
namespace blitz {
|
||||
|
||||
using EnttWorld = std::atomic<std::shared_ptr<Nz::EnttWorld>>;
|
||||
|
||||
namespace protocol {
|
||||
|
||||
class PacketHandler : private NonCopyable {
|
||||
public:
|
||||
PacketHandler(network::EnetConnection& a_Connection, EnttWorld& a_World);
|
||||
virtual ~PacketHandler();
|
||||
|
||||
protected:
|
||||
network::EnetConnection& m_Connection;
|
||||
EnttWorld& m_World;
|
||||
};
|
||||
|
||||
} // namespace protocol
|
||||
} // namespace blitz
|
||||
Reference in New Issue
Block a user