Interface: NarrationQueriesInterface
Defined in: src/narration/interfaces/NarrationQueriesInterface.ts:4
Properties
alreadyCurrentStepMadeChoices
> readonly alreadyCurrentStepMadeChoices: number[] | undefined
Defined in: src/narration/interfaces/NarrationQueriesInterface.ts:15
Get the choices already made in the current step. Attention: if the choice step index is edited or the code of choice step is edited, the result will be wrong.
Returns
The choices already made in the current step. If there are no choices, it will return undefined.
isCurrentStepAlreadyOpened
> readonly isCurrentStepAlreadyOpened: boolean
Defined in: src/narration/interfaces/NarrationQueriesInterface.ts:20
Check if the current step is already completed.
Returns
True if the current step is already completed.
Methods
isLabelAlreadyCompleted()
> isLabelAlreadyCompleted(label): boolean
Defined in: src/narration/interfaces/NarrationQueriesInterface.ts:10
Check if the label is already completed.
Parameters
label
string | LabelAbstract<any, { }, number>
The label to check.
Returns
boolean
True if the label is already completed.
timesChoiceMade()
> timesChoiceMade(index): number
Defined in: src/narration/interfaces/NarrationQueriesInterface.ts:32
Get times a choice has been made in the current step.
Parameters
index
number
The index of the choice.
Returns
number
The number of times the choice has been made.
timesLabelOpened()
> timesLabelOpened(label): number
Defined in: src/narration/interfaces/NarrationQueriesInterface.ts:26
Get times a label has been opened.
Parameters
label
string
The label to check.
Returns
number
times a label has been opened.