TiledMap constructor
TiledMap({
- required int width,
- required int height,
- required int tileWidth,
- required int tileHeight,
- TileMapType type = TileMapType.map,
- String version = '1.0',
- String? tiledVersion,
- bool infinite = false,
- List<
Tileset> tilesets = const [], - List<
Layer> layers = const [], - String? backgroundColorHex,
- Color? backgroundColor,
- int compressionLevel = -1,
- int? hexSideLength,
- int? nextLayerId,
- int? nextObjectId,
- MapOrientation? orientation,
- RenderOrder renderOrder = RenderOrder.rightDown,
- StaggerAxis? staggerAxis,
- StaggerIndex? staggerIndex,
- List<
EditorSetting> editorSettings = const [], - CustomProperties properties = CustomProperties.empty,
Implementation
TiledMap({
required this.width,
required this.height,
required this.tileWidth,
required this.tileHeight,
this.type = TileMapType.map,
this.version = '1.0',
this.tiledVersion,
this.infinite = false,
this.tilesets = const [],
this.layers = const [],
this.backgroundColorHex,
this.backgroundColor,
this.compressionLevel = -1,
this.hexSideLength,
this.nextLayerId,
this.nextObjectId,
this.orientation,
this.renderOrder = RenderOrder.rightDown,
this.staggerAxis,
this.staggerIndex,
this.editorSettings = const [],
this.properties = CustomProperties.empty,
});