|
|
xiiMutex | m_Mutex |
|
xiiMutex & | GetMutex () const |
| | Returns the mutex that's used to prevent multi-threaded access.
|
|
static void | SetMainConsole (xiiConsole *pConsole) |
|
static xiiConsole * | GetMainConsole () |
|
|
xiiInt32 | m_iCurrentInputHistoryElement = -1 |
|
xiiStaticArray< xiiString, 16 > | m_InputHistory |
|
void | AddToInputHistory (xiiStringView sText) |
| | Adds an item to the input history.
|
| const xiiStaticArray< xiiString, 16 > & | GetInputHistory () const |
|
void | RetrieveInputHistory (xiiInt32 iHistoryUp, xiiStringBuilder &ref_sResult) |
| | Replaces the input line by the next (or previous) history item.
|
|
xiiResult | SaveInputHistory (xiiStringView sFile) |
| | Writes the current input history to a text file.
|
|
void | LoadInputHistory (xiiStringView sFile) |
| | Reads the text file and appends all lines to the input history.
|
◆ AddConsoleString()
| void xiiConsole::AddConsoleString |
( |
xiiStringView | sText, |
|
|
xiiConsoleString::Type | type = xiiConsoleString::Type::Default ) |
|
virtual |
Adds a string to the console.
The base class only broadcasts an event, but does not store the string anywhere.
Reimplemented in xiiQuakeConsole.
◆ AutoComplete()
Auto-completes the given text.
Returns true, if the string was modified in any way. Adds additional strings to the console output, if there are further auto-completion suggestions.
◆ ExecuteCommand()
Executes the given input string.
The command is forwarded to the set command interpreter.
Reimplemented in xiiQuakeConsole.
◆ GetInputHistory()
| const xiiStaticArray< xiiString, 16 > & xiiConsole::GetInputHistory |
( |
| ) |
const |
|
inline |
Returns the current input history.
Make sure to lock the console's mutex while working with the history.
◆ SetCommandInterpreter()
Replaces the current command interpreter.
This base class doesn't set any default interpreter, but derived classes may do so.
The documentation for this class was generated from the following files:
- /home/runner/work/XII/XII/Source/Engine/Core/Console/Console.h
- /home/runner/work/XII/XII/Source/Engine/Core/Console/Implementation/Console.cpp