WangTile class
Below is Tiled's documentation about how this structure is represented on XML files:
<wangtile>
Defines a Wang tile, by referring to a tile in the tileset and associating it with a certain Wang ID.
- tileid: The tile ID.
- wangid: The Wang ID, given by a comma-separated list of indexes (starting from 1, because 0 means unset) referring to the Wang colors in the Wang set in the following order: top, top right, right, bottom right, bottom, bottom left, left, top left (since Tiled 1.5). Before Tiled 1.5, the Wang ID was saved as a 32-bit unsigned integer stored in the format 0xCECECECE (where each C is a corner color and each E is an edge color, in reverse order).
- hflip: Whether the tile is flipped horizontally (removed in Tiled 1.5).
- vflip: Whether the tile is flipped vertically (removed in Tiled 1.5).
- dflip: Whether the tile is flipped on its diagonal (removed in Tiled 1.5).
Constructors
-
WangTile.new({required int tileId, required List<
int> wangId, bool hFlip = false, bool vFlip = false, bool dFlip = false}) - WangTile.parse(Parser parser)
Properties
- dFlip ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hFlip ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tileId ↔ int
-
getter/setter pair
- vFlip ↔ bool
-
getter/setter pair
-
wangId
↔ List<
int> -
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parseWangIds(
List< int> value) → List<int>