30 float default_speed = 1;
63 [[nodiscard]]
float step()
const;
80 [[nodiscard]]
float speed()
const;
Service for managing and modifying the gameplay simulation speed.
Definition gameplay_speed_service.h:17
void decrease_speed(float step)
Decreases the gameplay speed by the specified step.
float min_speed() const
Returns the minimum allowable gameplay speed.
float max_speed() const
Returns the maximum allowable gameplay speed.
void increase_speed(float step)
Increases the gameplay speed by the specified step.
void update()
Updates the service state based on user input.
void set_step(float value)
Sets the speed adjustment increment.
~GameplaySpeedService() override=default
float step() const
Returns the current speed adjustment increment.
Config & config()
Provides mutable access to the service configuration.
float speed() const
Returns the current gameplay speed multiplier.
GameplaySpeedService(const IInputProvider &input_provider)
Constructs the GameplaySpeedService.
Definition iEngineService.h:4
KeyCode
Definition key_code.h:5