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
FrameStart
Anim clip frame start
public int FrameStart { get; set; }
Property Value
Interval
Anim clip interval, fall back to Interval if not set.
public double? Interval { get; set; }
Property Value
LoopMode
Anim clip loop mode
public LoopMode LoopMode { get; set; }
Property Value
PauseMovement
If set, the companion won't move while clip plays.
public bool PauseMovement { get; set; }
Property Value
RandomClips
Additional clips that may randomly be called, only valid for the top level clip.
public IReadOnlyList<AnimClipData>? RandomClips { get; set; }
Property Value
UseExtra
If set, use TextureExtra instead of Texture.
public bool UseExtra { get; set; }
Property Value
Methods
TryPickRand(Random, Farmer, out AnimClipData?)
Choose a random clip
public bool TryPickRand(Random rand, Farmer owner, out AnimClipData? clip)
Parameters
rand
Randomowner
Farmerclip
AnimClipData