Adding a position componentn and a vector3

This commit is contained in:
Zoe Roux
2021-05-17 12:31:02 +02:00
parent 2015705f11
commit e98a73f2ea
9 changed files with 292 additions and 17 deletions

View File

@@ -16,8 +16,6 @@ namespace WAL
class Component
{
private:
//! @brief The name of this component
std::string _name;
//! @brief Is this component disabled?
bool _disabled = false;
protected:
@@ -27,7 +25,7 @@ namespace WAL
std::vector<std::type_index> _dependencies;
//! @brief A component can't be instantiated, it should be derived.
explicit Component(std::string name, Entity &entity);
explicit Component(Entity &entity);
//! @brief A component can't be instantiated, it should be derived.
Component(const Component &) = default;
public:
@@ -40,9 +38,6 @@ namespace WAL
//! @param entity The entity that owns the ne component.
virtual Component *clone(Entity &entity) const = 0;
//! @brief Get the name of this component
std::string getName() const;
//! @brief Used if the component is disabled
bool isDisabled() const;
//! @brief Disable this component.