Class AnimationCache
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public static class AnimationCache
- Inheritance
-
AnimationCache
- Inherited Members
Methods
ClearCache(ICoreAPI)
Clears the animation cache.
public static void ClearCache(ICoreAPI api)
Parameters
apiICoreAPI
ClearCache(ICoreAPI, Entity)
Clears the animation cache.
public static void ClearCache(ICoreAPI api, Entity entity)
Parameters
InitManager(ICoreAPI, IAnimationManager, Entity, Shape, RunningAnimation[], bool, params string[])
Initializes the cache to the Animation Manager then spits it back out.
[Obsolete("Use manager.LoadAnimator() or manager.LoadAnimatorCached() instead")]
public static IAnimationManager InitManager(ICoreAPI api, IAnimationManager manager, Entity entity, Shape entityShape, RunningAnimation[] copyOverAnims, bool requirePosesOnServer, params string[] requireJointsForElements)
Parameters
apiICoreAPImanagerIAnimationManagerentityEntityentityShapeShapecopyOverAnimsRunningAnimation[]requirePosesOnServerboolrequireJointsForElementsstring[]
Returns
LoadAnimatorCached(IAnimationManager, ICoreAPI, Entity, Shape, RunningAnimation[], bool, params string[])
public static IAnimationManager LoadAnimatorCached(this IAnimationManager manager, ICoreAPI api, Entity entity, Shape entityShape, RunningAnimation[] copyOverAnims, bool requirePosesOnServer, params string[] requireJointsForElements)
Parameters
managerIAnimationManagerapiICoreAPIentityEntityentityShapeShapecopyOverAnimsRunningAnimation[]requirePosesOnServerboolrequireJointsForElementsstring[]