Plays an input script from the first call to update(), looping at its end.
More...
#include </__w/project-rtype/project-rtype/tools/bot/include/rtype/input_script.hpp>
|
| using | Clock = std::chrono::steady_clock |
| | Clock of the steps.
|
| |
|
| | ScriptedInputs (InputScript script) |
| | Creates the player of a script.
|
| |
| aegis2d::ecs::PlayerInput | update (Clock::time_point now) |
| | The input to hold now, by the time since the first call.
|
| |
| std::uint64_t | picks () const noexcept |
| | Number of steps started.
|
| |
Plays an input script from the first call to update(), looping at its end.
◆ Clock
◆ ScriptedInputs()
| rtype::ScriptedInputs::ScriptedInputs |
( |
InputScript |
script | ) |
|
|
explicit |
Creates the player of a script.
- Parameters
-
| script | Script to play; one without steps holds nothing. |
◆ picks()
| std::uint64_t rtype::ScriptedInputs::picks |
( |
| ) |
const |
|
noexcept |
Number of steps started.
- Returns
- The count since the first call, the repeats included.
◆ update()
| aegis2d::ecs::PlayerInput rtype::ScriptedInputs::update |
( |
Clock::time_point |
now | ) |
|
The input to hold now, by the time since the first call.
- Parameters
-
- Returns
- The held actions.
The documentation for this class was generated from the following file: