mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-20 21:35:12 +00:00
21 lines
551 B
C++
21 lines
551 B
C++
//
|
|
// Created by Zoe Roux on 5/24/21.
|
|
//
|
|
|
|
#include "Component/Movable/MovableComponent.hpp"
|
|
#include "Component/GridCentered/GridCenteredComponent.hpp"
|
|
#include "GridCenteredSystem.hpp"
|
|
|
|
namespace BBM
|
|
{
|
|
GridCenteredSystem::GridCenteredSystem(WAL::Wal &wal)
|
|
: System(wal)
|
|
{}
|
|
|
|
void GridCenteredSystem::onFixedUpdate(WAL::ViewEntity<GridCenteredComponent, MovableComponent, PositionComponent> &entity)
|
|
{
|
|
auto &grid = entity.get<GridCenteredComponent>();
|
|
auto &movement = entity.get<MovableComponent>();
|
|
// movement.addForce(grid.force * )
|
|
}
|
|
} |