mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-07 03:25:10 +00:00
28 lines
447 B
C++
28 lines
447 B
C++
//
|
|
// Created by cbihan on 24/05/2021.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "Component/Component.hpp"
|
|
#include "Drawables/ADrawable3D.hpp"
|
|
|
|
namespace BBM
|
|
{
|
|
template <class T>
|
|
class Drawable3DComponent : public WAL::Component
|
|
{
|
|
public:
|
|
T member;
|
|
|
|
explicit Drawable3DComponent(WAL::Entity &entity)
|
|
: WAL::Component(entity)
|
|
{
|
|
}
|
|
|
|
WAL::Component *clone(WAL::Entity &entity) const override
|
|
{
|
|
return new Drawable3DComponent(entity);
|
|
}
|
|
};
|
|
} |