Table of Contents

Class VfxEval

Namespace
ValveResourceFormat.Serialization.VfxEval
Assembly
ValveResourceFormat.dll

Evaluates and decompiles VFX dynamic expressions.

public class VfxEval

Inheritance

Inherited Members

Constructors

VfxEval(byte[], bool, IReadOnlyList<string>?)

Initializes a new instance of the ValveResourceFormat.Serialization.VfxEval.VfxEval class.

public VfxEval(byte[] binaryBlob, bool omitReturnStatement = false, IReadOnlyList<string>? features = null)

Parameters

binaryBlob byte[]

The binary blob to parse.

omitReturnStatement bool

Whether to omit the return statement in the output.

features IReadOnlyList<string>?

The list of features.

VfxEval(byte[], IReadOnlyList<string>, bool, IReadOnlyList<string>?, Func<int, string>?)

Initializes a new instance of the ValveResourceFormat.Serialization.VfxEval.VfxEval class.

public VfxEval(byte[] binaryBlob, IReadOnlyList<string> renderAttributesUsed, bool omitReturnStatement = false, IReadOnlyList<string>? features = null, Func<int, string>? enumMapper = null)

Parameters

binaryBlob byte[]

The binary blob to parse.

renderAttributesUsed IReadOnlyList<string>

The list of render attributes used.

omitReturnStatement bool

Whether to omit the return statement in the output.

features IReadOnlyList<string>?

The list of features.

enumMapper Func<int, string>?

The enum mapper function.

Properties

DynamicExpressionBlob

Gets the original dynamic expression binary blob.

public byte[] DynamicExpressionBlob { get; }

Property Value

byte[]

DynamicExpressionResult

Gets the parsed dynamic expression result as a string.

public string DynamicExpressionResult { get; }

Property Value

string

EnumMapper

Gets the enum mapper function.

public Func<int, string>? EnumMapper { get; }

Property Value

Func<int, string>?

RenderAttributesUsed

Gets the list of render attributes used in the expression.

public IReadOnlyList<string> RenderAttributesUsed { get; }

Property Value

IReadOnlyList<string>