log players on server
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
|
||||
#include <server/Server.h>
|
||||
|
||||
#include <blitz/common/Format.h>
|
||||
#include <blitz/common/Log.h>
|
||||
|
||||
namespace blitz {
|
||||
namespace server {
|
||||
|
||||
@@ -24,6 +27,7 @@ void DisconectSystem::Update(Nz::Time elapsedTime) {
|
||||
for (auto [entity, connection] : registry.view<EnetConnectionComponent>().each()) {
|
||||
connection.m_Connection->SendPlayerLeave({player->m_PlayerId});
|
||||
}
|
||||
LogD(Format("[Server] %s left !", player->m_Pseudo.c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user