RemoveAfterTracker class final
Tracks component removal deadlines.
Properties
Methods
-
cancel(
Entity entity, Type type) → void - Cancels a removal deadline.
-
expiryOf(
Entity entity, Type type) → double? -
Seconds remaining until (
entity,type) is removed, ornullwhen 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.resetinterplay: 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
typefromentityafterseconds.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
World world) → RemoveAfterTracker - The world's tracker, created on first use.