StageComponent class abstract

Base class for reusable scene object behavior.

Components are attached to a StageObject, receive update ticks from a StageScene, and can clean themselves up on detach. Concrete components can bridge rendering, physics, input, animation, audio, or game-specific logic.

Implementers

Constructors

StageComponent()

Properties

hashCode int
The hash code for this object.
no setterinherited
isAttached bool
Whether this component is attached to an object.
no setter
object StageObject?
Object this component is currently attached to, if any.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachTo(StageObject object) → void
detach() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAttach(StageObject object) → void
Called after the component is attached to object.
onDetach() → void
Called before the component is removed or its object is disposed.
toString() String
A string representation of this object.
inherited
update(double deltaSeconds) → void
Called once per scene update.

Operators

operator ==(Object other) bool
The equality operator.
inherited