Table of Contents

Class NoAnimator

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

A NoAnimator built off of IAnimator

public class NoAnimator : IAnimator
Inheritance
NoAnimator
Implements
Inherited Members
Extension Methods

Properties

ActiveAnimationCount

The active animation count for this no animator.

public int ActiveAnimationCount { get; }

Property Value

int

Animations

Holds data over all animations. This list always contains all animations of the creature. You have to check yourself which of them are active

public RunningAnimation[] Animations { get; }

Property Value

RunningAnimation[]

CalculateMatrices

Whether or not to calculate the animation matrices, required for GetAttachmentPointPose() to deliver correct values. Default on on the client, server side only on when the creature is dead

public bool CalculateMatrices { get; set; }

Property Value

bool

Matrices

The matrices for this No-Animator

public float[] Matrices { get; }

Property Value

float[]

MaxJointId

public int MaxJointId { get; }

Property Value

int

Methods

DumpCurrentState()

public string DumpCurrentState()

Returns

string

GetAnimationState(string)

public RunningAnimation GetAnimationState(string code)

Parameters

code string

Returns

RunningAnimation

GetAttachmentPointPose(string)

Gets the attachment point for this pose.

public AttachmentPointAndPose GetAttachmentPointPose(string code)

Parameters

code string

Returns

AttachmentPointAndPose

GetPosebyName(string, StringComparison)

public ElementPose GetPosebyName(string name, StringComparison stringComparison = StringComparison.InvariantCultureIgnoreCase)

Parameters

name string
stringComparison StringComparison

Returns

ElementPose

OnFrame(Dictionary<string, AnimationMetaData>, float)

The event fired when a specified frame has been hit.

public void OnFrame(Dictionary<string, AnimationMetaData> activeAnimationsByAnimCode, float dt)

Parameters

activeAnimationsByAnimCode Dictionary<string, AnimationMetaData>
dt float

ReloadAttachmentPoints()

public void ReloadAttachmentPoints()