ConsoleSystemclass

A library to interact with the Console System.

object→ConsoleSystem
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.ConsoleSystem

Methods7

Showing 7 methods

public static string GetValue(string name, string defaultValue = null)PUBLICSTATIC

Get a console variable's value as a string.

ParameterTypeDescription
namestring—
defaultValue = nullstring—
Returns:string—

public static void OnChangePropertySet(Sandbox.WrappedPropertySet`1<T> p)PUBLICSTATICOBSOLETE

Obsolete: Use ChangeCallback.OnPropertySet

ParameterTypeDescription
pWrappedPropertySet<T>—
Returns:void—

public static T OnWrappedGet(Sandbox.WrappedPropertyGet`1<T> p)PUBLICSTATIC

ParameterTypeDescription
pWrappedPropertyGet<T>—
Returns:T—

public static void OnWrappedSet(Sandbox.WrappedPropertySet`1<T> p)PUBLICSTATIC

ParameterTypeDescription
pWrappedPropertySet<T>—
Returns:void—

public static void SetValue(string name, object value)PUBLICSTATIC

Try to set a console variable. You will only be able to set variables that you have permission to set.

ParameterTypeDescription
namestring—
valueobject—
Returns:void—

On this page