mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 13:25:10 +00:00
alalalallalalllala
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user