Struct EntityInputData ​
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
What comes in with an entity I/O input: the parameter and who sent it. Source's inputdata_t.
csharp
public readonly struct EntityInputDataProperties ​
Activator ​
Gets the entity that started the I/O chain.
csharp
public BaseEntity? Activator { get; init; }Property Value ​
Caller ​
Gets the entity that fired the output.
csharp
public BaseEntity? Caller { get; init; }Property Value ​
Parameter ​
Gets the parameter passed with the input, if any.
csharp
public string? Parameter { get; init; }Property Value ​
Methods ​
Bool(bool) ​
Reads the parameter as a boolean, accepting both 1 and true.
csharp
public bool Bool(bool defaultValue = false)Parameters ​
defaultValue bool
Returns ​
Float(float) ​
Reads the parameter as a float, as Source's inputdata.value.Float() does.
csharp
public float Float(float defaultValue = 0)Parameters ​
defaultValue float
Returns ​
Int(int) ​
Reads the parameter as an integer.
csharp
public int Int(int defaultValue = 0)Parameters ​
defaultValue int
Returns ​
Vector(Vector3) ​
Reads the parameter as a vector, three numbers separated by spaces, the way a map authors one.
csharp
public Vector3 Vector(Vector3 defaultValue = default)Parameters ​
defaultValue Vector3

