Class ConVarBase
public class ConVarBase : IEquatable<ConVarBase>
- Inheritance
-
objectConVarBase
- Implements
- Derived
-
ConVar<T>
Constructors
ConVarBase(ushort)
public ConVarBase(ushort accessIndex)
Parameters
accessIndexushort
Properties
AccessIndex
public ushort AccessIndex { get; protected set; }
Property Value
Description
public string Description { get; }
Property Value
Flags
The ConVar flags as defined by ConVarFlags.
public ConVarFlags Flags { get; set; }
Property Value
IsValid
public bool IsValid { get; }
Property Value
Name
public string Name { get; }
Property Value
Public
Shorthand for checking the FCVAR_NOTIFY flag.
public bool Public { get; set; }
Property Value
Type
The underlying data type of the ConVar.
public ConVarType Type { get; }
Property Value
ValueAsString
public string ValueAsString { get; set; }
Property Value
Methods
As<T>()
public ConVar<T> As<T>()
Returns
- ConVar<T>
Type Parameters
T
Delete()
public void Delete()
Equals(ConVarBase?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ConVarBase? other)
Parameters
otherConVarBaseAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.