alalalallalalllala

This commit is contained in:
Zoe Roux
2021-05-27 16:37:22 +02:00
parent d69a4f8ee2
commit a26725f5a5
22 changed files with 467 additions and 133 deletions

View File

@@ -24,10 +24,9 @@ namespace WAL
//! @brief Add a new entity to the scene, you can use this method with the same arguments as the entity's constructor.
//! @return The current scene is returned to allow you to chain call.
template <class ...Params>
Scene &addEntity(Params ...params)
Entity &addEntity(Params &&...params)
{
this->_entities.emplace_back(params...);
return *this;
return this->_entities.emplace_back(std::forward<Params>(params)...);
}
//! @brief A default constructor
@@ -38,5 +37,6 @@ namespace WAL
~Scene() = default;
//! @brief A scene is assignable
Scene &operator=(const Scene &) = default;
Scene(Scene &&) = default;
};
} // namespace WAL