Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::core::CommandArg Struct Reference

An argument a command takes: {.name = "count", .type = ArgType::Integer}. More...

#include <aegis2d/core/commands.hpp>

Public Attributes

std::string name {}
 Its name, as the help shows it and CommandCall reads it.
 
ArgType type = ArgType::Text
 Its type.
 
bool optional = false
 May be left out; the optional arguments come after the others.
 
bool rest = false
 Takes the rest of the words, joined by a space: only for the last argument, a text.
 

Detailed Description

An argument a command takes: {.name = "count", .type = ArgType::Integer}.

Member Data Documentation

◆ name

std::string aegis2d::core::CommandArg::name {}

Its name, as the help shows it and CommandCall reads it.

◆ optional

bool aegis2d::core::CommandArg::optional = false

May be left out; the optional arguments come after the others.

◆ rest

bool aegis2d::core::CommandArg::rest = false

Takes the rest of the words, joined by a space: only for the last argument, a text.

◆ type

ArgType aegis2d::core::CommandArg::type = ArgType::Text

Its type.


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