mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-02 00:38:31 -04:00
44 lines
879 B
Modula-2
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 );
|
|
} |