Class FgdClass
Namespace: ValveResourceFormat.IO.Fgd
Assembly: ValveResourceFormat.dll
A class of an FGD file: an entity class, or one of the other kinds of class the tools declare the same way.
public sealed class FgdClassInheritance
object ← FgdClass
Fields
DefaultColor
Color of a class that declares none and is based on no class.
public static readonly Color32 DefaultColorField Value
Properties
BaseClasses
Gets the classes the class is based on, in the order it names them.
public List<FgdClass> BaseClasses { get; }Property Value
Color
Gets the color entities of the class are drawn in.
public Color32 Color { get; }Property Value
Description
Gets the description.
public string Description { get; }Property Value
string
HalfGridSnap
Gets whether entities of the class snap to half the grid.
public bool HalfGridSnap { get; }Property Value
bool
HasColor
Gets whether the class declares a color, or took one from a class it is based on.
public bool HasColor { get; }Property Value
bool
HasSize
Gets whether the class declares a size, or took one from a class it is based on.
public bool HasSize { get; }Property Value
bool
Helpers
Gets the helpers the class declares, in order. They are not taken from the classes it is based on.
public List<FgdHelper> Helpers { get; }Property Value
Inputs
Gets the inputs of the class.
public List<FgdInputOutput> Inputs { get; }Property Value
Maxs
Gets the largest corner of the box entities of the class are drawn as.
public Vector3 Maxs { get; }Property Value
Metadata
Gets the keys declared for the class as a whole.
public KVObject Metadata { get; }Property Value
KVObject
Mins
Gets the smallest corner of the box entities of the class are drawn as.
public Vector3 Mins { get; }Property Value
Name
Gets the name of the class.
public string Name { get; }Property Value
string
Outputs
Gets the outputs of the class.
public List<FgdInputOutput> Outputs { get; }Property Value
Tags
Gets the tags of the class.
public List<string> Tags { get; }Property Value
List<string>
Type
Gets the kind of class.
public FgdClassType Type { get; }Property Value
Variables
Gets the variables of the class. Once resolved, the ones of the classes it is based on come first.
public List<FgdVariable> Variables { get; }Property Value
Methods
FindVariable(string)
Finds a variable of the class by its name, without regard to case.
public FgdVariable? FindVariable(string name)Parameters
name string
Name of the key.
Returns
The variable, or null when the class has none of that name.

