implement server and client player join/leave notifications
This commit is contained in:
18
include/client/handlers/PlayerListHandler.h
Normal file
18
include/client/handlers/PlayerListHandler.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <blitz/protocol/PacketHandler.h>
|
||||
|
||||
namespace blitz {
|
||||
namespace client {
|
||||
|
||||
class PlayerListHandler : public protocol::PacketHandler {
|
||||
public:
|
||||
PlayerListHandler(network::EnetConnection& a_Connection, EnttWorld& a_World);
|
||||
~PlayerListHandler();
|
||||
|
||||
NazaraSlot(network::EnetConnection, OnPlayerList, m_Slot);
|
||||
|
||||
private:
|
||||
void Handle(const protocol::data::PlayerList&);
|
||||
};
|
||||
|
||||
} // namespace client
|
||||
} // namespace blitz
|
||||
Reference in New Issue
Block a user