Reworking systems

This commit is contained in:
Zoe Roux
2021-06-04 00:50:38 +02:00
parent 4f14d380bf
commit 306f07972d
22 changed files with 129 additions and 177 deletions
+5 -4
View File
@@ -5,24 +5,25 @@
#pragma once
#include "Component/Health/HealthComponent.hpp"
#include "System/System.hpp"
namespace BBM
{
//! @brief A system to handle Health entities.
class HealthSystem : public WAL::System
class HealthSystem : public WAL::System<HealthComponent>
{
public:
//! @inherit
void onFixedUpdate(WAL::Entity &entity) override;
//! @brief A default constructor
HealthSystem();
explicit HealthSystem(WAL::Wal &wal);
//! @brief A Health system is copy constructable
HealthSystem(const HealthSystem &) = default;
//! @brief A default destructor
~HealthSystem() override = default;
//! @brief A Health system is assignable.
HealthSystem &operator=(const HealthSystem &) = default;
//! @brief A system is not assignable.
HealthSystem &operator=(const HealthSystem &) = delete;
};
}