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

A line of the console's output. More...

#include <aegis2d/ui/console.hpp>

Public Types

enum class  Kind : std::uint8_t { Input , Output , Error }
 What the line is. More...
 

Public Attributes

std::string text {}
 Its text, without a line break.
 
Kind kind = Kind::Output
 Its kind, which picks its color.
 

Detailed Description

A line of the console's output.

Member Enumeration Documentation

◆ Kind

enum class aegis2d::ui::ConsoleLine::Kind : std::uint8_t
strong

What the line is.

Enumerator
Input 

A line typed and run, echoed after the prompt.

Output 

What a command showed.

Error 

Why a line did not run.

Member Data Documentation

◆ kind

Kind aegis2d::ui::ConsoleLine::kind = Kind::Output

Its kind, which picks its color.

◆ text

std::string aegis2d::ui::ConsoleLine::text {}

Its text, without a line break.


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