TiledWorldBuilder class

Constructors

TiledWorldBuilder(WorldMapReader<TiledMap> reader, {Vector2? forceTileSize, ValueChanged<Object>? onError, double sizeToUpdate = 0, Map<String, ObjectBuilder>? objectsBuilder})

Properties

countImageLayer ↔ int
getter/setter pair
countTileLayer ↔ int
getter/setter pair
forceTileSize → Vector2?
final
hashCode → int
The hash code for this object.
no setterinherited
onError → ValueChanged<Object>?
final
reader → WorldMapReader<TiledMap>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeToUpdate → double
final

Methods

build({bool onlyObjects = false}) → Future<WorldBuildData>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerObject(String name, ObjectBuilder builder) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

parseObjectTypes(String? typeOrClass) → Set<String>
Splits the Tiled class (or the legacy type) into role tokens.

Constants

ABOVE_TYPE → const String
COLLISION_TYPE → const String
Tiled class/type used to mark layers and objects as collision.
DYNAMIC_ABOVE_TYPE → const String
LAYERED_TYPE → const String
LIGHTING_OCCLUDER_TYPE → const String
Tiled class/type used to mark layers and objects as light occluders.
LIGHTING_OCCLUDER_TYPE_ALIAS → const String
Accepted alias for LIGHTING_OCCLUDER_TYPE.