Table of Contents

Class VariantData

Namespace
TrinketTinker.Models
Assembly
TrinketTinker.dll

Data for TinkerAnimSprite, holds sprite variations.

public sealed class VariantData : IVariantData
Inheritance
VariantData
Implements
Inherited Members

Properties

AltVariants

Alternate variants dict

public Dictionary<string, AltVariantData>? AltVariants { get; set; }

Property Value

Dictionary<string, AltVariantData>

AttachedTAS

Temporary animated sprite to attach to the companion, these will follow them around. DOES NOT SYNC IN MULTIPLAYER.

public List<string>? AttachedTAS { get; set; }

Property Value

List<string>

ColorMask

Draw color mask, can use color name from Microsoft.Xna.Framework.Color, hex value, or COLOR_PRISMATIC for animated prismatic effect.

public string? ColorMask { get; set; }

Property Value

string

Height

Sprite height

public int Height { get; set; }

Property Value

int

LightSource

If set, add a light with given radius. Note that the light is only visible to local player.

public LightSourceData? LightSource { get; set; }

Property Value

LightSourceData

NPC

Variant speaker NPC, for chatter ability. Required for Portraiture compatibility, can omit Name if set.

public string? NPC { get; set; }

Property Value

string

Name

Variant speaker name, for chatter ability.

public string? Name { get; set; }

Property Value

string

Portrait

Variant portrait content path, for chatter ability.

public string? Portrait { get; set; }

Property Value

string

ShadowScale

Base scale to draw shadow texture.

public float ShadowScale { get; set; }

Property Value

float

ShowBreathing

Show NPC breathing, only usable if NPC is a real NPC with standard 16x32 or smaller sprite.

public bool? ShowBreathing { get; set; }

Property Value

bool?

Texture

Variant texture content path.

public string? Texture { get; set; }

Property Value

string

TextureExtra

Additional textures.

public string? TextureExtra { get; set; }

Property Value

string

TextureScale

Base scale to draw texture at.

public float TextureScale { get; set; }

Property Value

float

TrinketNameArguments

Display name override

public List<string>? TrinketNameArguments { get; set; }

Property Value

List<string>

TrinketSpriteIndex

Sprite index of the item icon.

public int TrinketSpriteIndex { get; set; }

Property Value

int

Width

Sprite width

public int Width { get; set; }

Property Value

int