fixed healthsystem, using callbacks to create bonuses and removed bonuscomponent (useless)

This commit is contained in:
HENRY Benjamin
2021-06-09 14:49:37 +02:00
parent 93a4fa792c
commit 3a99e5913b
15 changed files with 88 additions and 152 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
namespace BBM
{
HealthComponent::HealthComponent(WAL::Entity &entity, unsigned int healthPoint, const WAL::Callback<WAL::Entity &> &onDeath)
HealthComponent::HealthComponent(WAL::Entity &entity, unsigned int healthPoint, const WAL::Callback<WAL::Entity &, WAL::Wal &> &onDeath)
: WAL::Component(entity),
_healthPoint(healthPoint),
onDeath(onDeath)