narrat 2.0.6 → 2.0.7

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.
Files changed (101) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +38 -38
  3. package/dist/app.vue.d.ts +106 -106
  4. package/dist/components/MainMenu.vue.d.ts +12 -12
  5. package/dist/components/Skills.vue.d.ts +22 -22
  6. package/dist/components/debug/debug-menu.vue.d.ts +48 -48
  7. package/dist/components/dialog-picture.vue.d.ts +9 -9
  8. package/dist/components/game-dialog.vue.d.ts +65 -65
  9. package/dist/components/hud.vue.d.ts +12 -12
  10. package/dist/components/inventory-ui.vue.d.ts +30 -30
  11. package/dist/components/loading-bar.vue.d.ts +10 -10
  12. package/dist/components/menu-buttons.vue.d.ts +26 -26
  13. package/dist/components/notification-toast.vue.d.ts +6 -6
  14. package/dist/components/quests-ui.vue.d.ts +20 -20
  15. package/dist/components/utils/modal.vue.d.ts +6 -6
  16. package/dist/components/volume-controls.vue.d.ts +7 -7
  17. package/dist/config.d.ts +151 -151
  18. package/dist/constants.d.ts +1 -1
  19. package/dist/data/characters.json +62 -62
  20. package/dist/data/config.json +182 -182
  21. package/dist/data/example.rpy +360 -360
  22. package/dist/data/refactor.rpy +30 -30
  23. package/dist/defaultConfig.d.ts +2 -2
  24. package/dist/demo/demo.d.ts +1 -1
  25. package/dist/dialog-box.vue.d.ts +37 -37
  26. package/dist/exports/config.d.ts +1 -1
  27. package/dist/exports/display.d.ts +2 -2
  28. package/dist/exports/plugins.d.ts +20 -20
  29. package/dist/fonts/OpenDyslexic.ttf.svg +2326 -2326
  30. package/dist/gameloop.d.ts +3 -3
  31. package/dist/lib/lib.d.ts +15 -15
  32. package/dist/main.d.ts +5 -5
  33. package/dist/narrat.es.js +1 -1
  34. package/dist/narrat.es.js.map +1 -1
  35. package/dist/narrat.umd.js +1 -1
  36. package/dist/narrat.umd.js.map +1 -1
  37. package/dist/plugins/NarratPlugin.d.ts +11 -11
  38. package/dist/stores/audio-store.d.ts +12 -12
  39. package/dist/stores/dialog-store.d.ts +31 -31
  40. package/dist/stores/hud-stats-store.d.ts +22 -22
  41. package/dist/stores/inventory-store.d.ts +37 -37
  42. package/dist/stores/main-store.d.ts +276 -276
  43. package/dist/stores/notification-store.d.ts +12 -12
  44. package/dist/stores/quest-log.d.ts +39 -39
  45. package/dist/stores/rendering-store.d.ts +13 -13
  46. package/dist/stores/screens-store.d.ts +23 -23
  47. package/dist/stores/skills.d.ts +36 -36
  48. package/dist/stores/vm-store.d.ts +148 -148
  49. package/dist/types/app-types.d.ts +4 -4
  50. package/dist/types/character-types.d.ts +27 -27
  51. package/dist/types/dialog-box-types.d.ts +10 -10
  52. package/dist/types/game-save.d.ts +21 -21
  53. package/dist/types/parser.d.ts +92 -92
  54. package/dist/types/state.d.ts +3 -3
  55. package/dist/utils/ajax.d.ts +1 -1
  56. package/dist/utils/audio-loader.d.ts +13 -13
  57. package/dist/utils/characters.d.ts +5 -5
  58. package/dist/utils/data-helpers.d.ts +19 -19
  59. package/dist/utils/debounce.d.ts +14 -14
  60. package/dist/utils/error-handling.d.ts +3 -3
  61. package/dist/utils/helpers.d.ts +6 -6
  62. package/dist/utils/images-loader.d.ts +6 -6
  63. package/dist/utils/logger.d.ts +11 -11
  64. package/dist/utils/object-iterators.d.ts +8 -8
  65. package/dist/utils/promises.d.ts +1 -1
  66. package/dist/utils/randomId.d.ts +1 -1
  67. package/dist/utils/save-helpers.d.ts +3 -3
  68. package/dist/utils/skillchecks.d.ts +17 -17
  69. package/dist/utils/string-helpers.d.ts +3 -3
  70. package/dist/utils/time-helpers.d.ts +2 -2
  71. package/dist/vm/commands/arithmetic-commands.d.ts +17 -17
  72. package/dist/vm/commands/audio-commands.d.ts +8 -8
  73. package/dist/vm/commands/choice.d.ts +37 -37
  74. package/dist/vm/commands/clear_dialog.d.ts +2 -2
  75. package/dist/vm/commands/command-helpers.d.ts +2 -2
  76. package/dist/vm/commands/command-plugin.d.ts +30 -30
  77. package/dist/vm/commands/flow-commands.d.ts +14 -14
  78. package/dist/vm/commands/if.d.ts +10 -10
  79. package/dist/vm/commands/index.d.ts +2 -2
  80. package/dist/vm/commands/inventory-commands.d.ts +15 -15
  81. package/dist/vm/commands/logic-command.d.ts +42 -42
  82. package/dist/vm/commands/notify.d.ts +4 -4
  83. package/dist/vm/commands/quest-commands.d.ts +30 -30
  84. package/dist/vm/commands/screen-commands.d.ts +8 -8
  85. package/dist/vm/commands/set.d.ts +6 -6
  86. package/dist/vm/commands/skill-commands.d.ts +33 -33
  87. package/dist/vm/commands/stats-commands.d.ts +12 -12
  88. package/dist/vm/commands/string-commands.d.ts +9 -9
  89. package/dist/vm/commands/text-field.d.ts +7 -7
  90. package/dist/vm/commands/text.d.ts +13 -13
  91. package/dist/vm/commands/wait.d.ts +4 -4
  92. package/dist/vm/vm-helpers.d.ts +16 -16
  93. package/dist/vm/vm-parser.d.ts +19 -19
  94. package/dist/vm/vm-parser.test.d.ts +1 -1
  95. package/dist/vm/vm.d.ts +19 -19
  96. package/package.json +79 -79
  97. package/CHANGELOG.md +0 -776
  98. package/dist/.DS_Store +0 -0
  99. package/dist/img/.DS_Store +0 -0
  100. package/dist/music/.DS_Store +0 -0
  101. package/dist/sounds/.DS_Store +0 -0
