MapBodyComponent class
On each body a map's collision is built from: which map and layer it came from, what kind of collision, and which cells.
A collision handler asking "what did the player land on?" reads it —
the kind (hazard), the class, the cells, and through the map their
properties. Runtime only; the body is rebuilt, never saved.
Constructors
Properties
-
cells
→ List<
TileCoord> -
The cells it covers.
final
- className → String
-
The class of the tiles it was built from.
final
- componentType → Type
-
Type identifier for this component
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String
-
The collision kind's id.
final
- layerId → int
-
The layer, by its id within the map.
final
- mapEntityId → int
-
The entity carrying the
LevelMapComponent.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAttach(
EntityId entityId) → void -
Called when this component is added to an entity.
inherited
-
onDetach(
EntityId entityId) → void -
Called when this component is removed from an entity.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited