TilemapLoader class abstract
Abstract interface for loading tilemaps from various sources.
Implement this interface to support different loading strategies:
- Asset bundle (Flutter assets)
- File system
- Network/HTTP
- In-memory
Example:
final loader = AssetTilemapLoader(assetPrefix: 'assets/maps/');
final tilemap = await loader.load(
'level1.tmx',
(path, width, height) async => await loadTexture(path),
);
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
load(
String path, TextureLoader textureLoader) → Future< LoadedTilemap> - Loads a tilemap from the given path.
-
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