RemoveAfterTracker class final

Tracks component removal deadlines.

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
Number of tracked deadlines.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
world World
The world whose components this tracker expires.
final

Methods

cancel(Entity entity, Type type) → void
Cancels a removal deadline.
expiryOf(Entity entity, Type type) double?
Seconds remaining until (entity, type) is removed, or null when untracked, canceled, or the entity is no longer alive.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
World.reset interplay: every tracked entity died, so drop all rows.
tick(double dt) → void
Advances deadlines and queues expired removals.
toString() String
A string representation of this object.
inherited
track(Entity entity, Type type, double seconds) → void
Removes type from entity after seconds.

Operators

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

Static Methods

of(World world) RemoveAfterTracker
The world's tracker, created on first use.