RuntimeInsertion
Fata that needs to be hold with a scope when a beat is being inserted within a choice
Instance Members
id: IntThe insertion id, a unique integer value among all insertions.
origin: NInsertionThe original node causing that insertion
options: Array<ChoiceOption>The inserted choice options, or null if nothing is inserted yet
stack: Array<RuntimeScope>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: IntThe 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 |