diff --git a/engine/include/cubos/engine/cubos.hpp b/engine/include/cubos/engine/cubos.hpp index b8d25b3c3..5e52c1d4f 100644 --- a/engine/include/cubos/engine/cubos.hpp +++ b/engine/include/cubos/engine/cubos.hpp @@ -161,6 +161,16 @@ namespace cubos::engine template Cubos& addComponent(); + /// @brief Adds a new relation type to the engine. + /// @tparam C Type of the relation. + /// @return Reference to this object, for chaining. + template + Cubos& addRelation() + { + mWorld.registerRelation(); + return *this; + } + /// @brief Adds a new event type to the engine. /// @tparam E Type of the event. /// @return Reference to this object, for chaining.