IConsoleVarSink

C++
struct IConsoleVarSink {
};
File

IConsole.h

Description

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

IConsoleVarSink::~IConsoleVarSink Destructor
C++
virtual ~IConsoleVarSink();
IConsoleVarSink::OnAfterVarChange Method
C++
virtual void OnAfterVarChange(ICVar * pVar) = 0;
Description

Called by Console after variable has changed value

IConsoleVarSink::OnBeforeVarChange Method
C++
virtual bool OnBeforeVarChange(ICVar * pVar, const char * sNewValue) = 0;
Returns

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

Description

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