makeLifetimeSystem
makeLifetimeSystem<
TCtx>(options?):SchedulableSystem<TCtx>
Defined in: src/modules/lifetime/lifetime.ts:44
A SchedulableSystem that counts each entity’s Lifetime timer down by the
tick’s dtMs and, when one reaches zero, queues the entity for destruction —
or hands it to onExpire instead, so a game can play a death effect before
removing it.
Type Parameters
Section titled “Type Parameters”TCtx extends LifetimeTickCtx
Parameters
Section titled “Parameters”options?
Section titled “options?”LifetimeSystemOptions<TCtx> = {}
Returns
Section titled “Returns”SchedulableSystem<TCtx>