Files
sbox-public/engine/Definitions/engine/console.def
2026-06-11 10:36:53 +00:00

44 lines
879 B
Modula-2

include "dbg.h"
include "convar.h"
native enum ConVarFlags_t;
include "sandbox.console.h"
native class ConVar as NativeEngine.ConVar
{
stable string GetName();
stable string GetHelpText();
void SetValue( string value );
void SetValue( float flValue );
void SetValue( int nValue );
stable string GetString();
void Revert();
bool HasMin();
bool HasMax();
float GetMinValue();
float GetMaxValue();
stable string GetDefault();
ConVarFlags_t GetFlags();
}
native class ConCommand as NativeEngine.ConCommand
{
stable string GetName();
stable string GetHelpText();
ConVarFlags_t GetFlags();
void Run( string command );
}
managed static class Sandbox.ConVarSystem
{
static void RegisterNativeVar( ConVar convar );
static void RegisterNativeCommand( ConCommand concommand );
static void OnConVarChanged( string convarname, string value, string previous );
}