implement server and client player join/leave notifications
This commit is contained in:
@@ -9,6 +9,9 @@ class KeepAliveHandler : public protocol::PacketHandler {
|
||||
~KeepAliveHandler();
|
||||
|
||||
NazaraSlot(network::EnetConnection, OnKeepAlive, m_Slot);
|
||||
|
||||
private:
|
||||
void Handle(const protocol::data::KeepAlive&);
|
||||
};
|
||||
|
||||
} // namespace client
|
||||
|
||||
18
include/client/handlers/LoggingSuccessHandler.h
Normal file
18
include/client/handlers/LoggingSuccessHandler.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <blitz/protocol/PacketHandler.h>
|
||||
|
||||
namespace blitz {
|
||||
namespace client {
|
||||
|
||||
class LoggingSuccessHandler : public protocol::PacketHandler {
|
||||
public:
|
||||
LoggingSuccessHandler(network::EnetConnection& a_Connection, EnttWorld& a_World);
|
||||
~LoggingSuccessHandler();
|
||||
|
||||
NazaraSlot(network::EnetConnection, OnLoggingSuccess, m_Slot);
|
||||
|
||||
private:
|
||||
void Handle(const protocol::data::LoggingSuccess&);
|
||||
};
|
||||
|
||||
} // namespace client
|
||||
} // namespace blitz
|
||||
18
include/client/handlers/PlayerJoinHandler.h
Normal file
18
include/client/handlers/PlayerJoinHandler.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <blitz/protocol/PacketHandler.h>
|
||||
|
||||
namespace blitz {
|
||||
namespace client {
|
||||
|
||||
class PlayerJoinHandler : public protocol::PacketHandler {
|
||||
public:
|
||||
PlayerJoinHandler(network::EnetConnection& a_Connection, EnttWorld& a_World);
|
||||
~PlayerJoinHandler();
|
||||
|
||||
NazaraSlot(network::EnetConnection, OnPlayerJoin, m_Slot);
|
||||
|
||||
private:
|
||||
void Handle(const protocol::data::PlayerJoin&);
|
||||
};
|
||||
|
||||
} // namespace client
|
||||
} // namespace blitz
|
||||
18
include/client/handlers/PlayerLeaveHandler.h
Normal file
18
include/client/handlers/PlayerLeaveHandler.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <blitz/protocol/PacketHandler.h>
|
||||
|
||||
namespace blitz {
|
||||
namespace client {
|
||||
|
||||
class PlayerLeaveHandler : public protocol::PacketHandler {
|
||||
public:
|
||||
PlayerLeaveHandler(network::EnetConnection& a_Connection, EnttWorld& a_World);
|
||||
~PlayerLeaveHandler();
|
||||
|
||||
NazaraSlot(network::EnetConnection, OnPlayerLeave, m_Slot);
|
||||
|
||||
private:
|
||||
void Handle(const protocol::data::PlayerLeave&);
|
||||
};
|
||||
|
||||
} // namespace client
|
||||
} // namespace blitz
|
||||
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