ObjectTypeConfig class
Configuration for spawning a specific object type.
Each object type can have its own collider and spawn behavior.
Constructors
- ObjectTypeConfig({bool createCollider = true, void onSpawn(EntityCommands entity, TiledObjectData object)?})
-
const
Properties
- createCollider → bool
-
Whether to create collision shapes from the object's geometry.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onSpawn → void Function(EntityCommands entity, TiledObjectData object)?
-
Callback for custom setup when this object type is spawned.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited