Bomb collisions should be good

This commit is contained in:
Zoe Roux
2021-06-10 11:31:32 +02:00
parent 4485f36aa2
commit 5646c0ecbd
7 changed files with 32 additions and 30 deletions
+3 -2
View File
@@ -5,15 +5,16 @@
#pragma once
#include <System/System.hpp>
#include "Component/Position/PositionComponent.hpp"
#include "Component/Bomb/BasicBombComponent.hpp"
namespace BBM
{
class BombSystem : public WAL::System<BasicBombComponent>
class BombSystem : public WAL::System<BasicBombComponent, PositionComponent>
{
public:
//! @inherit
void onUpdate(WAL::ViewEntity<BasicBombComponent> &entity, std::chrono::nanoseconds dtime) override;
void onUpdate(WAL::ViewEntity<BasicBombComponent, PositionComponent> &entity, std::chrono::nanoseconds dtime) override;
//! @brief Construct a new bomb system.
explicit BombSystem(WAL::Wal &wal);