Class FlexOp
Namespace: ValveResourceFormat.ResourceTypes.ModelFlex.FlexOps
Assembly: ValveResourceFormat.dll
Base class for flex operations.
csharp
public abstract class FlexOpInheritance
Constructors
FlexOp(float)
Initializes a new instance of the class.
csharp
protected FlexOp(float data)Parameters
data float
Properties
Data
Gets the data associated with this operation.
csharp
public float Data { get; }Property Value
Methods
Build(FlexOpCode?, int)
Builds a flex operation from an opcode and data.
csharp
public static FlexOp? Build(FlexOpCode? opCode, int data)Parameters
opCode FlexOpCode?
data int
Returns
ParseOpCode(KVObject)
Parses the a morph set stores for a flex op. Older morph sets store the ordinal, newer ones the enum name.
csharp
public static FlexOpCode? ParseOpCode(KVObject opCode)Parameters
opCode KVObject
Returns
Run(in FlexRuleContext)
Executes the flex operation.
csharp
public abstract void Run(in FlexRuleContext context)Parameters
context FlexRuleContext

