Interface Subsystem Component

Overview

The Interface Subsystem provides specialized handling for diffenrent types of components. This includes drawable components, animated drawable components, and music components.

Example with the Drawable Component

Here is the constructor for this component :

DrawableComponent(const Resource &resource, bool isRepeated = false, bool isCentered = false);

The DrawableComponent class is a subclass of the Component class. It is used to represent drawable components in the game. The DrawableComponent class has the following function to update the component with time:

void update(std::shared_ptr<Actor> actor, double delta) override;

The update() function is called every frame to update the component with time. The delta parameter is the time elapsed since the last frame.