|
R-Type 0.1
|
Sends the local player actions to the server every frame and triggers the shot sound. More...
#include <systems/PlayerSystem.hpp>
Public Member Functions | |
| PlayerSystem (rtk::InputState &inputState, busEvent &eventBus, rtk::factory::EntityFactory &entityFactory, rtype::client::NetworkClient &networkClient) | |
| Creates the system. | |
| void | onStart (rtk::ecs::Registry &) override |
| Logs that the system is loaded. | |
| void | update (rtk::ecs::Registry &, float) override |
| Sends an Input message and publishes a shot on button release. | |
Sends the local player actions to the server every frame and triggers the shot sound.
|
inline |
Creates the system.
| inputState | Input state of the frame. |
| eventBus | Bus on which PlayerShotEvent is published. |
| entityFactory | Entity factory of the engine. |
| networkClient | Client used to send Input messages. |