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
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
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
Height
Sprite height
public int Height { get; set; }
Property Value
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
NPC
Variant speaker NPC, for chatter ability. Required for Portraiture compatibility, can omit Name if set.
public string? NPC { get; set; }
Property Value
Name
Variant speaker name, for chatter ability.
public string? Name { get; set; }
Property Value
Portrait
Variant portrait content path, for chatter ability.
public string? Portrait { get; set; }
Property Value
ShadowScale
Base scale to draw shadow texture.
public float ShadowScale { get; set; }
Property Value
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
TextureExtra
Additional textures.
public string? TextureExtra { get; set; }
Property Value
TextureScale
Base scale to draw texture at.
public float TextureScale { get; set; }
Property Value
TrinketNameArguments
Display name override
public List<string>? TrinketNameArguments { get; set; }
Property Value
TrinketSpriteIndex
Sprite index of the item icon.
public int TrinketSpriteIndex { get; set; }
Property Value
Width
Sprite width
public int Width { get; set; }