SingleObject class
A CombustileObject that uses a single tile to build the object.
- Inheritance
-
- Object
- CombustileObject
- SingleObject
Constructors
- SingleObject({required Placement placement, required Tile tile, String? id})
- A CombustileObject that uses a single tile to build the object.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The id of the object.
finalinherited
- placement → Placement
-
The placement of the object.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tile → Tile
-
The Tile that is used to build this object.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toComponent(
Tileset tileset, Vector2 parentSize) → Future< PositionComponent> -
{@template to_component}
Converts the object to a
PositionComponent.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited