Reworking dependencies

This commit is contained in:
Zoe Roux
2021-05-21 16:51:18 +02:00
parent dee56a52c7
commit e5d3823d0c
12 changed files with 53 additions and 35 deletions

View File

@@ -67,6 +67,10 @@ namespace WAL
//! @param type The type of the component
bool hasComponent(const std::type_info &type) const;
//! @brief Check if this entity has a component.
//! @param type The type of the component
bool hasComponent(const std::type_index &type) const;
//! @brief Add a component to this entity. The component is constructed in place.
//! @throw DuplicateError is thrown if a component with the same type already exist.
//! @return This entity is returned