Class AnimationGraphLoader
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Resolves the animation clips referenced by a model's animation graphs (animgraph2).
public static class AnimationGraphLoaderInheritance
object ← AnimationGraphLoader
Methods
GetClipNames(Model, IFileLoader)
Gets the clip (.vnmclip) resource names referenced by the model's animation graphs, recursing into nested graphs. Model.GetAllAnimations(IFileLoader) loads these clips as part of the model's animation set. The returned list is de-duplicated (each clip appears once) and preserves first-seen order.
public static IReadOnlyList<string> GetClipNames(Model model, IFileLoader fileLoader)Parameters
model Model
fileLoader IFileLoader
Returns
IReadOnlyList<string>
LoadClips(IEnumerable<string>, IFileLoader)
Loads clips in parallel, each distinct name once. A clip that is missing is left out.
public static Dictionary<string, ClipAnimation> LoadClips(IEnumerable<string> clipNames, IFileLoader fileLoader)Parameters
clipNames IEnumerable<string>
Clip (.vnmclip) resource names.
fileLoader IFileLoader
Loader for the clip files, which must allow loading from several threads at once.
Returns
Dictionary<string, ClipAnimation>
The loaded clips by resource name, compared without case.

