FlameTsxProvider class
A implementation of TsxProvider use by RenderableTileMap.
It uses Flame.bundle
or a custom asset bundle
and has a built-in cache for the file read.
- Implemented types
Properties
- data → String
-
Parsed data for this tsx file.
final
- filename → String
-
Unique filename for the tileset to be loaded. This should match the
'source' property in the map.tmx file.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCachedSource(
) → Parser? -
Used when provider implementations cache the data. Returns the cached
data for the exernal tileset.
override
-
getSource(
String key) → Parser -
Retrieves the external tileset data given the tileset filename.
override
-
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
-
parse(
String key, [AssetBundle? bundle, String prefix = 'assets/tiles/']) → Future< FlameTsxProvider> -
Parses a file returning a
FlameTsxProvider
.override