Struct BoneMaskTaskList ​
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
public struct BoneMaskTaskListFields ​
MaxTasks ​
public const int MaxTasks = 32Field Value ​
int
Properties ​
Default ​
public static BoneMaskTaskList Default { get; }Property Value ​
HasTasks ​
public readonly bool HasTasks { get; }Property Value ​
bool
LastTaskIdx ​
public readonly sbyte LastTaskIdx { get; }Property Value ​
sbyte
Methods ​
BlendFromGeneratedMask(float, float) ​
Creates a blend from a generated mask to the current registered tasks.
public sbyte BlendFromGeneratedMask(float generatedMaskWeight, float blendWeight)Parameters ​
generatedMaskWeight float
blendWeight float
Returns ​
sbyte
BlendTo(in BoneMaskTaskList, float) ​
Blends this task list's result to the result of the supplied list.
public sbyte BlendTo(in BoneMaskTaskList taskList, float blendWeight)Parameters ​
taskList BoneMaskTaskList
blendWeight float
Returns ​
sbyte
BlendToGeneratedMask(float, float) ​
Creates a blend from the current registered tasks to a generated mask.
public sbyte BlendToGeneratedMask(float generatedMaskWeight, float blendWeight)Parameters ​
generatedMaskWeight float
blendWeight float
Returns ​
sbyte
CombineWith(in BoneMaskTaskList) ​
Combines (multiplies) the result of this task list with the result of the supplied list.
public sbyte CombineWith(in BoneMaskTaskList taskList)Parameters ​
taskList BoneMaskTaskList
Returns ​
sbyte
CopyFrom(in BoneMaskTaskList) ​
public sbyte CopyFrom(in BoneMaskTaskList other)Parameters ​
other BoneMaskTaskList
Returns ​
sbyte
EmplaceTask(byte) ​
Emplaces a skeleton bone mask reference task.
public void EmplaceTask(byte maskIndex)Parameters ​
maskIndex byte
EmplaceTask(float) ​
Emplaces a mask generate task with a uniform weight.
public void EmplaceTask(float uniformWeight)Parameters ​
uniformWeight float
GenerateBoneMask(Skeleton?, BoneMaskPool, float[]) ​
Executes the task list, writing the resulting per-bone weight into result.
public readonly void GenerateBoneMask(Skeleton? skeleton, BoneMaskPool pool, float[] result)Parameters ​
skeleton Skeleton?
pool BoneMaskPool
result float[]
Reset() ​
public void Reset()SetToBlendBetweenTaskLists(in BoneMaskTaskList, in BoneMaskTaskList, float) ​
Sets this task list to a blend between two task lists.
public sbyte SetToBlendBetweenTaskLists(in BoneMaskTaskList sourceTaskList, in BoneMaskTaskList targetTaskList, float blendWeight)Parameters ​
sourceTaskList BoneMaskTaskList
targetTaskList BoneMaskTaskList
blendWeight float
Returns ​
sbyte

