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
walkSpeedSupplier
WalkSpeedSupplierDelegaterootPoses
List<ElementPose>animations
Animation[]rootElements
ShapeElement[]jointsById
Dictionary<int, AnimationJoint>onAnimationStoppedListener
Action<string>loadFully
bool
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
walkSpeedSupplier
WalkSpeedSupplierDelegateanimations
Animation[]rootElements
ShapeElement[]jointsById
Dictionary<int, AnimationJoint>onAnimationStoppedListener
Action<string>loadFully
bool
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
entity
EntityrootPoses
List<ElementPose>animations
Animation[]rootElements
ShapeElement[]jointsById
Dictionary<int, AnimationJoint>requirePosesOnServer
bool
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
entity
Entityanimations
Animation[]rootElements
ShapeElement[]jointsById
Dictionary<int, AnimationJoint>requirePosesOnServer
bool
Returns
LoadPosesAndAttachmentPoints(ShapeElement[], List<ElementPose>)
protected override void LoadPosesAndAttachmentPoints(ShapeElement[] elements, List<ElementPose> intoPoses)
Parameters
elements
ShapeElement[]intoPoses
List<ElementPose>