#include "DestructSystem.h" #include "components/Texture.h" #include void DestructSystem::configure(entityx::EventManager &event_manager) { event_manager.subscribe(*this); } void DestructSystem::update(entityx::EntityManager &entities, entityx::EventManager &events, entityx::TimeDelta dt){} void DestructSystem::receive(const entityx::EntityDestroyedEvent &destroyedEvent) { /*entityx::ComponentHandle texture = destroyedEvent.entity.component(); if (texture) { // Do stuff with texture }*/ std::cout << "!!!!!!!!!!!!!!!!!!!Entity destroyed!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl; }