Table of Contents

Class AnimationKeyFrame

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
[JsonObject(MemberSerialization.OptIn)]
public class AnimationKeyFrame
Inheritance
AnimationKeyFrame
Inherited Members
Extension Methods

Fields

Elements

The elements of the keyframe.

[JsonProperty]
public Dictionary<string, AnimationKeyFrameElement> Elements

Field Value

Dictionary<string, AnimationKeyFrameElement>

Frame

The ID of the keyframe.

[JsonProperty]
public int Frame

Field Value

int

Methods

Clone()

public AnimationKeyFrame Clone()

Returns

AnimationKeyFrame

Resolve(Dictionary<string, ShapeElement>)

Resolves the keyframe animation for which elements are important.

public void Resolve(Dictionary<string, ShapeElement> allElements)

Parameters

allElements Dictionary<string, ShapeElement>

Resolve(ShapeElement[])

Resolves the keyframe animation for which elements are important.

[Obsolete("Use the overload taking a Dictionary argument instead for higher performance on large sets")]
public void Resolve(ShapeElement[] allElements)

Parameters

allElements ShapeElement[]