mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-03 10:26:29 +00:00
creating a second ctor for Drawable2D
This commit is contained in:
@@ -27,6 +27,14 @@ namespace BBM
|
||||
drawBefore3D(drawBefore3D)
|
||||
{}
|
||||
|
||||
//! ctor
|
||||
template<typename T, typename ...Params>
|
||||
explicit Drawable2DComponent(WAL::Entity &entity, WAL::TypeHolder<T>, Params &&...params)
|
||||
: WAL::Component(entity),
|
||||
drawable(new T(std::forward<Params>(params)...)),
|
||||
drawBefore3D(false)
|
||||
{}
|
||||
|
||||
//! ctor
|
||||
template<typename T, typename ...Params>
|
||||
explicit Drawable2DComponent(WAL::Entity &entity, WAL::TypeHolder<T>, bool drawBefore3D, Params &&...params)
|
||||
|
||||
Reference in New Issue
Block a user