Skip to main content

Timeline.Entry

A private class in Alta.Timing.Runtime, Alta.Timing. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

A one-shot scheduled callback in a Timeline priority queue, ordered by target time. RepeatableEntry extends it to reschedule itself.

Constructors​

MemberWhat it is
Entry(Action callback)Creates a Timeline.Entry from callback.

Fields​

MemberWhat it is
Action callbackAction run when the entry fires. Null once released.
TimeSpan targetTimeTimeline time the entry fires at.

Properties​

2 private and internal properties
MemberWhat it is
private bool Alta.Timing.Timeline.IEntry.IsActive { get; }True until the entry is released, as long as it still has a callback.
private TimeSpan Alta.Timing.Timeline.IEntry.Time { get; }The timeline time the entry fires at.

Methods​

MemberWhat it is
virtual bool CheckEntryReuse(Timeline timeline)Called after the entry fires. Returns false so the timeline releases it; repeatable entries requeue instead.
static Timeline.Entry Get(Action callback, TimeSpan time)Makes a new entry for the callback at the given time.
virtual void Release()Clears the callback, which marks the entry inactive.

Used in​

Members of other types that take, return or hold a Entry: