Class ServerAnimator
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public class ServerAnimator : ClientAnimator, IAnimator
- Inheritance
-
ServerAnimator
- Implements
-
- Inherited Members
-
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
WalkSpeedSupplierDelegate
rootPoses
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
WalkSpeedSupplierDelegate
animations
Animation[]
rootElements
ShapeElement[]
jointsById
Dictionary<int, AnimationJoint>
onAnimationStoppedListener
Action<string>
loadFully
bool
Fields
loadFully
Field Value
- bool
Methods
CreateForEntity(Entity, List<ElementPose>, Animation[], ShapeElement[], Dictionary<int, AnimationJoint>)
public static ServerAnimator CreateForEntity(Entity entity, List<ElementPose> rootPoses, Animation[] animations, ShapeElement[] rootElements, Dictionary<int, AnimationJoint> jointsById)
Parameters
entity
Entity
rootPoses
List<ElementPose>
animations
Animation[]
rootElements
ShapeElement[]
jointsById
Dictionary<int, AnimationJoint>
Returns
- ServerAnimator
CreateForEntity(Entity, Animation[], ShapeElement[], Dictionary<int, AnimationJoint>)
public static ServerAnimator CreateForEntity(Entity entity, Animation[] animations, ShapeElement[] rootElements, Dictionary<int, AnimationJoint> jointsById)
Parameters
entity
Entity
animations
Animation[]
rootElements
ShapeElement[]
jointsById
Dictionary<int, AnimationJoint>
Returns
- ServerAnimator
LoadPosesAndAttachmentPoints(ShapeElement[], List<ElementPose>)
protected override void LoadPosesAndAttachmentPoints(ShapeElement[] elements, List<ElementPose> intoPoses)
Parameters
elements
ShapeElement[]
intoPoses
List<ElementPose>