Tileset class
Below is Tiled's documentation about how this structure is represented on XML files:
Constructors
-
Tileset({int? firstGid, String? source, String? name, int? tileWidth, int? tileHeight, int spacing = 0, int margin = 0, int? tileCount, int? columns, ObjectAlignment objectAlignment = ObjectAlignment.unspecified, List<
Tile> tiles = const [], TiledImage? image, TileOffset? tileOffset, Grid? grid, CustomProperties properties = CustomProperties.empty, List<Terrain> terrains = const [], List<WangSet> wangSets = const [], String version = '1.0', String? tiledVersion, String? backgroundColor, String? transparentColor, TilesetType type = TilesetType.tileset}) - Tileset.parse(Parser parser, {TsxProvider? tsx})
-
factory
Properties
- backgroundColor ↔ String?
-
getter/setter pair
- columns ↔ int?
-
getter/setter pair
- firstGid ↔ int?
-
getter/setter pair
- grid ↔ Grid?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- image ↔ TiledImage?
-
getter/setter pair
- margin ↔ int
-
getter/setter pair
- name ↔ String?
-
getter/setter pair
- objectAlignment ↔ ObjectAlignment
-
getter/setter pair
- properties ↔ CustomProperties
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source ↔ String?
-
getter/setter pair
- spacing ↔ int
-
getter/setter pair
-
terrains
↔ List<
Terrain> -
getter/setter pair
- tileCount ↔ int?
-
getter/setter pair
- tiledVersion ↔ String?
-
getter/setter pair
- tileHeight ↔ int?
-
getter/setter pair
- tileOffset ↔ TileOffset?
-
getter/setter pair
-
tiles
↔ List<
Tile> -
getter/setter pair
- tileWidth ↔ int?
-
getter/setter pair
- transparentColor ↔ String?
-
getter/setter pair
- type ↔ TilesetType
-
getter/setter pair
- version ↔ String
-
getter/setter pair
-
wangSets
↔ List<
WangSet> -
getter/setter pair
Methods
-
computeDrawRect(
Tile tile) → Rectangle< num> -
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