Skip to content

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.

TCtx extends LifetimeTickCtx

LifetimeSystemOptions<TCtx> = {}

SchedulableSystem<TCtx>