Table of Contents

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

api ICoreAPI
entity Entity

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 ICoreAPI
manager IAnimationManager
entity Entity
entityShape Shape
copyOverAnims RunningAnimation[]
requirePosesOnServer bool
requireJointsForElements string[]

Returns

IAnimationManager

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 IAnimationManager
api ICoreAPI
entity Entity
entityShape Shape
copyOverAnims RunningAnimation[]
requirePosesOnServer bool
requireJointsForElements string[]

Returns

IAnimationManager