![]() |
DDNet documentation
|
#include <config.h>
Public Member Functions | |
| SColorConfigVariable (IConsole *pConsole, const char *pScriptName, EVariableType Type, int Flags, const char *pHelp, unsigned *pVariable, unsigned Default) | |
| ~SColorConfigVariable () override=default | |
| void | Register () override |
| bool | IsDefault () const override |
| void | Serialize (char *pOut, size_t Size, unsigned Value) const |
| void | Serialize (char *pOut, size_t Size) const override |
| void | SetValue (unsigned Value) |
| void | ResetToDefault () override |
| void | ResetToOld () override |
| Public Member Functions inherited from SConfigVariable | |
| SConfigVariable (IConsole *pConsole, const char *pScriptName, EVariableType Type, int Flags, const char *pHelp) | |
| virtual | ~SConfigVariable ()=default |
Static Public Member Functions | |
| static void | CommandCallback (IConsole::IResult *pResult, void *pUserData) |
Public Attributes | |
| unsigned * | m_pVariable |
| unsigned | m_Default |
| float | m_DarkestLighting |
| bool | m_Alpha |
| unsigned | m_OldValue |
| Public Attributes inherited from SConfigVariable | |
| IConsole * | m_pConsole |
| const char * | m_pScriptName |
| EVariableType | m_Type |
| int | m_Flags |
| const char * | m_pHelp |
| bool | m_ReadOnly = false |
Additional Inherited Members | |
| Public Types inherited from SConfigVariable | |
| enum | EVariableType { VAR_INT , VAR_COLOR , VAR_STRING } |
| Protected Member Functions inherited from SConfigVariable | |
| void | ExecuteLine (const char *pLine) const |
| bool | CheckReadOnly () const |
|
inline |
|
overridedefault |
|
static |
|
overridevirtual |
Implements SConfigVariable.
|
overridevirtual |
Implements SConfigVariable.
|
overridevirtual |
Implements SConfigVariable.
|
overridevirtual |
Implements SConfigVariable.
|
overridevirtual |
Implements SConfigVariable.
| void SColorConfigVariable::Serialize | ( | char * | pOut, |
| size_t | Size, | ||
| unsigned | Value ) const |
| void SColorConfigVariable::SetValue | ( | unsigned | Value | ) |
| bool SColorConfigVariable::m_Alpha |
| float SColorConfigVariable::m_DarkestLighting |
| unsigned SColorConfigVariable::m_Default |
| unsigned SColorConfigVariable::m_OldValue |
| unsigned* SColorConfigVariable::m_pVariable |