DDraceNetwork Docs
SIntConfigVariable Struct Reference

#include <config.h>

Inheritance diagram for SIntConfigVariable:
[legend]
Collaboration diagram for SIntConfigVariable:
[legend]

Public Member Functions

 SIntConfigVariable (IConsole *pConsole, const char *pScriptName, EVariableType Type, int Flags, const char *pHelp, int *pVariable, int Default, int Min, int Max)
 
 ~SIntConfigVariable () override=default
 
void Register () override
 
bool IsDefault () const override
 
void Serialize (char *pOut, size_t Size, int Value) const
 
void Serialize (char *pOut, size_t Size) const override
 
void SetValue (int 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
 
virtual void Register ()=0
 
virtual bool IsDefault () const =0
 
virtual void Serialize (char *pOut, size_t Size) const =0
 
virtual void ResetToDefault ()=0
 
virtual void ResetToOld ()=0
 

Static Public Member Functions

static void CommandCallback (IConsole::IResult *pResult, void *pUserData)
 

Public Attributes

int * m_pVariable
 
int m_Default
 
int m_Min
 
int m_Max
 
int m_OldValue
 
- Public Attributes inherited from SConfigVariable
IConsolem_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
 

Constructor & Destructor Documentation

◆ SIntConfigVariable()

SIntConfigVariable::SIntConfigVariable ( IConsole pConsole,
const char *  pScriptName,
EVariableType  Type,
int  Flags,
const char *  pHelp,
int *  pVariable,
int  Default,
int  Min,
int  Max 
)
inline

◆ ~SIntConfigVariable()

SIntConfigVariable::~SIntConfigVariable ( )
overridedefault

Member Function Documentation

◆ CommandCallback()

void SIntConfigVariable::CommandCallback ( IConsole::IResult pResult,
void *  pUserData 
)
static

◆ IsDefault()

bool SIntConfigVariable::IsDefault ( ) const
overridevirtual

Implements SConfigVariable.

◆ Register()

void SIntConfigVariable::Register ( )
overridevirtual

Implements SConfigVariable.

◆ ResetToDefault()

void SIntConfigVariable::ResetToDefault ( )
overridevirtual

Implements SConfigVariable.

◆ ResetToOld()

void SIntConfigVariable::ResetToOld ( )
overridevirtual

Implements SConfigVariable.

◆ Serialize() [1/2]

void SIntConfigVariable::Serialize ( char *  pOut,
size_t  Size 
) const
overridevirtual

Implements SConfigVariable.

◆ Serialize() [2/2]

void SIntConfigVariable::Serialize ( char *  pOut,
size_t  Size,
int  Value 
) const

◆ SetValue()

void SIntConfigVariable::SetValue ( int  Value)

Member Data Documentation

◆ m_Default

int SIntConfigVariable::m_Default

◆ m_Max

int SIntConfigVariable::m_Max

◆ m_Min

int SIntConfigVariable::m_Min

◆ m_OldValue

int SIntConfigVariable::m_OldValue

◆ m_pVariable

int* SIntConfigVariable::m_pVariable

The documentation for this struct was generated from the following files: