TiledMap class

A Map that holds a collection of CombustileObjects and a Tileset.

Constructors

TiledMap({required List<CombustileObject> objects, required Tileset tileset, required Vector2 size})
A Map that holds a collection of CombustileObjects and a Tileset.

Properties

hashCode int
The hash code for this object.
no setterinherited
objects List<CombustileObject>
The CombustileObjects that are part of this map.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size → Vector2
The size of this map in tile count.
final
tileset Tileset
The Tileset that is used by this map.
final

Methods

build() Future<List<PositionComponent>>
Builds a list of PositionComponents from this map.
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

fromYaml(String yamlSource, {Images? images}) Future<TiledMap>
Creates a TiledMap from a yamlSource.