Class FgdVariable
Namespace: ValveResourceFormat.IO.Fgd
Assembly: ValveResourceFormat.dll
A variable of a class: a key an entity of the class can have.
public sealed class FgdVariableInheritance
object ← FgdVariable
Properties
Choices
Gets the values of a variable that has a list of them.
public List<FgdChoice> Choices { get; }Property Value
DeclaredType
Gets the type the variable is declared with.
public FgdVariableType DeclaredType { get; }Property Value
DefaultInteger
Gets the default of a variable whose values are whole numbers.
public int DefaultInteger { get; }Property Value
int
DefaultString
Gets the default as text. For a variable whose values are whole numbers, it is FgdVariable.DefaultInteger.
public string DefaultString { get; }Property Value
string
Description
Gets the description. A variable declared without a long name is described by its name.
public string Description { get; }Property Value
string
ElementTypes
Gets the types a type made of other types is made of, outermost first.
public List<FgdVariableType> ElementTypes { get; }Property Value
HasDefault
Gets whether the variable is declared with a default.
public bool HasDefault { get; }Property Value
bool
LongName
Gets the name the variable is shown under.
public string LongName { get; }Property Value
string
Metadata
Gets what else is declared of the variable, such as report or group.
public KVObject Metadata { get; }Property Value
KVObject
Name
Gets the name of the key.
public string Name { get; }Property Value
string
SubType
Gets the text that narrows the type down, such as the kind of resource.
public string SubType { get; }Property Value
string
Type
Gets the type of the values: the innermost of FgdVariable.ElementTypes, else FgdVariable.DeclaredType.
public FgdVariableType Type { get; }Property Value
TypeName
Gets the type as it is written between the parentheses.
public string TypeName { get; }Property Value
string

