mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 05:45:10 +00:00
Starting the grid centered system
This commit is contained in:
@@ -2,4 +2,24 @@
|
||||
// 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::System({
|
||||
typeid(GridCenteredComponent),
|
||||
typeid(MovableComponent),
|
||||
// typeid(PositionComponent)
|
||||
})
|
||||
{}
|
||||
|
||||
void GridCenteredSystem::onFixedUpdate(WAL::Entity &entity)
|
||||
{
|
||||
auto &grid = entity.getComponent<GridCenteredComponent>();
|
||||
auto &movement = entity.getComponent<MovableComponent>();
|
||||
// movement.addForce(grid.force * )
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user