R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
input_script.hpp File Reference

Recorded inputs for r-type_bot --inputs: what to hold, and for how long. More...

#include <aegis2d/ecs/components.hpp>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <string>
#include <string_view>
#include <variant>
#include <vector>

Go to the source code of this file.

Classes

struct  rtype::ScriptStep
 One line of an input script: actions held for a time. More...
 
struct  rtype::InputScript
 A sequence of inputs, played in order, then again from the start. More...
 
class  rtype::ScriptedInputs
 Plays an input script from the first call to update(), looping at its end. More...
 

Namespaces

namespace  rtype
 R-Type game code, built on the Aegis2D engine.
 

Functions

std::variant< InputScript, std::string > rtype::parse_input_script (std::string_view text)
 Reads an input script.
 
std::variant< InputScript, std::string > rtype::load_input_script (const std::filesystem::path &file)
 Reads an input script from a file.
 

Detailed Description

Recorded inputs for r-type_bot --inputs: what to hold, and for how long.