Class VfxRule
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
Represents a constraint rule for shader combos.
csharp
public class VfxRule : ShaderDataBlockInheritance
object ← ShaderDataBlock ← VfxRule
Inherited Members
ShaderDataBlock.Start, ShaderDataBlock.ReadStringWithMaxLength(BinaryReader, int)
Constructors
VfxRule(KVObject, int)
Initializes a new instance from data.
csharp
public VfxRule(KVObject data, int index)Parameters
data KVObject
index int
VfxRule(BinaryReader, int)
Initializes a new instance from a binary reader.
csharp
public VfxRule(BinaryReader datareader, int index)Parameters
datareader BinaryReader
index int
Properties
ArgIndices
Gets the combo or feature index of each rule argument.
csharp
public int[] ArgIndices { get; }Property Value
int[]
ArgTypes
Gets the type of each rule argument.
csharp
public VfxRuleType[] ArgTypes { get; }Property Value
ArgValues
Gets the value of each rule argument.
csharp
public int[] ArgValues { get; }Property Value
int[]
ErrorString
Gets the error message shown when the rule is violated.
csharp
public string ErrorString { get; }Property Value
ExtraRuleData
Gets extra rule data.
csharp
public int[] ExtraRuleData { get; }Property Value
int[]
Index
Gets the index in the owning array.
csharp
public int Index { get; }Property Value
RuleMethod
Gets the rule method.
csharp
public VfxRuleMethod RuleMethod { get; }Property Value
RuleType
Gets the rule type.
csharp
public VfxRuleType RuleType { get; }
