TiledOptions class

A configurable class specifically about Tiled names, classes and etc.

Constructors

TiledOptions({String groundLayerName = 'Ground', String metadataLayerName = 'Metadata', String playerSpawnClass = 'PlayerSpawn', String damageProperty = 'Damage', String platformClass = 'Platform', String slopeType = 'Slope', String slopeRightTopProperty = 'RightTop', String slopeLeftTopProperty = 'LeftTop', double? atlasMaxX, double? atlasMaxY, bool tsxPackingFilter(Tileset)?, bool useAtlas = true, Paint layerPaintFactory(double opacity)?, double atlasPackingSpacingX = 0, double atlasPackingSpacingY = 0})
const

Properties

atlasMaxX double?
The max width of the atlas texture, defaults to Flame Tiled default value when omitted.
final
atlasMaxY double?
The max height of the atlas texture, defaults to Flame Tiled default value when omitted.
final
atlasPackingSpacingX double
The horizontal spacing between tilesets in the atlas texture, defaults to 0.
final
atlasPackingSpacingY double
The vertical between tilesets in the atlas texture, defaults to 0.
final
damageProperty String
Which property name represents damage, defaults to "Damage".
final
groundLayerName String
Which layer name should be used for the player, defaults to "Ground".
final
hashCode int
The hash code for this object.
no setterinherited
layerPaintFactory → (Paint Function(double opacity)?)
A function that allows the developer to customize the paint used to render tile maps
final
metadataLayerName String
Which layer name should be used for the metadata, defaults to "Metadata".
final
platformClass String
Which class name represents platform objects, defaults to "Platform".
final
playerSpawnClass String
Which class name should be used for the player spawn point, defaults to "PlayerSpawn".
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slopeLeftTopProperty String
Which property name represents the slope right bottom, defaults to "LeftTop".
final
slopeRightTopProperty String
Which property name represents the slope left bottom, defaults to "RightTop".
final
slopeType String
Which property name represents the slope type, defaults to "Slope".
final
tsxPackingFilter → (bool Function(Tileset)?)
A filter that allows you to filter which tilesets should be packed into Flame Tiled Texture Atlas.
final
useAtlas bool
A flag that indicates if Flame Tiled should render the map using Canvas.drawAtlas instead of Canvas.drawImageRect.
final

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