def age

bendvy-ecs-core@0.1.0.3 · change_tick.bend:65

import bendvy-ecs-core@0.1.0.3/change_tick.bend as ChangeTick
import Base

65# True elapsed age capped at Bevy's MAX_CHANGE_AGE, including multiple wraps.
66# Invalid future stamps return MAX; use not_future when distinguishing invalid
67# inputs from legitimately old data. No global storage maintenance is required.
68def age(+stamp:Tick,+this:Tick) -> U32:
69  valid_age(not_future(stamp,this),stamp,this)

Uses (4)

Used by (2)