display simpe stat, no update

This commit is contained in:
arthur.jamet
2021-06-16 16:32:07 +02:00
parent b81fefc4e0
commit a11eef468c
9 changed files with 221 additions and 10 deletions
+19
View File
@@ -0,0 +1,19 @@
//
//
//
#include "StatComponent.hpp"
namespace BBM
{
StatComponent::StatComponent(WAL::Entity &entity, WAL::Callback<Drawable2DComponent &> callback)
: Component(entity),
updater(callback)
{}
WAL::Component *StatComponent::clone(WAL::Entity &entity) const
{
return new StatComponent(entity, this->updater);
}
} // namespace WAL