R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
rtype::ClientOptions Struct Reference

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.
 

Detailed Description

Settings of a client run, read from the command line.

Member Data Documentation

◆ command

ClientCommand rtype::ClientOptions::command = ClientCommand::Run

What to do; the settings only matter for ClientCommand::Run.

◆ edit

std::optional<std::filesystem::path> rtype::ClientOptions::edit

--edit: a waves file opened in the level editor instead of the connect screen.

◆ frames

std::uint64_t rtype::ClientOptions::frames = 0

--frames: quit after this many frames; 0 runs until the window closes.

◆ join

bool rtype::ClientOptions::join = false

--join: join the server at once, without waiting on the connect screen.

◆ metrics

bool rtype::ClientOptions::metrics = false

--metrics: shows the frame metrics from the start, as F12 does.

◆ screenshot

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).

◆ settings

ClientSettings rtype::ClientOptions::settings

Server and player name; ClientSettings gives the defaults (127.0.0.1, port 4242, player). They fill the connect screen.

◆ settings_file

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.


The documentation for this struct was generated from the following file: