mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 09:45:42 +00:00
import all assets
This commit is contained in:
@@ -10,18 +10,21 @@
|
||||
namespace BBM
|
||||
{
|
||||
template <class T>
|
||||
class Drawable2DComponent : public WAL::Component, public T
|
||||
class Drawable2DComponent : public WAL::Component
|
||||
{
|
||||
public:
|
||||
|
||||
explicit Drawable2DComponent(WAL::Entity &entity)
|
||||
: WAL::Component(entity)
|
||||
T member;
|
||||
|
||||
explicit Drawable2DComponent(WAL::Entity &entity, T member)
|
||||
: WAL::Component(entity),
|
||||
member(std::move(member))
|
||||
{
|
||||
}
|
||||
|
||||
WAL::Component *clone(WAL::Entity &entity) const override
|
||||
{
|
||||
return new Drawable2DComponent(entity);
|
||||
return new Drawable2DComponent(entity, this->member);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -15,8 +15,9 @@ namespace BBM
|
||||
public:
|
||||
T member;
|
||||
|
||||
explicit Drawable3DComponent(WAL::Entity &entity)
|
||||
: WAL::Component(entity)
|
||||
explicit Drawable3DComponent(WAL::Entity &entity, T member)
|
||||
: WAL::Component(entity),
|
||||
member(std::move(member))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user