add RemovePlayersSystem in client
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#include <client/Client.h>
|
#include <client/Client.h>
|
||||||
|
|
||||||
|
#include <blitz/systems/RemovePlayersSystem.h>
|
||||||
#include <client/handlers/KeepAliveHandler.h>
|
#include <client/handlers/KeepAliveHandler.h>
|
||||||
#include <client/handlers/LoggingSuccessHandler.h>
|
#include <client/handlers/LoggingSuccessHandler.h>
|
||||||
#include <client/handlers/PlayerJoinHandler.h>
|
#include <client/handlers/PlayerJoinHandler.h>
|
||||||
@@ -10,11 +11,15 @@ namespace blitz {
|
|||||||
namespace client {
|
namespace client {
|
||||||
|
|
||||||
Client::Client(Nz::EnttWorld& a_World) : m_World({a_World}) {
|
Client::Client(Nz::EnttWorld& a_World) : m_World({a_World}) {
|
||||||
// TODO: bind RemovePlayersSystem
|
AtomicEnttWorld world = m_World;
|
||||||
|
world->AddSystem<RemovePlayersSystem>(m_World);
|
||||||
}
|
}
|
||||||
|
|
||||||
Client::~Client() {
|
Client::~Client() {
|
||||||
Disconnect();
|
Disconnect();
|
||||||
|
|
||||||
|
AtomicEnttWorld world = m_World;
|
||||||
|
world->RemoveSystem<RemovePlayersSystem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::BindHandlers() {
|
void Client::BindHandlers() {
|
||||||
|
|||||||
Reference in New Issue
Block a user