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

@@ -70,7 +70,7 @@ namespace WAL
{
if (this->hasComponent<T>())
throw DuplicateError("A component of the type \"" + std::string(typeid(T).name()) + "\" already exists.");
this->_components.push_back(std::make_unique(params...));
this->_components.push_back(std::make_unique<T>(params...));
return *this;
}