Class ServerAnimator
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public class ServerAnimator : ClientAnimator, IAnimator
- Inheritance
-
ServerAnimator
- Implements
- Inherited Members
- Extension Methods
Constructors
ServerAnimator(WalkSpeedSupplierDelegate, List<ElementPose>, Animation[], ShapeElement[], Dictionary<int, AnimationJoint>, Action<string>, bool)
public ServerAnimator(WalkSpeedSupplierDelegate walkSpeedSupplier, List<ElementPose> rootPoses, Animation[] animations, ShapeElement[] rootElements, Dictionary<int, AnimationJoint> jointsById, Action<string> onAnimationStoppedListener = null, bool loadFully = false)
Parameters
walkSpeedSupplierWalkSpeedSupplierDelegaterootPosesList<ElementPose>animationsAnimation[]rootElementsShapeElement[]jointsByIdDictionary<int, AnimationJoint>onAnimationStoppedListenerAction<string>loadFullybool
ServerAnimator(WalkSpeedSupplierDelegate, Animation[], ShapeElement[], Dictionary<int, AnimationJoint>, Action<string>, bool)
public ServerAnimator(WalkSpeedSupplierDelegate walkSpeedSupplier, Animation[] animations, ShapeElement[] rootElements, Dictionary<int, AnimationJoint> jointsById, Action<string> onAnimationStoppedListener = null, bool loadFully = false)
Parameters
walkSpeedSupplierWalkSpeedSupplierDelegateanimationsAnimation[]rootElementsShapeElement[]jointsByIdDictionary<int, AnimationJoint>onAnimationStoppedListenerAction<string>loadFullybool
Methods
CreateForEntity(Entity, List<ElementPose>, Animation[], ShapeElement[], Dictionary<int, AnimationJoint>, bool)
public static ServerAnimator CreateForEntity(Entity entity, List<ElementPose> rootPoses, Animation[] animations, ShapeElement[] rootElements, Dictionary<int, AnimationJoint> jointsById, bool requirePosesOnServer)
Parameters
entityEntityrootPosesList<ElementPose>animationsAnimation[]rootElementsShapeElement[]jointsByIdDictionary<int, AnimationJoint>requirePosesOnServerbool
Returns
CreateForEntity(Entity, Animation[], ShapeElement[], Dictionary<int, AnimationJoint>, bool)
public static ServerAnimator CreateForEntity(Entity entity, Animation[] animations, ShapeElement[] rootElements, Dictionary<int, AnimationJoint> jointsById, bool requirePosesOnServer)
Parameters
entityEntityanimationsAnimation[]rootElementsShapeElement[]jointsByIdDictionary<int, AnimationJoint>requirePosesOnServerbool
Returns
LoadPosesAndAttachmentPoints(ShapeElement[], List<ElementPose>)
protected override void LoadPosesAndAttachmentPoints(ShapeElement[] elements, List<ElementPose> intoPoses)
Parameters
elementsShapeElement[]intoPosesList<ElementPose>