|
|
| Preference (const std::string &sName, const T &defaultValue, void(pfnValidate)(T &val)=nullptr) |
| |
| auto | ToString () const -> std::string override |
| |
| void | FromString (const std::string &s) override |
| |
| void | SetFromStack (lua_State *L) override |
| |
| void | PushValue (lua_State *L) const override |
| |
| void | LoadDefault () override |
| |
| void | SetDefaultFromString (const std::string &s) override |
| |
|
auto | Get () const -> const T & |
| |
|
auto | GetDefault () const -> const T & |
| |
|
| operator const T () const |
| |
|
void | Set (const T &other) |
| |
|
| IPreference (const std::string &sName) |
| |
|
void | ReadFrom (const XNode *pNode, bool bIsStatic) |
| |
|
void | WriteTo (XNode *pNode) const |
| |
|
void | ReadDefaultFrom (const XNode *pNode) |
| |
|
auto | GetName () const -> const std::string & |
| |
|
auto | GetName () -> std::string |
| |
|
void | SetStatic (bool b) |
| |
|
|
static auto | GetPreferenceByName (const std::string &sName) -> Preference< T > * |
| |
|
static auto | GetPreferenceByName (const std::string &sName) -> IPreference * |
| |
|
static void | LoadAllDefaults () |
| |
|
static void | ReadAllPrefsFromNode (const XNode *pNode, bool bIsStatic) |
| |
|
static void | SavePrefsToNode (XNode *pNode) |
| |
|
static void | ReadAllDefaultsFromNode (const XNode *pNode) |
| |
◆ FromString()
template<class T >
| void Preference< T >::FromString |
( |
const std::string & |
s | ) |
|
|
inlineoverridevirtual |
◆ LoadDefault()
◆ PushValue()
template<class T >
| void Preference< T >::PushValue |
( |
lua_State * |
L | ) |
const |
|
inlineoverridevirtual |
◆ SetDefaultFromString()
template<class T >
| void Preference< T >::SetDefaultFromString |
( |
const std::string & |
s | ) |
|
|
inlineoverridevirtual |
◆ SetFromStack()
template<class T >
| void Preference< T >::SetFromStack |
( |
lua_State * |
L | ) |
|
|
inlineoverridevirtual |
◆ ToString()
template<class T >
| auto Preference< T >::ToString |
( |
| ) |
const -> std::string |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file:
- /home/runner/work/etterna/etterna/src/Etterna/Models/Misc/Preference.h