3#include "spark/core/Component.h"
7namespace spark::core::components
15 SPARK_ALLOW_PRIVATE_SERIALIZATION
22 :
Component(parent), m_path(std::move(path)) {}
30 std::filesystem::path m_path;
31 std::optional<math::Vector2<float>> m_size;
A component that can be attached to a GameObject to provide additional functionality.
Definition Component.h:20
Component(GameObject *parent)
Instantiates a new Component.
Definition Component.cpp:7
A GameObject is any object in the game. It contains a list of components that provides functionality ...
Definition GameObject.h:26
A simple component to render an image.
Definition Image.h:13
void render() const override
Renders the component.
Definition Image.h:24