This system manages the destruction of entities within the game, ensuring that entities are removed from the registry when they are no longer needed.

namespace systems {
        class DestroySystem : public ISystems {
          public:
            void operator()(Registry &, std::shared_ptr<IContext> ctx) override;

          private:
            Clock _clock;
        };
    }; // namespace systems

Methods

Private Members