IConsoleVarSink

IConsoleVarSinkabstract

Callback class to derive from when you want to receive callbacks when console var changes. More...

#include

Public Member Functions

virtual bool OnBeforeVarChange (ICVar *pVar, const char *sNewValue)=0
virtual void OnAfterVarChange (ICVar *pVar)=0
Called by Console after variable has changed value.
virtual void OnVarUnregister (ICVar *pVar)=0
Called by Console after variable has been unregistered.

Detailed Description

Callback class to derive from when you want to receive callbacks when console var changes.

Member Function Documentation

◆ OnBeforeVarChange()

virtual bool IConsoleVarSink::OnBeforeVarChange ( ICVar * pVar,
const char * sNewValue
)
pure virtual

Called by Console before changing console var value, to validate if var can be changed.

Returns
true if ok to change value, false if should not change value.