2022-07-25 20:06:06 +02:00
|
|
|
#ifndef ICONCOMMAND_H
|
|
|
|
#define ICONCOMMAND_H
|
|
|
|
#include "icvar.h"
|
|
|
|
|
2023-08-04 14:32:06 +02:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Forward declarations
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
class ConCommandBase;
|
|
|
|
class CCommand;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Any executable that wants to use ConVars need to implement one of
|
|
|
|
// these to hook up access to console variables.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
abstract_class IConCommandBaseAccessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// Flags is a combination of FCVAR flags in cvar.h.
|
|
|
|
// hOut is filled in with a handle to the variable.
|
2024-02-23 00:12:06 +01:00
|
|
|
virtual bool RegisterConCommandBase(ConCommandBase* const pVar) = 0;
|
2023-08-04 14:32:06 +02:00
|
|
|
};
|
|
|
|
|
2024-02-23 00:12:06 +01:00
|
|
|
#endif // ICONCOMMAND_H
|