RuntimeInsertion

loreline.RuntimeInsertion (Class)

Fata that needs to be hold with a scope when a beat is being inserted within a choice

Instance Members

id: Int

The insertion id, a unique integer value among all insertions.


origin: NInsertion

The original node causing that insertion


The inserted choice options, or null if nothing is inserted yet


The call stack of this insertion, which is used to resume the execution at the correct location when a choice of it has been selected


parentPartialOptions: Array<ChoiceOption>

Snapshot of choice options collected for the parent choice BEFORE this insertion started evaluation. Used for save/restore during Phase 1 so that Phase 1 can continue without re-running earlier insertions.


parentNextOptionIndex: Int

The next option index in the parent choice after this insertion. Used together with parentPartialOptions to continue Phase 1 from the correct position after restoring.


new(id: Int, origin: NInsertion): Void
Name Type
id Int
origin NInsertion