#include <text_console_script.hpp>
◆ TextConsoleScript() [1/3]
mage::script::TextConsoleScript::TextConsoleScript |
( |
U32 |
nb_rows, |
|
|
U32 |
nb_columns |
|
) |
| |
|
explicit |
◆ TextConsoleScript() [2/3]
mage::script::TextConsoleScript::TextConsoleScript |
( |
const TextConsoleScript & |
script | ) |
|
◆ TextConsoleScript() [3/3]
◆ ~TextConsoleScript()
mage::script::TextConsoleScript::~TextConsoleScript |
( |
| ) |
|
|
virtualdefault |
◆ Clear()
void mage::script::TextConsoleScript::Clear |
( |
| ) |
|
◆ Format()
void mage::script::TextConsoleScript::Format |
( |
const_wzstring |
format, |
|
|
|
... |
|
) |
| |
◆ IncrementRow()
void mage::script::TextConsoleScript::IncrementRow |
( |
| ) |
|
|
private |
◆ Load()
void mage::script::TextConsoleScript::Load |
( |
[[maybe_unused] ] Engine & |
engine | ) |
|
|
overridevirtual |
Loads this behavior script. Allows this behavior script to preform any pre-processing.
- Parameters
-
[in,out] | engine | A reference to the engine. |
- Exceptions
-
Exception | Failed to load this behavior script. |
Reimplemented from mage::BehaviorScript.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ ProcessString()
◆ SetCharacter()
void mage::script::TextConsoleScript::SetCharacter |
( |
wchar_t |
character, |
|
|
U32 |
row, |
|
|
U32 |
column |
|
) |
| |
|
private |
◆ Update()
void mage::script::TextConsoleScript::Update |
( |
[[maybe_unused] ] Engine & |
engine | ) |
|
|
overridevirtual |
Updates this behavior script.
This method is called once per frame.
- Parameters
-
[in,out] | engine | A reference to the engine. |
- Exceptions
-
Exception | Failed to update this behavior script. |
Reimplemented from mage::BehaviorScript.
◆ Write()
◆ WriteLine()
◆ m_buffer
UniquePtr< wchar_t[] > mage::script::TextConsoleScript::m_buffer |
|
private |
◆ m_current_column
U32 mage::script::TextConsoleScript::m_current_column |
|
private |
◆ m_current_row
U32 mage::script::TextConsoleScript::m_current_row |
|
private |
◆ m_mutex
std::mutex mage::script::TextConsoleScript::m_mutex |
|
private |
◆ m_nb_columns
const U32 mage::script::TextConsoleScript::m_nb_columns |
|
private |
◆ m_nb_rows
const U32 mage::script::TextConsoleScript::m_nb_rows |
|
private |
◆ m_temp_buffer
std::vector< wchar_t > mage::script::TextConsoleScript::m_temp_buffer |
|
private |
◆ m_text