@@ -1,39 +1,39 @@
1
- import { QuestData } from '../config';
2
- export interface QuestLogState {
3
- quests: {
4
- [key: string]: QuestState;
5
- };
6
- }
7
- export interface QuestState {
8
- id: string;
9
- state: 'hidden' | 'unlocked' | 'completed';
10
- ending?: string;
11
- /** Note: Objectives are an object so that it's easy to access specific objectives in game scripts.
12
- * One side effect of this is that the order objectives appear in isn't technicaclly guaranteed. */
13
- objectives: {
14
- [key: string]: ObjectiveState;
15
- };
16
- }
17
- export interface ObjectiveState {
18
- id: string;
19
- state: 'hidden' | 'unlocked' | 'completed';
20
- }
21
- export declare type QuestLogSave = QuestLogState;
22
- export declare const useQuests: import("pinia").StoreDefinition<"quests", QuestLogState, {}, {
23
- getQuest(questId: string): QuestState;
24
- getObjective(questId: string, objectiveId: string): ObjectiveState;
25
- setupQuests(quests: {
26
- [key: string]: QuestData;
27
- }): void;
28
- startQuest(questId: string): void;
29
- startObjective(questId: string, objectiveId: string): void;
30
- completeObjective(questId: string, objectiveId: string): void;
31
- completeQuest(questId: string, ending?: string): void;
32
- isQuestCompleted(questId: string): boolean;
33
- isObjectiveCompleted(questId: string, objectiveId: string): boolean;
34
- isQuestStarted(questId: string): boolean;
35
- isObjectiveStarted(questId: string, objectiveId: string): boolean;
36
- removeQuest(id: string): void;
37
- generateSaveData(): QuestLogSave;
38
- loadSaveData(data: QuestLogSave): void;
39
- }>;
1
+ import { QuestData } from '../config';
2
+ export interface QuestLogState {
3
+ quests: {
4
+ [key: string]: QuestState;
5
+ };
6
+ }
7
+ export interface QuestState {
8
+ id: string;
9
+ state: 'hidden' | 'unlocked' | 'completed';
10
+ ending?: string;
11
+ /** Note: Objectives are an object so that it's easy to access specific objectives in game scripts.
12
+ * One side effect of this is that the order objectives appear in isn't technicaclly guaranteed. */
13
+ objectives: {
14
+ [key: string]: ObjectiveState;
15
+ };
16
+ }
17
+ export interface ObjectiveState {
18
+ id: string;
19
+ state: 'hidden' | 'unlocked' | 'completed';
20
+ }
21
+ export declare type QuestLogSave = QuestLogState;
22
+ export declare const useQuests: import("pinia").StoreDefinition<"quests", QuestLogState, {}, {
23
+ getQuest(questId: string): QuestState;
24
+ getObjective(questId: string, objectiveId: string): ObjectiveState;
25
+ setupQuests(quests: {
26
+ [key: string]: QuestData;
27
+ }): void;
28
+ startQuest(questId: string): void;
29
+ startObjective(questId: string, objectiveId: string): void;
30
+ completeObjective(questId: string, objectiveId: string): void;
31
+ completeQuest(questId: string, ending?: string): void;
32
+ isQuestCompleted(questId: string): boolean;
33
+ isObjectiveCompleted(questId: string, objectiveId: string): boolean;
34
+ isQuestStarted(questId: string): boolean;
35
+ isObjectiveStarted(questId: string, objectiveId: string): boolean;
36
+ removeQuest(id: string): void;
37
+ generateSaveData(): QuestLogSave;
38
+ loadSaveData(data: QuestLogSave): void;
39
+ }>;
@@ -1,13 +1,13 @@
1
- export interface RenderingState {
2
- screenWidth: number;
3
- screenHeight: number;
4
- canvasWidth: number;
5
- canvasHeight: number;
6
- renderRatio: number;
7
- topOffset: number;
8
- leftOffset: number;
9
- layoutMode: 'horizontal' | 'vertical';
10
- }
11
- export declare const useRenderingStore: import("pinia").StoreDefinition<"rendering", RenderingState, {}, {
12
- updateScreenSize(width: number, height: number, textWidth: number): void;
13
- }>;
1
+ export interface RenderingState {
2
+ screenWidth: number;
3
+ screenHeight: number;
4
+ canvasWidth: number;
5
+ canvasHeight: number;
6
+ renderRatio: number;
7
+ topOffset: number;
8
+ leftOffset: number;
9
+ layoutMode: 'horizontal' | 'vertical';
10
+ }
11
+ export declare const useRenderingStore: import("pinia").StoreDefinition<"rendering", RenderingState, {}, {
12
+ updateScreenSize(width: number, height: number, textWidth: number): void;
13
+ }>;
@@ -1,23 +1,23 @@
1
- import { ButtonConfig } from '../config';
2
- export interface ButtonsState {
3
- [key: string]: {
4
- enabled: boolean;
5
- };
6
- }
7
- export interface ScreenState {
8
- currentScreen: string;
9
- buttons: ButtonsState;
10
- }
11
- export declare type ScreenSave = ScreenState;
12
- export declare const useScreens: import("pinia").StoreDefinition<"screens", {
13
- currentScreen: string;
14
- buttons: ButtonsState;
15
- }, {}, {
16
- setScreen(screen: string): void;
17
- setButtons(buttons: {
18
- [key: string]: ButtonConfig;
19
- }): void;
20
- changeButton(button: string, newValue: boolean): void;
21
- generateSaveData(): ScreenSave;
22
- loadSaveData(data: ScreenSave): void;
23
- }>;
1
+ import { ButtonConfig } from '../config';
2
+ export interface ButtonsState {
3
+ [key: string]: {
4
+ enabled: boolean;
5
+ };
6
+ }
7
+ export interface ScreenState {
8
+ currentScreen: string;
9
+ buttons: ButtonsState;
10
+ }
11
+ export declare type ScreenSave = ScreenState;
12
+ export declare const useScreens: import("pinia").StoreDefinition<"screens", {
13
+ currentScreen: string;
14
+ buttons: ButtonsState;
15
+ }, {}, {
16
+ setScreen(screen: string): void;
17
+ setButtons(buttons: {
18
+ [key: string]: ButtonConfig;
19
+ }): void;
20
+ changeButton(button: string, newValue: boolean): void;
21
+ generateSaveData(): ScreenSave;
22
+ loadSaveData(data: ScreenSave): void;
23
+ }>;
@@ -1,36 +1,36 @@
1
- import { SkillData } from '../config';
2
- export interface SkillState {
3
- id: string;
4
- level: number;
5
- xp: number;
6
- }
7
- export interface SkillsState {
8
- [key: string]: SkillState;
9
- }
10
- export interface SkillCheckState {
11
- happened: boolean;
12
- succeeded: boolean;
13
- hidden: boolean;
14
- }
15
- export interface Skills {
16
- skillChecks: {
17
- [key: string]: SkillCheckState;
18
- };
19
- skills: SkillsState;
20
- }
21
- export declare type SkillsSave = Skills;
22
- export declare const useSkills: import("pinia").StoreDefinition<"skills", Skills, {}, {
23
- setupSkillCheck(skillCheck: SkillCheckState, id: string): void;
24
- passSkillCheck(skillCheckId: string, hide?: boolean): void;
25
- failSkillCheck(skillCheckId: string, hide?: boolean): void;
26
- generateSaveData(): SkillsSave;
27
- getSkillCheck(id: string): SkillCheckState;
28
- createSkillCheckState(): SkillCheckState;
29
- loadSaveData(data: SkillsSave): void;
30
- setupSkills(skills: {
31
- [key: string]: SkillData;
32
- }): void;
33
- addXp(skill: string, xp: number): void;
34
- incrementSkill(skill: string, amount: number): void;
35
- levelledUp(skill: string): void;
36
- }>;
1
+ import { SkillData } from '../config';
2
+ export interface SkillState {
3
+ id: string;
4
+ level: number;
5
+ xp: number;
6
+ }
7
+ export interface SkillsState {
8
+ [key: string]: SkillState;
9
+ }
10
+ export interface SkillCheckState {
11
+ happened: boolean;
12
+ succeeded: boolean;
13
+ hidden: boolean;
14
+ }
15
+ export interface Skills {
16
+ skillChecks: {
17
+ [key: string]: SkillCheckState;
18
+ };
19
+ skills: SkillsState;
20
+ }
21
+ export declare type SkillsSave = Skills;
22
+ export declare const useSkills: import("pinia").StoreDefinition<"skills", Skills, {}, {
23
+ setupSkillCheck(skillCheck: SkillCheckState, id: string): void;
24
+ passSkillCheck(skillCheckId: string, hide?: boolean): void;
25
+ failSkillCheck(skillCheckId: string, hide?: boolean): void;
26
+ generateSaveData(): SkillsSave;
27
+ getSkillCheck(id: string): SkillCheckState;
28
+ createSkillCheckState(): SkillCheckState;
29
+ loadSaveData(data: SkillsSave): void;
30
+ setupSkills(skills: {
31
+ [key: string]: SkillData;
32
+ }): void;
33
+ addXp(skill: string, xp: number): void;
34
+ incrementSkill(skill: string, amount: number): void;
35
+ levelledUp(skill: string): void;
36
+ }>;
@@ -1,148 +1,148 @@
1
- import { Parser } from '../types/parser';
2
- export declare type AddStackOptions = Omit<SetStackOptions, 'label'> & {
3
- label?: string;
4
- };
5
- export interface MachineStack {
6
- currentIndex: number;
7
- branchData: Parser.ParsedLabel;
8
- label: string;
9
- scope: {
10
- [key: string]: any;
11
- };
12
- onComplete?: (result: any) => void;
13
- returnValue: any;
14
- }
15
- export interface SetStackOptions {
16
- currentIndex: number;
17
- branchData: Parser.ParsedLabel;
18
- label: string;
19
- scope?: {
20
- [key: string]: any;
21
- };
22
- onComplete?: (result: any) => void;
23
- args?: any[];
24
- }
25
- export interface DataState {
26
- [key: string]: any;
27
- }
28
- export interface VMState {
29
- lastChoiceCommand?: Parser.Command;
30
- stack: MachineStack[];
31
- script: Parser.ParsedScript;
32
- data: DataState;
33
- lastLabel: string;
34
- currentScope: {
35
- [key: string]: any;
36
- };
37
- }
38
- export interface VMSave {
39
- lastLabel: string;
40
- data: DataState;
41
- }
42
- export declare const useVM: import("pinia").StoreDefinition<"vm", VMState, {
43
- currentStack(state: {
44
- lastChoiceCommand?: {
45
- args: (Parser.Primitive | {
46
- code: string;
47
- command: {
48
- commandType: string;
49
- operator: string;
50
- args: (Parser.Primitive | any)[];
51
- options: Parser.DefaultArg;
52
- staticOptions: {};
53
- };
54
- fileName: string;
55
- line: number;
56
- })[];
57
- commandType: string;
58
- options: Parser.DefaultArg;
59
- code: string;
60
- staticOptions: {};
61
- operator: string;
62
- line: number;
63
- fileName: string;
64
- } | undefined;
65
- stack: {
66
- currentIndex: number;
67
- branchData: {
68
- branch: {
69
- code: string;
70
- command: {
71
- commandType: string;
72
- operator: string;
73
- args: (Parser.Primitive | any)[];
74
- options: Parser.DefaultArg;
75
- staticOptions: {};
76
- };
77
- fileName: string;
78
- line: number;
79
- }[];
80
- args?: string[] | undefined;
81
- };
82
- label: string;
83
- scope: {
84
- [key: string]: any;
85
- };
86
- onComplete?: ((result: any) => void) | undefined;
87
- returnValue: any;
88
- }[];
89
- script: Parser.ParsedScript;
90
- data: DataState;
91
- lastLabel: string;
92
- currentScope: {
93
- [key: string]: any;
94
- };
95
- } & import("pinia").PiniaCustomStateProperties<VMState>): {
96
- currentIndex: number;
97
- branchData: {
98
- branch: {
99
- code: string;
100
- command: {
101
- commandType: string;
102
- operator: string;
103
- args: (Parser.Primitive | any)[];
104
- options: Parser.DefaultArg;
105
- staticOptions: {};
106
- };
107
- fileName: string;
108
- line: number;
109
- }[];
110
- args?: string[] | undefined;
111
- };
112
- label: string;
113
- scope: {
114
- [key: string]: any;
115
- };
116
- onComplete?: ((result: any) => void) | undefined;
117
- returnValue: any;
118
- };
119
- currentLine(): Parser.ParsedExpression<Parser.DefaultArg, {}> | undefined;
120
- }, {
121
- generateSaveData(): VMSave;
122
- loadSaveData(data: VMSave): void;
123
- resetScope(): void;
124
- setReturnValue(value: any): void;
125
- removeFromScope(vars: string[]): void;
126
- addScopedVariable(key: string, value: any): void;
127
- extendScope(scope: {
128
- [key: string]: any;
129
- }): void;
130
- loadScripts(scriptPaths: string[]): Promise<void>;
131
- start(): void;
132
- setLastLabel(label: string): void;
133
- reset(): void;
134
- setScript(script: Parser.ParsedScript): void;
135
- overrideData(data: DataState): void;
136
- setStack(stack: SetStackOptions): void;
137
- stackOptionsToStack(stack: SetStackOptions): MachineStack;
138
- setData(path: string, value: any): void;
139
- addInstruction(path: string, value: any): void;
140
- addStack(newStackOptions: AddStackOptions): Promise<void>;
141
- nextLine(): Promise<any>;
142
- previousStack(): Promise<any>;
143
- finishGame(): void;
144
- runLine(): Promise<void>;
145
- runLabelFunction(label: string, ...args: any[]): Promise<unknown>;
146
- runCustomStack(stack: AddStackOptions): void;
147
- runLabel(label: string, ...args: any[]): void;
148
- }>;
1
+ import { Parser } from '../types/parser';
2
+ export declare type AddStackOptions = Omit<SetStackOptions, 'label'> & {
3
+ label?: string;
4
+ };
5
+ export interface MachineStack {
6
+ currentIndex: number;
7
+ branchData: Parser.ParsedLabel;
8
+ label: string;
9
+ scope: {
10
+ [key: string]: any;
11
+ };
12
+ onComplete?: (result: any) => void;
13
+ returnValue: any;
14
+ }
15
+ export interface SetStackOptions {
16
+ currentIndex: number;
17
+ branchData: Parser.ParsedLabel;
18
+ label: string;
19
+ scope?: {
20
+ [key: string]: any;
21
+ };
22
+ onComplete?: (result: any) => void;
23
+ args?: any[];
24
+ }
25
+ export interface DataState {
26
+ [key: string]: any;
27
+ }
28
+ export interface VMState {
29
+ lastChoiceCommand?: Parser.Command;
30
+ stack: MachineStack[];
31
+ script: Parser.ParsedScript;
32
+ data: DataState;
33
+ lastLabel: string;
34
+ currentScope: {
35
+ [key: string]: any;
36
+ };
37
+ }
38
+ export interface VMSave {
39
+ lastLabel: string;
40
+ data: DataState;
41
+ }
42
+ export declare const useVM: import("pinia").StoreDefinition<"vm", VMState, {
43
+ currentStack(state: {
44
+ lastChoiceCommand?: {
45
+ args: (Parser.Primitive | {
46
+ code: string;
47
+ command: {
48
+ commandType: string;
49
+ operator: string;
50
+ args: (Parser.Primitive | any)[];
51
+ options: Parser.DefaultArg;
52
+ staticOptions: {};
53
+ };
54
+ fileName: string;
55
+ line: number;
56
+ })[];
57
+ commandType: string;
58
+ options: Parser.DefaultArg;
59
+ code: string;
60
+ staticOptions: {};
61
+ operator: string;
62
+ line: number;
63
+ fileName: string;
64
+ } | undefined;
65
+ stack: {
66
+ currentIndex: number;
67
+ branchData: {
68
+ branch: {
69
+ code: string;
70
+ command: {
71
+ commandType: string;
72
+ operator: string;
73
+ args: (Parser.Primitive | any)[];
74
+ options: Parser.DefaultArg;
75
+ staticOptions: {};
76
+ };
77
+ fileName: string;
78
+ line: number;
79
+ }[];
80
+ args?: string[] | undefined;
81
+ };
82
+ label: string;
83
+ scope: {
84
+ [key: string]: any;
85
+ };
86
+ onComplete?: ((result: any) => void) | undefined;
87
+ returnValue: any;
88
+ }[];
89
+ script: Parser.ParsedScript;
90
+ data: DataState;
91
+ lastLabel: string;
92
+ currentScope: {
93
+ [key: string]: any;
94
+ };
95
+ } & import("pinia").PiniaCustomStateProperties<VMState>): {
96
+ currentIndex: number;
97
+ branchData: {
98
+ branch: {
99
+ code: string;
100
+ command: {
101
+ commandType: string;
102
+ operator: string;
103
+ args: (Parser.Primitive | any)[];
104
+ options: Parser.DefaultArg;
105
+ staticOptions: {};
106
+ };
107
+ fileName: string;
108
+ line: number;
109
+ }[];
110
+ args?: string[] | undefined;
111
+ };
112
+ label: string;
113
+ scope: {
114
+ [key: string]: any;
115
+ };
116
+ onComplete?: ((result: any) => void) | undefined;
117
+ returnValue: any;
118
+ };
119
+ currentLine(): Parser.ParsedExpression<Parser.DefaultArg, {}> | undefined;
120
+ }, {
121
+ generateSaveData(): VMSave;
122
+ loadSaveData(data: VMSave): void;
123
+ resetScope(): void;
124
+ setReturnValue(value: any): void;
125
+ removeFromScope(vars: string[]): void;
126
+ addScopedVariable(key: string, value: any): void;
127
+ extendScope(scope: {
128
+ [key: string]: any;
129
+ }): void;
130
+ loadScripts(scriptPaths: string[]): Promise<void>;
131
+ start(): void;
132
+ setLastLabel(label: string): void;
133
+ reset(): void;
134
+ setScript(script: Parser.ParsedScript): void;
135
+ overrideData(data: DataState): void;
136
+ setStack(stack: SetStackOptions): void;
137
+ stackOptionsToStack(stack: SetStackOptions): MachineStack;
138
+ setData(path: string, value: any): void;
139
+ addInstruction(path: string, value: any): void;
140
+ addStack(newStackOptions: AddStackOptions): Promise<void>;
141
+ nextLine(): Promise<any>;
142
+ previousStack(): Promise<any>;
143
+ finishGame(): void;
144
+ runLine(): Promise<void>;
145
+ runLabelFunction(label: string, ...args: any[]): Promise<unknown>;
146
+ runCustomStack(stack: AddStackOptions): void;
147
+ runLabel(label: string, ...args: any[]): void;
148
+ }>;
@@ -1,4 +1,4 @@
1
- export interface GameConfig {
2
- charactersPath: string;
3
- configPath: string;
4
- }
1
+ export interface GameConfig {
2
+ charactersPath: string;
3
+ configPath: string;
4
+ }
@@ -1,27 +1,27 @@
1
- export interface CharactersConfigFile {
2
- config: {
3
- imagesPath: string;
4
- };
5
- characters: {
6
- [key: string]: CharacterData;
7
- };
8
- }
9
- export interface CharacterData {
10
- sprites?: {
11
- [key: string]: string;
12
- };
13
- name: string;
14
- style?: DialogStyle;
15
- }
16
- export interface DialogStyle {
17
- color?: string;
18
- boxCss?: {
19
- [key: string]: any;
20
- };
21
- nameCss?: {
22
- [key: string]: any;
23
- };
24
- textCss?: {
25
- [key: string]: any;
26
- };
27
- }
1
+ export interface CharactersConfigFile {
2
+ config: {
3
+ imagesPath: string;
4
+ };
5
+ characters: {
6
+ [key: string]: CharacterData;
7
+ };
8
+ }
9
+ export interface CharacterData {
10
+ sprites?: {
11
+ [key: string]: string;
12
+ };
13
+ name: string;
14
+ style?: DialogStyle;
15
+ }
16
+ export interface DialogStyle {
17
+ color?: string;
18
+ boxCss?: {
19
+ [key: string]: any;
20
+ };
21
+ nameCss?: {
22
+ [key: string]: any;
23
+ };
24
+ textCss?: {
25
+ [key: string]: any;
26
+ };
27
+ }
@@ -1,10 +1,10 @@
1
- import { DialogChoice } from '../stores/dialog-store';
2
- export interface DialogBoxParameters {
3
- title: string;
4
- text: string;
5
- styleId: string;
6
- choices: DialogChoice[];
7
- textField?: boolean;
8
- old: boolean;
9
- interactive: boolean;
10
- }
1
+ import { DialogChoice } from '../stores/dialog-store';
2
+ export interface DialogBoxParameters {
3
+ title: string;
4
+ text: string;
5
+ styleId: string;
6
+ choices: DialogChoice[];
7
+ textField?: boolean;
8
+ old: boolean;
9
+ interactive: boolean;
10
+ }
@@ -1,21 +1,21 @@
1
- import { AudioSave } from '../stores/audio-store';
2
- import { DialogSave } from '../stores/dialog-store';
3
- import { HudSave } from '../stores/hud-stats-store';
4
- import { InventorySave } from '../stores/inventory-store';
5
- import { MainSaveData } from '../stores/main-store';
6
- import { QuestLogSave } from '../stores/quest-log';
7
- import { ScreenSave } from '../stores/screens-store';
8
- import { SkillsSave } from '../stores/skills';
9
- import { VMSave } from '../stores/vm-store';
10
- export declare type GameSave = {
11
- version: string;
12
- skills: SkillsSave;
13
- screen: ScreenSave;
14
- main: MainSaveData;
15
- dialog: DialogSave;
16
- vm: VMSave;
17
- audio: AudioSave;
18
- hud: HudSave;
19
- inventory: InventorySave;
20
- quests: QuestLogSave;
21
- };
1
+ import { AudioSave } from '../stores/audio-store';
2
+ import { DialogSave } from '../stores/dialog-store';
3
+ import { HudSave } from '../stores/hud-stats-store';
4
+ import { InventorySave } from '../stores/inventory-store';
5
+ import { MainSaveData } from '../stores/main-store';
6
+ import { QuestLogSave } from '../stores/quest-log';
7
+ import { ScreenSave } from '../stores/screens-store';
8
+ import { SkillsSave } from '../stores/skills';
9
+ import { VMSave } from '../stores/vm-store';
10
+ export declare type GameSave = {
11
+ version: string;
12
+ skills: SkillsSave;
13
+ screen: ScreenSave;
14
+ main: MainSaveData;
15
+ dialog: DialogSave;
16
+ vm: VMSave;
17
+ audio: AudioSave;
18
+ hud: HudSave;
19
+ inventory: InventorySave;
20
+ quests: QuestLogSave;
21
+ };