26 explicit DebugSystem(
const std::shared_ptr<eng::IRenderer> &renderer,
bool &showDebug)
43 for (
const auto &key : circleShapes | std::views::keys)
53 if ((transform ==
nullptr) || (hitbox ==
nullptr))
57 const float hitboxX = transform->x + hitbox->offsetX - hitbox->radius;
58 const float hitboxY = transform->
y + hitbox->offsetY - hitbox->radius;
This file contains the component definitions.
This file contains the IRenderer class declaration.
This file contains the Registry class declaration.
Abstract class for system.
DebugSystem(const DebugSystem &)=delete
DebugSystem(DebugSystem &&)=delete
void update(Registry ®istry, float dt) override
const std::shared_ptr< eng::IRenderer > & m_renderer
~DebugSystem() override=default
DebugSystem(const std::shared_ptr< eng::IRenderer > &renderer, bool &showDebug)
DebugSystem & operator=(DebugSystem &&)=delete
DebugSystem & operator=(const DebugSystem &)=delete
Class for managing entities and their components.
bool hasComponent(Entity e)
std::unordered_map< Entity, T > & getAll()
T * getComponent(Entity e)
virtual void drawCircleShape(const std::string &name)=0
virtual void setCircleShapePosition(const std::string &name, float x, float y)=0