Class FlexOp
Namespace: ValveResourceFormat.ResourceTypes.ModelFlex.FlexOps
Assembly: ValveResourceFormat.dll
Base class for flex operations.
csharp
public abstract class FlexOpInheritance
Derived
FlexOpAdd, FlexOpConst, FlexOpDiv, FlexOpFetch1, FlexOpMax, FlexOpMin, FlexOpMul, FlexOpNWay, FlexOpSub
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(string, int)
Builds a flex operation from an opcode and data.
csharp
public static FlexOp? Build(string opCode, int data)Parameters
opCode string
data int
Returns
Run(in FlexRuleContext)
Executes the flex operation.
csharp
public abstract void Run(in FlexRuleContext context)Parameters
context FlexRuleContext

