Shkyera Engine
Easy to use, game engine for Python
|
A base class for logs that contain textual content. More...
#include <ConsoleWidget.hpp>
Public Member Functions | |
Log (std::string content) | |
Constructor to create a log with the specified content. More... | |
virtual void | draw () const |
Virtual method to draw the log in the user interface. More... | |
virtual uint64_t | getIconId () const =0 |
Virtual method to retrieve an icon identifier associated with the log. More... | |
Public Attributes | |
std::string | _content |
The text content of the log. More... | |
A base class for logs that contain textual content.
shkyera::Log::Log | ( | std::string | content | ) |
Constructor to create a log with the specified content.
content | The text content of the log. |
|
virtual |
Virtual method to draw the log in the user interface.
|
pure virtual |
Virtual method to retrieve an icon identifier associated with the log.
Implemented in shkyera::LogError, shkyera::LogSuccess, shkyera::LogInfo, and shkyera::LogVerbose.
std::string shkyera::Log::_content |
The text content of the log.