|
R-Type
Networked shoot'em up built on Aegis2D
|
Command line of r-type_server: ports, waves file, help and version.
More...
#include <cstddef>#include <cstdint>#include <filesystem>#include <optional>#include <span>#include <string>#include <string_view>#include <variant>Go to the source code of this file.
Classes | |
| struct | rtype::ServerOptions |
| Settings of a server run, read from the command line. More... | |
Namespaces | |
| namespace | rtype |
| R-Type game code, built on the Aegis2D engine. | |
Enumerations | |
| enum class | rtype::ServerCommand : std::uint8_t { rtype::Run , rtype::Help , rtype::Version } |
| What the server was asked to do. More... | |
Functions | |
| std::variant< ServerOptions, std::string > | rtype::parse_server_options (std::span< const std::string_view > args) |
Reads the command line of r-type_server. | |
Variables | |
| constexpr std::uint16_t | rtype::default_tcp_port = 4242 |
TCP port the server listens on when --tcp-port is not given. | |
| constexpr std::uint16_t | rtype::default_udp_port = 4243 |
UDP port the server listens on when --udp-port is not given. | |
| constexpr std::uint32_t | rtype::default_packet_rate = 300 |
Datagrams accepted per second from one address when --max-packet-rate is not given; see RateLimits. | |
| constexpr std::uint32_t | rtype::default_max_rooms = 4 |
Rooms played at once when --max-rooms is not given; see GameServer. | |
| constexpr std::string_view | rtype::default_scores_file = "scores.json" |
| File of the best scores, in the folder the server runs from. | |
| constexpr std::string_view | rtype::default_bans_file = "bans.json" |
| File of the banned addresses, in the folder the server runs from. | |
| constexpr std::string_view | rtype::server_usage |
Usage line printed by --help and after a command line error. | |
Command line of r-type_server: ports, waves file, help and version.