Table of Contents

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 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

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 Entity
rootPoses List<ElementPose>
animations Animation[]
rootElements ShapeElement[]
jointsById Dictionary<int, AnimationJoint>
requirePosesOnServer bool

Returns

ServerAnimator

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 Entity
animations Animation[]
rootElements ShapeElement[]
jointsById Dictionary<int, AnimationJoint>
requirePosesOnServer bool

Returns

ServerAnimator

LoadPosesAndAttachmentPoints(ShapeElement[], List<ElementPose>)

protected override void LoadPosesAndAttachmentPoints(ShapeElement[] elements, List<ElementPose> intoPoses)

Parameters

elements ShapeElement[]
intoPoses List<ElementPose>