@drincs/pixi-vn 1.8.25 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -33
- package/dist/{ContainerMemory-D2HtgX7w.d.cts → ContainerMemory-BpDgacyr.d.cts} +2 -15
- package/dist/{ContainerMemory-D2HtgX7w.d.ts → ContainerMemory-BpDgacyr.d.ts} +2 -15
- package/dist/{HistoryChoiceMenuOption-DVMD78W7.d.cts → HistoryChoiceMenuOption-BxMSXnyI.d.cts} +1 -1
- package/dist/{HistoryChoiceMenuOption-B8RfQz5H.d.ts → HistoryChoiceMenuOption-hSI4SHV-.d.ts} +1 -1
- package/dist/{HistoryGameState-CmjUtlkV.d.ts → HistoryGameState-C8ATx9K6.d.ts} +1 -1
- package/dist/{HistoryGameState-C28NcKKl.d.cts → HistoryGameState-CGfvq5iL.d.cts} +1 -1
- package/dist/{HistoryStep-G9dUn0Lf.d.cts → HistoryStep-WGB6nA4N.d.cts} +5 -0
- package/dist/{HistoryStep-G9dUn0Lf.d.ts → HistoryStep-WGB6nA4N.d.ts} +5 -0
- package/dist/{OpenedLabel-DLfFuZgk.d.ts → OpenedLabel-CmRdzTXP.d.ts} +1 -1
- package/dist/{OpenedLabel-BxfL31aQ.d.cts → OpenedLabel-Cmd675NI.d.cts} +1 -1
- package/dist/SoundGameState-C_6ZsQX6.d.cts +186 -0
- package/dist/SoundGameState-C_6ZsQX6.d.ts +186 -0
- package/dist/{StorageGameState-CtjNJpvE.d.cts → StorageGameState-C3PGrFPr.d.cts} +2 -2
- package/dist/{StorageGameState-BJy57o6K.d.ts → StorageGameState-jAexrJLj.d.ts} +2 -2
- package/dist/canvas.cjs +2 -2
- package/dist/canvas.d.cts +267 -26
- package/dist/canvas.d.ts +267 -26
- package/dist/canvas.mjs +2 -2
- package/dist/characters.cjs +1 -1
- package/dist/characters.mjs +1 -1
- package/dist/chunk-HD353M4B.mjs +1 -0
- package/dist/chunk-I7DOUH5V.mjs +1 -0
- package/dist/history.cjs +1 -1
- package/dist/history.d.cts +38 -15
- package/dist/history.d.ts +38 -15
- package/dist/history.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +152 -34
- package/dist/index.d.ts +152 -34
- package/dist/index.mjs +2 -2
- package/dist/motion.cjs +1 -1
- package/dist/motion.mjs +1 -1
- package/dist/narration.cjs +2 -2
- package/dist/narration.d.cts +196 -52
- package/dist/narration.d.ts +196 -52
- package/dist/narration.mjs +2 -2
- package/dist/pixi/browser.js +163 -152
- package/dist/sound.cjs +1 -1
- package/dist/sound.d.cts +313 -6
- package/dist/sound.d.ts +313 -6
- package/dist/sound.mjs +1 -1
- package/dist/storage.cjs +1 -1
- package/dist/storage.d.cts +50 -3
- package/dist/storage.d.ts +50 -3
- package/dist/storage.mjs +1 -1
- package/dist/vite.cjs +4 -2
- package/dist/vite.d.cts +19 -0
- package/dist/vite.d.ts +19 -0
- package/dist/vite.mjs +4 -2
- package/package.json +3 -2
- package/dist/SoundManagerInterface-Dd0b88_N.d.cts +0 -436
- package/dist/SoundManagerInterface-Dd0b88_N.d.ts +0 -436
- package/dist/chunk-GIYMPXBT.mjs +0 -1
- package/dist/chunk-IWAXXFXE.mjs +0 -1
package/dist/narration.d.cts
CHANGED
|
@@ -1,14 +1,156 @@
|
|
|
1
1
|
import { S as StorageElementType, a as StorageObjectType } from './StorageElementType-C7ETezlL.cjs';
|
|
2
|
-
import { L as LabelIdType, D as DialogueInterface, H as HistoryStep } from './HistoryStep-
|
|
3
|
-
export { P as PixivnLabelIds } from './HistoryStep-
|
|
2
|
+
import { L as LabelIdType, D as DialogueInterface, H as HistoryStep } from './HistoryStep-WGB6nA4N.cjs';
|
|
3
|
+
export { P as PixivnLabelIds } from './HistoryStep-WGB6nA4N.cjs';
|
|
4
4
|
import { ChoiceInterface as ChoiceInterface$1 } from '@drincs/pixi-vn';
|
|
5
|
-
import { L as LabelRunModeType, C as CloseType } from './HistoryChoiceMenuOption-
|
|
6
|
-
export { H as HistoryChoiceMenuOption, N as NarrationHistory } from './HistoryChoiceMenuOption-
|
|
5
|
+
import { L as LabelRunModeType, C as CloseType } from './HistoryChoiceMenuOption-BxMSXnyI.cjs';
|
|
6
|
+
export { H as HistoryChoiceMenuOption, N as NarrationHistory } from './HistoryChoiceMenuOption-BxMSXnyI.cjs';
|
|
7
7
|
import { S as StepLabelPropsType, a as StepLabelResultType, b as StepLabelType } from './StepLabelType-CN97wZzm.cjs';
|
|
8
|
-
import { O as OpenedLabel } from './OpenedLabel-
|
|
8
|
+
import { O as OpenedLabel } from './OpenedLabel-Cmd675NI.cjs';
|
|
9
9
|
import { LabelProps as LabelProps$1 } from '@drincs/pixi-vn/canvas';
|
|
10
10
|
import 'microdiff';
|
|
11
11
|
|
|
12
|
+
interface ChoiceOptionInterface extends Omit<ChoiceInterface$1, "label" | "type" | "closeCurrentLabel"> {
|
|
13
|
+
/**
|
|
14
|
+
* Label Id to be opened when the option is selected
|
|
15
|
+
*/
|
|
16
|
+
label: LabelIdType;
|
|
17
|
+
/**
|
|
18
|
+
* Type of the label to be opened
|
|
19
|
+
*/
|
|
20
|
+
type: LabelRunModeType;
|
|
21
|
+
}
|
|
22
|
+
interface CloseChoiceOptionInterface extends Omit<ChoiceInterface$1, "label" | "type" | "closeCurrentLabel"> {
|
|
23
|
+
/**
|
|
24
|
+
* Type of the label to be opened
|
|
25
|
+
*/
|
|
26
|
+
type: CloseType;
|
|
27
|
+
/**
|
|
28
|
+
* If true, the current label will be closed
|
|
29
|
+
*/
|
|
30
|
+
closeCurrentLabel?: boolean;
|
|
31
|
+
}
|
|
32
|
+
type StoredChoiceInterface = ChoiceOptionInterface | CloseChoiceOptionInterface;
|
|
33
|
+
type StoredIndexedChoiceInterface = StoredChoiceInterface & {
|
|
34
|
+
/**
|
|
35
|
+
* Is the index of the choice in the menu. It is used to identify the choice when it is selected.
|
|
36
|
+
*/
|
|
37
|
+
choiceIndex: number;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
interface NarrationChoicesInterface {
|
|
41
|
+
/**
|
|
42
|
+
* The choices to be shown in the game.
|
|
43
|
+
*/
|
|
44
|
+
get list(): StoredIndexedChoiceInterface[] | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The choices to be shown in the game.
|
|
47
|
+
* @throws {PixiError} when a choice contains functions or class instances that cannot be serialized to JSON.
|
|
48
|
+
*/
|
|
49
|
+
set list(data: StoredChoiceInterface[] | undefined);
|
|
50
|
+
/**
|
|
51
|
+
* Select a choice from the choice menu, and close the choice menu.
|
|
52
|
+
* @param item The choice item selected by the player.
|
|
53
|
+
* @param props The props to pass to the label.
|
|
54
|
+
* @returns StepLabelResultType or undefined.
|
|
55
|
+
* @throws {PixiError} when the choice type is not `"call"`, `"jump"`, or `"close"`.
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* narration.choices.select(item, {
|
|
59
|
+
* navigate: navigate,
|
|
60
|
+
* // your props
|
|
61
|
+
* ...item.props
|
|
62
|
+
* })
|
|
63
|
+
* .then(() => {
|
|
64
|
+
* // your code
|
|
65
|
+
* })
|
|
66
|
+
* .catch((e) => {
|
|
67
|
+
* // your code
|
|
68
|
+
* })
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
select<T extends {}>(item: StoredIndexedChoiceInterface, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
type InputInfo = {
|
|
75
|
+
isRequired?: boolean;
|
|
76
|
+
type?: string;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
interface NarrationInputInterface {
|
|
80
|
+
/**
|
|
81
|
+
* The input value to be inserted by the player.
|
|
82
|
+
*/
|
|
83
|
+
value: StorageElementType;
|
|
84
|
+
/**
|
|
85
|
+
* If true, the player must enter a value.
|
|
86
|
+
*/
|
|
87
|
+
readonly isRequired: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Returns the type of input prompt requested.
|
|
90
|
+
*/
|
|
91
|
+
readonly type: string | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Returns `true` if the player must enter a value.
|
|
94
|
+
* @param info The input value to be inserted by the player.
|
|
95
|
+
* @param defaultValue The default value to be inserted.
|
|
96
|
+
*/
|
|
97
|
+
request(info?: Omit<InputInfo, "isRequired">, defaultValue?: StorageElementType): void;
|
|
98
|
+
/**
|
|
99
|
+
* Remove the input request.
|
|
100
|
+
*/
|
|
101
|
+
removeRequest(): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
interface NarrationLabelsInterface {
|
|
105
|
+
/**
|
|
106
|
+
* The stack of the opened labels.
|
|
107
|
+
*/
|
|
108
|
+
readonly opened: OpenedLabel[];
|
|
109
|
+
/**
|
|
110
|
+
* currentLabel is the current label that occurred during the progression of the steps.
|
|
111
|
+
*/
|
|
112
|
+
readonly current: LabelAbstract<any> | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* Close the current label and add it to the history.
|
|
115
|
+
*/
|
|
116
|
+
closeCurrent(): void;
|
|
117
|
+
/**
|
|
118
|
+
* Close all labels and add them to the history. **Attention: This method can cause an unhandled game ending.**
|
|
119
|
+
*/
|
|
120
|
+
closeAll(): void;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
interface NarrationQueriesInterface {
|
|
124
|
+
/**
|
|
125
|
+
* Check if the label is already completed.
|
|
126
|
+
* @param label The label to check.
|
|
127
|
+
* @returns True if the label is already completed.
|
|
128
|
+
*/
|
|
129
|
+
isLabelAlreadyCompleted(label: LabelIdType | LabelAbstract<any>): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* 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.
|
|
132
|
+
* @returns The choices already made in the current step. If there are no choices, it will return undefined.
|
|
133
|
+
*/
|
|
134
|
+
readonly alreadyCurrentStepMadeChoices: number[] | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* Check if the current step is already completed.
|
|
137
|
+
* @returns True if the current step is already completed.
|
|
138
|
+
*/
|
|
139
|
+
readonly isCurrentStepAlreadyOpened: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Get times a label has been opened.
|
|
142
|
+
* @param label The label to check.
|
|
143
|
+
* @returns times a label has been opened.
|
|
144
|
+
*/
|
|
145
|
+
timesLabelOpened(label: LabelIdType): number;
|
|
146
|
+
/**
|
|
147
|
+
* Get times a choice has been made in the current step.
|
|
148
|
+
* @param index The index of the choice.
|
|
149
|
+
* @returns The number of times the choice has been made.
|
|
150
|
+
*/
|
|
151
|
+
timesChoiceMade(index: number): number;
|
|
152
|
+
}
|
|
153
|
+
|
|
12
154
|
interface NarrationManagerInterface {
|
|
13
155
|
/**
|
|
14
156
|
* Counter of execution times of the current step. Current execution is also included. Starts from 1.
|
|
@@ -43,52 +185,73 @@ interface NarrationManagerInterface {
|
|
|
43
185
|
readonly stepCounter: number;
|
|
44
186
|
/**
|
|
45
187
|
* The stack of the opened labels.
|
|
188
|
+
* @deprecated Use {@link labels}.opened instead.
|
|
46
189
|
*/
|
|
47
190
|
readonly openedLabels: OpenedLabel[];
|
|
48
191
|
/**
|
|
49
192
|
* currentLabel is the current label that occurred during the progression of the steps.
|
|
193
|
+
* @deprecated Use {@link labels}.current instead.
|
|
50
194
|
*/
|
|
51
195
|
readonly currentLabel: LabelAbstract<any> | undefined;
|
|
52
196
|
/**
|
|
53
197
|
* Close the current label and add it to the history.
|
|
54
198
|
* @returns
|
|
199
|
+
* @deprecated Use {@link labels}.closeCurrent instead.
|
|
55
200
|
*/
|
|
56
201
|
closeCurrentLabel(): void;
|
|
57
202
|
/**
|
|
58
203
|
* Close all labels and add them to the history. **Attention: This method can cause an unhandled game ending.**
|
|
204
|
+
* @deprecated Use {@link labels}.closeAll instead.
|
|
59
205
|
*/
|
|
60
206
|
closeAllLabels(): void;
|
|
61
207
|
/**
|
|
62
208
|
* Check if the label is already completed.
|
|
63
209
|
* @param label The label to check.
|
|
64
210
|
* @returns True if the label is already completed.
|
|
211
|
+
* @deprecated Use {@link queries}.isLabelAlreadyCompleted instead.
|
|
65
212
|
*/
|
|
66
213
|
isLabelAlreadyCompleted(label: LabelIdType | LabelAbstract<any>): boolean;
|
|
67
214
|
/**
|
|
68
215
|
* 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.
|
|
69
216
|
* @returns The choices already made in the current step. If there are no choices, it will return undefined.
|
|
217
|
+
* @deprecated Use {@link queries}.alreadyCurrentStepMadeChoices instead.
|
|
70
218
|
*/
|
|
71
219
|
readonly alreadyCurrentStepMadeChoices: number[] | undefined;
|
|
72
220
|
/**
|
|
73
221
|
* Check if the current step is already completed.
|
|
74
222
|
* @returns True if the current step is already completed.
|
|
223
|
+
* @deprecated Use {@link queries}.isCurrentStepAlreadyOpened instead.
|
|
75
224
|
*/
|
|
76
225
|
readonly isCurrentStepAlreadyOpened: boolean;
|
|
77
226
|
/**
|
|
78
227
|
* Get times a label has been opened
|
|
79
228
|
* @returns times a label has been opened
|
|
229
|
+
* @deprecated Use {@link queries}.timesLabelOpened instead.
|
|
80
230
|
*/
|
|
81
231
|
getTimesLabelOpened(label: LabelIdType): number;
|
|
82
232
|
/**
|
|
83
233
|
* Get times a choice has been made in the current step.
|
|
84
234
|
* @param index The index of the choice.
|
|
85
235
|
* @returns The number of times the choice has been made.
|
|
236
|
+
* @deprecated Use {@link queries}.timesChoiceMade instead.
|
|
86
237
|
*/
|
|
87
238
|
getTimesChoiceMade(index: number): number;
|
|
88
239
|
/**
|
|
89
240
|
* Save the current step to the history.
|
|
90
241
|
*/
|
|
91
242
|
addCurrentStepToHistory(): void;
|
|
243
|
+
/**
|
|
244
|
+
* Namespace for operations on the input requested to the player.
|
|
245
|
+
*/
|
|
246
|
+
readonly input: NarrationInputInterface;
|
|
247
|
+
/**
|
|
248
|
+
* Namespace for operations on the opened labels.
|
|
249
|
+
*/
|
|
250
|
+
readonly labels: NarrationLabelsInterface;
|
|
251
|
+
/**
|
|
252
|
+
* Namespace for queries about the current state of the narration.
|
|
253
|
+
*/
|
|
254
|
+
readonly queries: NarrationQueriesInterface;
|
|
92
255
|
/**
|
|
93
256
|
* Return if can go to the next step. It's `false` when:
|
|
94
257
|
* - A `step` is running
|
|
@@ -200,6 +363,7 @@ interface NarrationManagerInterface {
|
|
|
200
363
|
* // your code
|
|
201
364
|
* })
|
|
202
365
|
* ```
|
|
366
|
+
* @deprecated Use {@link choices}.select instead.
|
|
203
367
|
*/
|
|
204
368
|
selectChoice<T extends {}>(item: StoredIndexedChoiceInterface, props: StepLabelPropsType<T>): Promise<StepLabelResultType>;
|
|
205
369
|
/** Old Step Methods */
|
|
@@ -213,21 +377,11 @@ interface NarrationManagerInterface {
|
|
|
213
377
|
*/
|
|
214
378
|
set dialogue(props: DialogueInterface | string | string[] | undefined);
|
|
215
379
|
/**
|
|
216
|
-
*
|
|
217
|
-
* @example
|
|
218
|
-
* ```ts
|
|
219
|
-
* narration.choices = [
|
|
220
|
-
* newChoiceOption("Events Test", EventsTestLabel, {}),
|
|
221
|
-
* newChoiceOption("Show Image Test", ShowImageTest, { image: "imageId" }, "call"),
|
|
222
|
-
* newChoiceOption("Ticker Test", TickerTestLabel, {}),
|
|
223
|
-
* newChoiceOption("Tinting Test", TintingTestLabel, {}, "jump"),
|
|
224
|
-
* newChoiceOption("Base Canvas Element Test", BaseCanvasElementTestLabel, {})
|
|
225
|
-
* ]
|
|
226
|
-
* ```
|
|
380
|
+
* Namespace for operations on the choices to be shown in the game.
|
|
227
381
|
*/
|
|
228
|
-
get choices():
|
|
382
|
+
get choices(): NarrationChoicesInterface;
|
|
229
383
|
/**
|
|
230
|
-
*
|
|
384
|
+
* Shortcut for {@link NarrationChoicesInterface.list}.
|
|
231
385
|
* @throws {PixiError} when a choice contains functions or class instances that cannot be serialized to JSON.
|
|
232
386
|
* @example
|
|
233
387
|
* ```ts
|
|
@@ -247,24 +401,29 @@ interface NarrationManagerInterface {
|
|
|
247
401
|
dialogGlue: boolean;
|
|
248
402
|
/**
|
|
249
403
|
* The input value to be inserted by the player.
|
|
404
|
+
* @deprecated Use {@link input}.value instead.
|
|
250
405
|
*/
|
|
251
406
|
inputValue: StorageElementType;
|
|
252
407
|
/**
|
|
253
408
|
* If true, the player must enter a value.
|
|
409
|
+
* @deprecated Use {@link input}.isRequired instead.
|
|
254
410
|
*/
|
|
255
411
|
readonly isRequiredInput: boolean;
|
|
256
412
|
/**
|
|
257
413
|
* Returns the type of input prompt requested.
|
|
414
|
+
* @deprecated Use {@link input}.type instead.
|
|
258
415
|
*/
|
|
259
416
|
readonly inputType: string | undefined;
|
|
260
417
|
/**
|
|
261
418
|
* Returns `true` if the player must enter a value.
|
|
262
419
|
* @param info The input value to be inserted by the player.
|
|
263
420
|
* @param defaultValue The default value to be inserted.
|
|
421
|
+
* @deprecated Use {@link input}.request instead.
|
|
264
422
|
*/
|
|
265
423
|
requestInput(info?: Omit<InputInfo, "isRequired">, defaultValue?: StorageElementType): void;
|
|
266
424
|
/**
|
|
267
425
|
* Remove the input request.
|
|
426
|
+
* @deprecated Use {@link input}.removeRequest instead.
|
|
268
427
|
*/
|
|
269
428
|
removeInputRequest(): void;
|
|
270
429
|
/**
|
|
@@ -283,34 +442,6 @@ interface NarrationManagerInterface {
|
|
|
283
442
|
restore(data: object, lastHistoryStep: Omit<HistoryStep, "diff"> | null): Promise<void>;
|
|
284
443
|
}
|
|
285
444
|
|
|
286
|
-
interface ChoiceOptionInterface extends Omit<ChoiceInterface$1, "label" | "type" | "closeCurrentLabel"> {
|
|
287
|
-
/**
|
|
288
|
-
* Label Id to be opened when the option is selected
|
|
289
|
-
*/
|
|
290
|
-
label: LabelIdType;
|
|
291
|
-
/**
|
|
292
|
-
* Type of the label to be opened
|
|
293
|
-
*/
|
|
294
|
-
type: LabelRunModeType;
|
|
295
|
-
}
|
|
296
|
-
interface CloseChoiceOptionInterface extends Omit<ChoiceInterface$1, "label" | "type" | "closeCurrentLabel"> {
|
|
297
|
-
/**
|
|
298
|
-
* Type of the label to be opened
|
|
299
|
-
*/
|
|
300
|
-
type: CloseType;
|
|
301
|
-
/**
|
|
302
|
-
* If true, the current label will be closed
|
|
303
|
-
*/
|
|
304
|
-
closeCurrentLabel?: boolean;
|
|
305
|
-
}
|
|
306
|
-
type StoredChoiceInterface = ChoiceOptionInterface | CloseChoiceOptionInterface;
|
|
307
|
-
type StoredIndexedChoiceInterface = StoredChoiceInterface & {
|
|
308
|
-
/**
|
|
309
|
-
* Is the index of the choice in the menu. It is used to identify the choice when it is selected.
|
|
310
|
-
*/
|
|
311
|
-
choiceIndex: number;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
445
|
interface LabelProps<T, StepIdType = number> {
|
|
315
446
|
/**
|
|
316
447
|
* A function executed before each `step`.
|
|
@@ -729,13 +860,26 @@ declare class NarrationManagerStatic {
|
|
|
729
860
|
closeCurrentLabel?: boolean;
|
|
730
861
|
type: string;
|
|
731
862
|
}, defaultStart: () => Promise<StepLabelResultType>) => StepLabelResultType | Promise<StepLabelResultType>;
|
|
863
|
+
/**
|
|
864
|
+
* Is a function that will be executed every time the current label is about to close because it
|
|
865
|
+
* naturally ran out of steps - either control is returning to the label that called it, or, if
|
|
866
|
+
* there's no parent label left on the stack, the game is about to end (see {@link Game.onEnd}).
|
|
867
|
+
*
|
|
868
|
+
* By default (when this is not set), the label is closed immediately, exactly like before this
|
|
869
|
+
* hook existed. If you set it, you take control: call `defaultClose()` yourself whenever you want
|
|
870
|
+
* the label to actually close (right away, or later, e.g. from a subsequent `next()`-like action in
|
|
871
|
+
* your template). Until `defaultClose()` is called, the label stays open: it is not popped off the
|
|
872
|
+
* opened labels stack, narration does not continue into the parent label, and the game does not end
|
|
873
|
+
* even if this was the last label - this is what lets an app show the final paragraph of a story
|
|
874
|
+
* before actually ending it, instead of both happening within the same `continue()` call.
|
|
875
|
+
*
|
|
876
|
+
* This does not fire for a `jump` or a choice's `closeCurrentLabel` option - those close the
|
|
877
|
+
* current label explicitly as part of starting a new one, so {@link onLabelStarting} already
|
|
878
|
+
* covers deferring them.
|
|
879
|
+
*/
|
|
880
|
+
static onLabelClosing?: (labelId: LabelIdType, props: StepLabelPropsType, defaultClose: () => Promise<StepLabelResultType>) => StepLabelResultType | Promise<StepLabelResultType>;
|
|
732
881
|
}
|
|
733
882
|
|
|
734
|
-
type InputInfo = {
|
|
735
|
-
isRequired?: boolean;
|
|
736
|
-
type?: string;
|
|
737
|
-
};
|
|
738
|
-
|
|
739
883
|
declare const narration: NarrationManagerInterface;
|
|
740
884
|
|
|
741
|
-
export { type ChoiceInterface, type ChoiceOptionInterface, type CloseChoiceOptionInterface, DialogueInterface, HistoryStep, type InputInfo, Label, LabelAbstract, LabelIdType, type LabelProps, LabelRunModeType, type LabelSteps, type NarrationGameState, type NarrationManagerInterface, NarrationManagerStatic, OpenedLabel, RegisteredLabels, type StepLabelProps, StepLabelPropsType, type StepLabelResult, StepLabelResultType, StepLabelType, type StoredChoiceInterface, type StoredIndexedChoiceInterface, narration, newChoiceOption, newCloseChoiceOption, newLabel };
|
|
885
|
+
export { type ChoiceInterface, type ChoiceOptionInterface, type CloseChoiceOptionInterface, DialogueInterface, HistoryStep, type InputInfo, Label, LabelAbstract, LabelIdType, type LabelProps, LabelRunModeType, type LabelSteps, type NarrationChoicesInterface, type NarrationGameState, type NarrationInputInterface, type NarrationLabelsInterface, type NarrationManagerInterface, NarrationManagerStatic, type NarrationQueriesInterface, OpenedLabel, RegisteredLabels, type StepLabelProps, StepLabelPropsType, type StepLabelResult, StepLabelResultType, StepLabelType, type StoredChoiceInterface, type StoredIndexedChoiceInterface, narration, newChoiceOption, newCloseChoiceOption, newLabel };
|