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
+6 -4
View File
@@ -6,23 +6,25 @@
#include "System/System.hpp"
#include <map>
#include "Component/Gamepad/GamepadComponent.hpp"
#include "Component/Controllable/ControllableComponent.hpp"
namespace BBM
{
//! @brief A system to handle Gamepad entities.
class GamepadSystem : public WAL::System
class GamepadSystem : public WAL::System<GamepadComponent, ControllableComponent>
{
public:
//! @inherit
void onFixedUpdate(WAL::Entity &entity) override;
//! @brief A default constructor
GamepadSystem();
explicit GamepadSystem(WAL::Wal &wal);
//! @brief A Gamepad system is copy constructable
GamepadSystem(const GamepadSystem &) = default;
//! @brief A default destructor
~GamepadSystem() override = default;
//! @brief A Gamepad system is assignable.
GamepadSystem &operator=(const GamepadSystem &) = default;
//! @brief A system is not assignable.
GamepadSystem &operator=(const GamepadSystem &) = delete;
};
}