AnimateSystem class
System that updates animation players and applies sprite changes.
This system:
- Updates all AnimationPlayer components with delta time
- Updates AtlasSprite components to reflect current frame
- Updates Sprite components' source rects from atlases
Add this system to your app to enable sprite animations:
app.addSystem(AnimateSystem());
Constructors
Properties
- deltaTime ↔ double
-
Delta time in seconds since last frame.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- meta → SystemMeta
-
Metadata describing this system's data access patterns.
no setter
- runCondition → RunCondition?
-
Optional condition that determines whether this system should run.
no setter
- 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
-
run(
World world) → Future< void> - Runs the system logic.
-
shouldRun(
World world) → bool - Returns true if this system should run, based on its runCondition.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited