TiledObject class
Component attached to entities spawned from Tiled objects.
Provides access to the object's ID, name, type, and custom properties.
Constructors
- TiledObject({required int id, String? name, String? type, required TiledProperties properties})
-
const
- TiledObject.fromData(TiledObjectData data)
-
Creates a TiledObject component from TiledObjectData.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Unique object ID from Tiled.
final
- name → String?
-
Object name (optional).
final
- properties → TiledProperties
-
Custom properties from Tiled.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String?
-
Object type/class (optional).
final
Methods
-
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