|
Aegis2D
Modular C++26 2D game engine for networked games
|
Console commands: named actions with typed arguments and a help, run from a line. More...
#include <aegis2d/core/console_variables.hpp>#include <aegis2d/core/export.hpp>#include <cstddef>#include <cstdint>#include <functional>#include <map>#include <optional>#include <span>#include <string>#include <string_view>#include <vector>Go to the source code of this file.
Classes | |
| struct | aegis2d::core::CommandArg |
An argument a command takes: {.name = "count", .type = ArgType::Integer}. More... | |
| class | aegis2d::core::CommandCall |
| The arguments of a command being run, read in their types. More... | |
| struct | aegis2d::core::CommandResult |
| What running a line gave. More... | |
| class | aegis2d::core::Commands |
| The commands a console runs: each has a name, its arguments and a help. More... | |
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::core |
| Logging, time, main loop, events and configuration shared by client and server. | |
Typedefs | |
| using | aegis2d::core::CommandHandler = std::function< std::string(const CommandCall &call)> |
| What a command does with its arguments. | |
Enumerations | |
| enum class | aegis2d::core::ArgType : std::uint8_t { aegis2d::core::Text , aegis2d::core::Integer , aegis2d::core::Number , aegis2d::core::Boolean } |
| Type of an argument of a command, read from its text as a console variable's. More... | |
| enum class | aegis2d::core::CommandStatus : std::uint8_t { aegis2d::core::Done , aegis2d::core::Empty , aegis2d::core::Unknown , aegis2d::core::WrongArguments , aegis2d::core::Failed } |
| How running a line went. More... | |
Console commands: named actions with typed arguments and a help, run from a line.