Lifespan¶
Qualified name: algan.animation\_timeline.timeline.Lifespan
- class Lifespan[source]¶
Bases:
objectThe [spawn, despawn) interval of one mob on its Scene timeline.
startandendare zero-argument callables returning the spawn / despawn timestamp in seconds, or -1 when the mob has not (yet) spawned / despawned. They are stored as callables (TimelineEvents) because animation contexts rescale timestamps retroactively, so the final value is only known at render time.Lifespans are owned by the
AnimationTimeline(AnimationTimeline.get_lifespan()), keyed by mob id.Methods
Attributes
endstart