|
Etterna 0.75.1
|
The theme specific data. More...
#include <ThemeMetric.h>


Public Member Functions | |
| ThemeMetric (std::string sGroup="", std::string sName="") | |
| ThemeMetric (const ThemeMetric< T > &cpy) | |
| void | Load (const std::string &sGroup, const std::string &sName) |
| Load the chosen metric from the .ini file. | |
| void | ChangeGroup (const std::string &sGroup) |
| void | Read () override |
| Actually read the metric and get its data. | |
| void | PushSelf (Lua *L) |
| void | Clear () override |
| auto | GetName () const -> const std::string & |
| Retrieve the metric's name. | |
| auto | GetGroup () const -> const std::string & |
| Retrieve the metric's group. | |
| auto | GetValue () const -> const T & |
| Retrieve the metric's value. | |
| operator const T & () const | |
| auto | IsLoaded () const -> bool |
| auto | operator== (const T &input) const -> bool |
Protected Attributes | |
| std::string | m_sGroup |
| the metric's group. | |
| std::string | m_sName |
| the metric's name. | |
| LuaReference | m_Value |
| the metric's value. | |
| T | m_currentValue |
| bool | m_bCallEachTime { false } |
The theme specific data.
Each piece of data is to correspond to a type.
|
inlineoverridevirtual |
Implements IThemeMetric.
|
inline |
Retrieve the metric's group.
|
inline |
Retrieve the metric's name.
|
inline |
Retrieve the metric's value.
|
inline |
Load the chosen metric from the .ini file.
| sGroup | the group the metric is in. |
| sName | the name of the metric. |
|
inlineoverridevirtual |
Actually read the metric and get its data.
Implements IThemeMetric.
Reimplemented in ThemeMetricDifficultiesToShow, and ThemeMetricStepsTypesToShow.
|
protected |
the metric's group.
In metrics.ini, it is usually done as such: [GroupName]