log players on server

This commit is contained in:
2024-07-23 01:11:23 +02:00
parent 89d5ad5f54
commit ff73cd348e
2 changed files with 8 additions and 0 deletions

View File

@@ -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()));
}
}