Table of Contents

Class WangColor

Namespace
DotTiled
Assembly
DotTiled.dll

Represents a Wang color in a Wang set.

public class WangColor : HasPropertiesBase, IHasProperties
Inheritance
WangColor
Implements
Inherited Members

Properties

Class

The class of the Wang color.

public string Class { get; set; }

Property Value

string

Color

The color of the Wang color.

public required Color Color { get; set; }

Property Value

Color

Name

The name of this color.

public required string Name { get; set; }

Property Value

string

Probability

The relative probability that this color is chosen over others in case of multiple options.

public float Probability { get; set; }

Property Value

float

Properties

The Wang color properties.

public List<IProperty> Properties { get; set; }

Property Value

List<IProperty>

Tile

The tile ID of the tile representing this color.

public required int Tile { get; set; }

Property Value

int

Methods

GetProperties()

The properties attached to the object.

public override IList<IProperty> GetProperties()

Returns

IList<IProperty>