Table of Contents

Class AnimClipData

Namespace
TrinketTinker.Models
Assembly
TrinketTinker.dll

Model for additional animation

public class AnimClipData : WeightedRandData
Inheritance
AnimClipData
Inherited Members

Properties

Flip

Sprite flip to apply to this anim clip, falls back to Flip if not set.

public SpriteEffects? Flip { get; set; }

Property Value

SpriteEffects?

FrameLength

Anim clip frame length

public int FrameLength { get; set; }

Property Value

int

FrameStart

Anim clip frame start

public int FrameStart { get; set; }

Property Value

int

Interval

Anim clip interval, fall back to Interval if not set.

public double? Interval { get; set; }

Property Value

double?

LoopMode

Anim clip loop mode

public LoopMode LoopMode { get; set; }

Property Value

LoopMode

PauseMovement

If set, the companion won't move while clip plays.

public bool PauseMovement { get; set; }

Property Value

bool

RandomClips

Additional clips that may randomly be called, only valid for the top level clip.

public IReadOnlyList<AnimClipData>? RandomClips { get; set; }

Property Value

IReadOnlyList<AnimClipData>

UseExtra

If set, use TextureExtra instead of Texture.

public bool UseExtra { get; set; }

Property Value

bool

Methods

TryPickRand(Random, Farmer, out AnimClipData?)

Choose a random clip

public bool TryPickRand(Random rand, Farmer owner, out AnimClipData? clip)

Parameters

rand Random
owner Farmer
clip AnimClipData

Returns

bool