implement server and client player join/leave notifications

This commit is contained in:
2024-07-22 12:58:40 +02:00
parent cbb2f5005e
commit 392eaeab83
23 changed files with 422 additions and 25 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
#include <blitz/protocol/PacketHandler.h>
namespace blitz {
namespace server {
class PlayerLoginHandler : public protocol::PacketHandler {
public:
PlayerLoginHandler(network::EnetConnection& a_Connection, EnttWorld& a_World);
~PlayerLoginHandler();
NazaraSlot(network::EnetConnection, OnPlayerLogin, m_Slot);
private:
void Handle(std::uint16_t, const protocol::data::PlayerLogin&);
};
} // namespace server
} // namespace blitz