Struct TileVisualDef
Describes the visual data required to render a tile type.
public readonly record struct TileVisualDef : IEquatable<TileVisualDef>
- Implements
- Inherited Members
Constructors
TileVisualDef(string, RectI, ColorRgba32, bool)
Describes the visual data required to render a tile type.
public TileVisualDef(string TextureKey, RectI SourceRect, ColorRgba32 Tint, bool UseVariantHorizontalStrip)
Parameters
TextureKeystringThe host-defined texture identifier to sample from.
SourceRectRectIThe source rectangle for the base tile sprite.
TintColorRgba32The multiplicative tint color applied during drawing.
UseVariantHorizontalStripboolWhether autotile variants advance horizontally across the source texture.
Properties
Default
Gets the default white-pixel visual used when no explicit tile visuals are provided.
public static TileVisualDef Default { get; }
Property Value
SourceRect
The source rectangle for the base tile sprite.
public RectI SourceRect { get; init; }
Property Value
TextureKey
The host-defined texture identifier to sample from.
public string TextureKey { get; init; }
Property Value
Tint
The multiplicative tint color applied during drawing.
public ColorRgba32 Tint { get; init; }
Property Value
UseVariantHorizontalStrip
Whether autotile variants advance horizontally across the source texture.
public bool UseVariantHorizontalStrip { get; init; }