Base class for all components that can be attached to GameObjects.
Definition component.h:24
Interface for rendering strategies used by renderable components.
Definition irendering_strategy.h:13
Base class for renderable components in the engine.
Definition renderable.h:16
std::string type_name() const override
Provides a consistent type name for the component.
Renderable & order_in_layer(int layer)
std::unique_ptr< IRenderingStrategy > render_strategy_
Definition renderable.h:18
~Renderable() override=default
void set_render_strategy(Component &component)
bool should_draw() const noexcept
virtual IRenderingStrategy & render_strategy() const
Renderable & enable_draw() noexcept
int order_in_layer() const
bool draw
Definition renderable.h:20
Renderable & disable_draw() noexcept
int ordering_layer_
Definition renderable.h:19