Class PathConstraint
Forces a network of tiles to connect with each other, so there is always a complete path between them. Two tiles connect along the path if:
- Both tiles are in pathTiles (if hasPathTiles set); and
- The central color of the sides of the tiles leading to each other are in pathColors (if pathColors set)
Note
This class is available only in Tessera Pro
Namespace: Tessera
Assembly: cs.temp.dll.dll
Syntax
public class PathConstraint : TesseraConstraint
Fields
hasPathColors
If set, pathColors is used to determine path tiles and sides.
Declaration
public bool hasPathColors
Field Value
Type | Description |
---|---|
Boolean |
hasPathTiles
If set, pathColors is used to determine path tiles and sides.
Declaration
public bool hasPathTiles
Field Value
Type | Description |
---|---|
Boolean |
pathColors
If hasPathColors, this set filters tiles that the path can connect through.
Declaration
public List<int> pathColors
Field Value
Type | Description |
---|---|
List<Int32> |
pathTiles
If hasPathTiles, this set filters tiles that the path can connect through.
Declaration
public List<TesseraTile> pathTiles
Field Value
Type | Description |
---|---|
List<TesseraTile> |