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
api
ICoreAPI
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
api
ICoreAPImanager
IAnimationManagerentity
EntityentityShape
ShapecopyOverAnims
RunningAnimation[]requirePosesOnServer
boolrequireJointsForElements
string[]
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
manager
IAnimationManagerapi
ICoreAPIentity
EntityentityShape
ShapecopyOverAnims
RunningAnimation[]requirePosesOnServer
boolrequireJointsForElements
string[]