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

Command line of r-type_client: server, player name, help and version. More...

#include <rtype/client_session.hpp>
#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::ClientOptions
 Settings of a client run, read from the command line. More...
 

Namespaces

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

Enumerations

enum class  rtype::ClientCommand : std::uint8_t { rtype::Run , rtype::Help , rtype::Version }
 What the client was asked to do. More...
 

Functions

std::optional< std::uint16_t > rtype::parse_port (std::string_view text) noexcept
 Reads a TCP port, as --port and the connect screen take it.
 
std::variant< ClientOptions, std::string > rtype::parse_client_options (std::span< const std::string_view > args)
 Reads the command line of r-type_client.
 

Variables

constexpr std::string_view rtype::client_usage
 Usage line printed by --help and after a command line error.
 

Detailed Description

Command line of r-type_client: server, player name, help and version.