|
R-Type
Networked shoot'em up built on Aegis2D
|
Settings of a client run, read from the command line. More...
#include </__w/project-rtype/project-rtype/client/network/include/rtype/client_options.hpp>
Public Attributes | |
| ClientCommand | command = ClientCommand::Run |
| What to do; the settings only matter for ClientCommand::Run. | |
| ClientSettings | settings |
Server and player name; ClientSettings gives the defaults (127.0.0.1, port 4242, player). They fill the connect screen. | |
| bool | join = false |
--join: join the server at once, without waiting on the connect screen. | |
| std::optional< std::filesystem::path > | settings_file |
--settings: the player's settings file (keys, auto-fire, text size, effects), instead of the one of the player's settings folder. | |
| std::uint64_t | frames = 0 |
--frames: quit after this many frames; 0 runs until the window closes. | |
| std::optional< std::filesystem::path > | screenshot |
--screenshot: saves the frame before the last one as a PNG file (after --frames, or 300 frames by default). | |
| bool | metrics = false |
--metrics: shows the frame metrics from the start, as F12 does. | |
| std::optional< std::filesystem::path > | edit |
--edit: a waves file opened in the level editor instead of the connect screen. | |
Settings of a client run, read from the command line.
| ClientCommand rtype::ClientOptions::command = ClientCommand::Run |
What to do; the settings only matter for ClientCommand::Run.
| std::optional<std::filesystem::path> rtype::ClientOptions::edit |
--edit: a waves file opened in the level editor instead of the connect screen.
| std::uint64_t rtype::ClientOptions::frames = 0 |
--frames: quit after this many frames; 0 runs until the window closes.
| bool rtype::ClientOptions::join = false |
--join: join the server at once, without waiting on the connect screen.
| bool rtype::ClientOptions::metrics = false |
--metrics: shows the frame metrics from the start, as F12 does.
| std::optional<std::filesystem::path> rtype::ClientOptions::screenshot |
--screenshot: saves the frame before the last one as a PNG file (after --frames, or 300 frames by default).
| ClientSettings rtype::ClientOptions::settings |
Server and player name; ClientSettings gives the defaults (127.0.0.1, port 4242, player). They fill the connect screen.
| std::optional<std::filesystem::path> rtype::ClientOptions::settings_file |
--settings: the player's settings file (keys, auto-fire, text size, effects), instead of the one of the player's settings folder.