mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-13 03:15:58 +00:00
Update systems to the new view
This commit is contained in:
@@ -17,10 +17,10 @@ namespace BBM
|
||||
: System(wal)
|
||||
{}
|
||||
|
||||
void GamepadSystem::onFixedUpdate(WAL::Entity &entity)
|
||||
void GamepadSystem::onFixedUpdate(WAL::ViewEntity<GamepadComponent, ControllableComponent> &entity)
|
||||
{
|
||||
const auto &gamepadComponent = entity.getComponent<GamepadComponent>();
|
||||
auto &controllable = entity.getComponent<ControllableComponent>();
|
||||
const auto &gamepadComponent = entity.get<GamepadComponent>();
|
||||
auto &controllable = entity.get<ControllableComponent>();
|
||||
Gamepad gamepad(gamepadComponent.getID());
|
||||
|
||||
const std::map<Button, bool &> keyPressedMap = {
|
||||
|
||||
Reference in New Issue
Block a user