narrat 2.0.11 → 2.0.13-test-2

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 (132) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +120 -105
  3. package/dist/app.vue.d.ts +96 -96
  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 +14 -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/screen-layer.vue.d.ts +54 -0
  16. package/dist/components/screens.vue.d.ts +46 -46
  17. package/dist/components/utils/modal.vue.d.ts +6 -6
  18. package/dist/components/volume-controls.vue.d.ts +7 -7
  19. package/dist/config.d.ts +165 -158
  20. package/dist/constants.d.ts +1 -1
  21. package/dist/defaultConfig.d.ts +2 -2
  22. package/dist/demo/demo.d.ts +1 -1
  23. package/dist/dialog-box.vue.d.ts +37 -37
  24. package/dist/exports/config.d.ts +1 -1
  25. package/dist/exports/display.d.ts +2 -2
  26. package/dist/exports/plugins.d.ts +20 -20
  27. package/dist/img/backgrounds/rpg.png +0 -0
  28. package/dist/img/backgrounds/test-layers.gif +0 -0
  29. package/dist/img/enemies/goblin.png +0 -0
  30. package/dist/img/enemies/skeleton.png +0 -0
  31. package/dist/img/enemies/slime.png +0 -0
  32. package/dist/img/levels/cave.png +0 -0
  33. package/dist/img/levels/dungeon.png +0 -0
  34. package/dist/img/levels/dungeon_F.png +0 -0
  35. package/dist/img/levels/dungeon_FL.png +0 -0
  36. package/dist/img/levels/dungeon_FR.png +0 -0
  37. package/dist/img/levels/dungeon_FRL.png +0 -0
  38. package/dist/img/levels/dungeon_LR.png +0 -0
  39. package/dist/img/levels/grass.png +0 -0
  40. package/dist/img/players/wizard.png +0 -0
  41. package/dist/img/ui/front.png +0 -0
  42. package/dist/img/ui/left.png +0 -0
  43. package/dist/img/ui/right.png +0 -0
  44. package/dist/img/ui/start.png +0 -0
  45. package/dist/lib/lib.d.ts +15 -15
  46. package/dist/main.d.ts +5 -5
  47. package/dist/narrat.es.js +30732 -33089
  48. package/dist/narrat.es.js.map +1 -1
  49. package/dist/narrat.umd.js +92 -103
  50. package/dist/narrat.umd.js.map +1 -1
  51. package/dist/plugins/NarratPlugin.d.ts +11 -11
  52. package/dist/stores/audio-store.d.ts +12 -12
  53. package/dist/stores/dialog-store.d.ts +31 -31
  54. package/dist/stores/hud-stats-store.d.ts +22 -22
  55. package/dist/stores/inventory-store.d.ts +37 -37
  56. package/dist/stores/main-store.d.ts +347 -338
  57. package/dist/stores/notification-store.d.ts +12 -12
  58. package/dist/stores/quest-log.d.ts +39 -39
  59. package/dist/stores/rendering-store.d.ts +13 -13
  60. package/dist/stores/screens-store.d.ts +23 -22
  61. package/dist/stores/skills.d.ts +40 -36
  62. package/dist/stores/vm-store.d.ts +155 -155
  63. package/dist/{lib.css → style.css} +1 -1
  64. package/dist/types/app-types.d.ts +5 -4
  65. package/dist/types/character-types.d.ts +27 -27
  66. package/dist/types/dialog-box-types.d.ts +10 -10
  67. package/dist/types/game-save.d.ts +21 -21
  68. package/dist/types/parser.d.ts +93 -93
  69. package/dist/types/state.d.ts +3 -3
  70. package/dist/utils/ajax.d.ts +1 -1
  71. package/dist/utils/audio-loader.d.ts +13 -13
  72. package/dist/utils/characters.d.ts +5 -5
  73. package/dist/utils/data-helpers.d.ts +19 -19
  74. package/dist/utils/debounce.d.ts +14 -14
  75. package/dist/utils/error-handling.d.ts +3 -3
  76. package/dist/utils/helpers.d.ts +6 -6
  77. package/dist/utils/images-loader.d.ts +6 -6
  78. package/dist/utils/logger.d.ts +11 -11
  79. package/dist/utils/object-iterators.d.ts +8 -8
  80. package/dist/utils/promises.d.ts +1 -1
  81. package/dist/utils/randomId.d.ts +1 -1
  82. package/dist/utils/save-helpers.d.ts +3 -3
  83. package/dist/utils/skillchecks.d.ts +17 -17
  84. package/dist/utils/string-helpers.d.ts +3 -3
  85. package/dist/utils/time-helpers.d.ts +2 -2
  86. package/dist/vm/commands/arithmetic-commands.d.ts +23 -17
  87. package/dist/vm/commands/audio-commands.d.ts +8 -8
  88. package/dist/vm/commands/choice.d.ts +37 -37
  89. package/dist/vm/commands/clear_dialog.d.ts +2 -2
  90. package/dist/vm/commands/command-helpers.d.ts +3 -2
  91. package/dist/vm/commands/command-plugin.d.ts +43 -43
  92. package/dist/vm/commands/flow-commands.d.ts +17 -14
  93. package/dist/vm/commands/if.d.ts +10 -10
  94. package/dist/vm/commands/index.d.ts +2 -2
  95. package/dist/vm/commands/inventory-commands.d.ts +15 -15
  96. package/dist/vm/commands/logic-command.d.ts +42 -42
  97. package/dist/vm/commands/math-commands.d.ts +14 -0
  98. package/dist/vm/commands/notify.d.ts +4 -4
  99. package/dist/vm/commands/quest-commands.d.ts +30 -30
  100. package/dist/vm/commands/random-commands.d.ts +10 -0
  101. package/dist/vm/commands/screen-commands.d.ts +12 -8
  102. package/dist/vm/commands/set.d.ts +6 -6
  103. package/dist/vm/commands/skill-commands.d.ts +45 -33
  104. package/dist/vm/commands/stats-commands.d.ts +12 -12
  105. package/dist/vm/commands/string-commands.d.ts +9 -9
  106. package/dist/vm/commands/text-field.d.ts +7 -7
  107. package/dist/vm/commands/text.d.ts +13 -13
  108. package/dist/vm/commands/wait.d.ts +4 -4
  109. package/dist/vm/vm-helpers.d.ts +18 -16
  110. package/dist/vm/vm-parser.d.ts +19 -19
  111. package/dist/vm/vm-parser.test.d.ts +1 -1
  112. package/dist/vm/vm.d.ts +18 -19
  113. package/package.json +82 -79
  114. package/CHANGELOG.md +0 -844
  115. package/dist/.DS_Store +0 -0
  116. package/dist/audio/click.ogg +0 -0
  117. package/dist/audio/failure.ogg +0 -0
  118. package/dist/audio/game_start.ogg +0 -0
  119. package/dist/audio/success.wav +0 -0
  120. package/dist/audio.7z +0 -0
  121. package/dist/data/characters.json +0 -62
  122. package/dist/data/config.json +0 -184
  123. package/dist/data/example.rpy +0 -367
  124. package/dist/data/refactor.rpy +0 -31
  125. package/dist/fonts/OpenDyslexic.ttf.eot +0 -0
  126. package/dist/fonts/OpenDyslexic.ttf.svg +0 -2326
  127. package/dist/fonts/OpenDyslexic.ttf.woff +0 -0
  128. package/dist/img/.DS_Store +0 -0
  129. package/dist/img/characters/music_cat.jpeg +0 -0
  130. package/dist/music/.DS_Store +0 -0
  131. package/dist/music/calm.mp3 +0 -0
  132. package/dist/sounds/.DS_Store +0 -0
package/dist/config.d.ts CHANGED
@@ -1,158 +1,165 @@
1
- export declare function setConfig(conf: Config): void;
2
- export declare function getConfig(): Config;
3
- export declare function getSkillConfig(id: string): SkillData;
4
- export declare function getImageUrl(imageKeyOrUrl: string): string;
5
- export declare function getButtonConfig(button: string): ButtonConfig;
6
- export declare function getItemConfig(id: string): ItemData;
7
- export declare function getQuestConfig(questId: string): QuestData;
8
- export declare function getObjectiveConfig(quest: string, objectiveId: string): ObjectiveData;
9
- export interface AppOptions {
10
- logging: boolean;
11
- debug: boolean;
12
- }
13
- export interface Config {
14
- gameTitle: string;
15
- images: {
16
- [key: string]: string;
17
- };
18
- layout: {
19
- backgrounds: {
20
- width: number;
21
- height: number;
22
- };
23
- dialogBottomPadding: number;
24
- minTextWidth: number;
25
- mobileDialogHeightPercentage: number;
26
- verticalLayoutThreshold: number;
27
- portraits: {
28
- width: number;
29
- height: number;
30
- };
31
- };
32
- screens: {
33
- [key: string]: ScreenConfig;
34
- };
35
- buttons: {
36
- [key: string]: ButtonConfig;
37
- };
38
- skills: {
39
- [key: string]: SkillData;
40
- };
41
- skillOptions: {
42
- xpPerLevel: number;
43
- };
44
- skillChecks: {
45
- rollRange: number;
46
- skillMultiplier: number;
47
- failureChance: number;
48
- difficultyText: Array<[number, string]>;
49
- };
50
- scripts: string[];
51
- audio: {
52
- [key: string]: AudioConfig;
53
- };
54
- audioOptions: {
55
- volume: number;
56
- defaultMusic?: string;
57
- musicFadeInTime: number;
58
- musicFadeInDelay: number;
59
- musicFadeOutTime: number;
60
- };
61
- sound?: {
62
- [key: string]: AudioConfig;
63
- };
64
- music?: {
65
- [key: string]: AudioConfig;
66
- };
67
- notifications: {
68
- timeOnScreen: number;
69
- alsoPrintInDialogue?: boolean;
70
- };
71
- hudStats: {
72
- [key: string]: HudStatConfig;
73
- };
74
- items: {
75
- [key: string]: ItemData;
76
- };
77
- interactionTags: {
78
- [key: string]: {
79
- onlyInteractOutsideOfScripts: boolean;
80
- };
81
- };
82
- quests: {
83
- [key: string]: QuestData;
84
- };
85
- audioTriggers: {
86
- [key: string]: string;
87
- };
88
- menuButtons: {
89
- [key: string]: MenuButtonData;
90
- };
91
- }
92
- export interface ScreenConfig {
93
- background: string;
94
- buttons: Array<string | InlineButtonConfig>;
95
- }
96
- export interface MenuButtonData {
97
- text: string;
98
- }
99
- export interface QuestData {
100
- title: string;
101
- description: string;
102
- objectives: {
103
- [key: string]: ObjectiveData;
104
- };
105
- }
106
- export interface ObjectiveData {
107
- description: string;
108
- hidden?: boolean;
109
- }
110
- export interface ItemData {
111
- name: string;
112
- description: string;
113
- icon: string;
114
- onUse?: {
115
- action: 'jump' | 'run';
116
- label: string;
117
- };
118
- tag?: string;
119
- }
120
- export interface HudStatConfig {
121
- name: string;
122
- icon: string;
123
- startingValue: number;
124
- minValue?: number;
125
- maxValue?: number;
126
- }
127
- export interface AudioConfig {
128
- src: string;
129
- path?: string;
130
- volume?: number;
131
- rate?: number;
132
- html5?: boolean;
133
- }
134
- export interface MusicConfig extends AudioConfig {
135
- loop?: boolean;
136
- }
137
- export interface ButtonConfig {
138
- enabled: boolean;
139
- background?: string;
140
- text?: string;
141
- position: {
142
- left: number;
143
- top: number;
144
- width?: number;
145
- height?: number;
146
- };
147
- action: string;
148
- }
149
- export interface InlineButtonConfig extends ButtonConfig {
150
- id: string;
151
- }
152
- export interface SkillData {
153
- name: string;
154
- description: string;
155
- startingLevel: number;
156
- hidden?: boolean;
157
- icon: string;
158
- }
1
+ export declare function setConfig(conf: Config): void;
2
+ export declare function getConfig(): Config;
3
+ export declare function getSkillConfig(id: string): SkillData;
4
+ export declare function getImageUrl(imageKeyOrUrl: string): string;
5
+ export declare function getAssetUrl(assetPath: string): string;
6
+ export declare function getButtonConfig(button: string): ButtonConfig;
7
+ export declare function getItemConfig(id: string): ItemData;
8
+ export declare function getQuestConfig(questId: string): QuestData;
9
+ export declare function getObjectiveConfig(quest: string, objectiveId: string): ObjectiveData;
10
+ export interface AppOptions {
11
+ baseAssetsPath?: string;
12
+ logging: boolean;
13
+ debug: boolean;
14
+ }
15
+ export interface Config {
16
+ baseAssetsPath?: string;
17
+ gameTitle: string;
18
+ images: {
19
+ [key: string]: string;
20
+ };
21
+ layout: {
22
+ backgrounds: {
23
+ width: number;
24
+ height: number;
25
+ };
26
+ dialogBottomPadding: number;
27
+ minTextWidth: number;
28
+ mobileDialogHeightPercentage: number;
29
+ verticalLayoutThreshold: number;
30
+ portraits: {
31
+ width: number;
32
+ height: number;
33
+ };
34
+ };
35
+ screens: {
36
+ [key: string]: ScreenConfig;
37
+ };
38
+ buttons: {
39
+ [key: string]: ButtonConfig;
40
+ };
41
+ skills: {
42
+ [key: string]: SkillData;
43
+ };
44
+ skillOptions: {
45
+ xpPerLevel: number;
46
+ };
47
+ skillChecks: {
48
+ rollRange: number;
49
+ skillMultiplier: number;
50
+ failureChance: number;
51
+ difficultyText: Array<[number, string]>;
52
+ };
53
+ scripts: string[];
54
+ audio: {
55
+ [key: string]: AudioConfig;
56
+ };
57
+ audioOptions: {
58
+ volume: number;
59
+ defaultMusic?: string;
60
+ musicFadeInTime: number;
61
+ musicFadeInDelay: number;
62
+ musicFadeOutTime: number;
63
+ };
64
+ sound?: {
65
+ [key: string]: AudioConfig;
66
+ };
67
+ music?: {
68
+ [key: string]: AudioConfig;
69
+ };
70
+ notifications: {
71
+ timeOnScreen: number;
72
+ alsoPrintInDialogue?: boolean;
73
+ };
74
+ hudStats: {
75
+ [key: string]: HudStatConfig;
76
+ };
77
+ items: {
78
+ [key: string]: ItemData;
79
+ };
80
+ interactionTags: {
81
+ [key: string]: {
82
+ onlyInteractOutsideOfScripts: boolean;
83
+ };
84
+ };
85
+ quests: {
86
+ [key: string]: QuestData;
87
+ };
88
+ audioTriggers: {
89
+ [key: string]: string;
90
+ };
91
+ menuButtons: {
92
+ [key: string]: MenuButtonData;
93
+ };
94
+ }
95
+ export interface ScreenConfig {
96
+ background: string;
97
+ buttons: Array<string | InlineButtonConfig>;
98
+ }
99
+ export interface MenuButtonData {
100
+ text: string;
101
+ }
102
+ export interface QuestData {
103
+ title: string;
104
+ description: string;
105
+ objectives: {
106
+ [key: string]: ObjectiveData;
107
+ };
108
+ }
109
+ export interface ObjectiveData {
110
+ description: string;
111
+ hidden?: boolean;
112
+ }
113
+ export interface ItemData {
114
+ name: string;
115
+ description: string;
116
+ icon: string;
117
+ onUse?: {
118
+ action: 'jump' | 'run';
119
+ label: string;
120
+ };
121
+ tag?: string;
122
+ }
123
+ export interface HudStatConfig {
124
+ name: string;
125
+ icon: string;
126
+ startingValue: number;
127
+ minValue?: number;
128
+ maxValue?: number;
129
+ }
130
+ export interface AudioConfig {
131
+ src: string;
132
+ path?: string;
133
+ volume?: number;
134
+ rate?: number;
135
+ html5?: boolean;
136
+ }
137
+ export interface MusicConfig extends AudioConfig {
138
+ loop?: boolean;
139
+ }
140
+ export interface ButtonConfig {
141
+ enabled: boolean;
142
+ background?: string;
143
+ text?: string;
144
+ position: {
145
+ left: number;
146
+ top: number;
147
+ width?: number;
148
+ height?: number;
149
+ };
150
+ anchor?: {
151
+ x: number;
152
+ y: number;
153
+ };
154
+ action: string;
155
+ }
156
+ export interface InlineButtonConfig extends ButtonConfig {
157
+ id: string;
158
+ }
159
+ export interface SkillData {
160
+ name: string;
161
+ description: string;
162
+ startingLevel: number;
163
+ hidden?: boolean;
164
+ icon: string;
165
+ }
@@ -1 +1 @@
1
- export declare const SAVE_FILE = "gameSave";
1
+ export declare const SAVE_FILE = "gameSave";
@@ -1,2 +1,2 @@
1
- import { Config } from './config';
2
- export declare const defaultConfig: Config;
1
+ import { Config } from './config';
2
+ export declare const defaultConfig: Config;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,37 +1,37 @@
1
- import { PropType } from 'vue';
2
- import { DialogChoice } from './stores/dialog-store';
3
- import { DialogStyle } from './types/character-types';
4
- import { DialogBoxParameters } from './types/dialog-box-types';
5
- declare const _default: import("vue").DefineComponent<{
6
- options: {
7
- type: PropType<DialogBoxParameters>;
8
- required: true;
9
- };
10
- active: BooleanConstructor;
11
- }, unknown, {
12
- playerText: string;
13
- passed: boolean;
14
- }, {
15
- preText(): string;
16
- style(): DialogStyle;
17
- dialogBoxStyle(): any;
18
- titleStyle(): any;
19
- textStyle(): any;
20
- choices(): DialogChoice[] | undefined;
21
- canInteract(): boolean;
22
- paused: () => boolean;
23
- }, {
24
- chooseOption(choice: DialogChoice | number): void;
25
- dialogStyle(choice: DialogChoice): any;
26
- dialogClass(choice: DialogChoice): "strike-anim" | undefined;
27
- submitText(): void;
28
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
- options: {
30
- type: PropType<DialogBoxParameters>;
31
- required: true;
32
- };
33
- active: BooleanConstructor;
34
- }>>, {
35
- active: boolean;
36
- }>;
37
- export default _default;
1
+ import { PropType } from 'vue';
2
+ import { DialogChoice } from './stores/dialog-store';
3
+ import { DialogStyle } from './types/character-types';
4
+ import { DialogBoxParameters } from './types/dialog-box-types';
5
+ declare const _default: import("vue").DefineComponent<{
6
+ options: {
7
+ type: PropType<DialogBoxParameters>;
8
+ required: true;
9
+ };
10
+ active: BooleanConstructor;
11
+ }, unknown, {
12
+ playerText: string;
13
+ passed: boolean;
14
+ }, {
15
+ preText(): string;
16
+ style(): DialogStyle;
17
+ dialogBoxStyle(): any;
18
+ titleStyle(): any;
19
+ textStyle(): any;
20
+ choices(): DialogChoice[] | undefined;
21
+ canInteract(): boolean;
22
+ paused: () => boolean;
23
+ }, {
24
+ chooseOption(choice: DialogChoice | number): void;
25
+ dialogStyle(choice: DialogChoice): any;
26
+ dialogClass(choice: DialogChoice): "strike-anim" | undefined;
27
+ submitText(): void;
28
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
+ options: {
30
+ type: PropType<DialogBoxParameters>;
31
+ required: true;
32
+ };
33
+ active: BooleanConstructor;
34
+ }>>, {
35
+ active: boolean;
36
+ }>;
37
+ export default _default;
@@ -1 +1 @@
1
- export { getConfig } from '../config';
1
+ export { getConfig } from '../config';
@@ -1,2 +1,2 @@
1
- import { aspectRatioFit } from '../utils/helpers';
2
- export { aspectRatioFit };
1
+ import { aspectRatioFit } from '../utils/helpers';
2
+ export { aspectRatioFit };
@@ -1,20 +1,20 @@
1
- import { NarratPlugin } from '../plugins/NarratPlugin';
2
- import { CommandPlugin, generateParser } from '../vm/commands/command-plugin';
3
- import type { CommandRunner } from '../vm/commands/command-plugin';
4
- export declare type NarratLifecycleHook = <T extends [...any[]]>(...args: T) => void;
5
- declare type NarratPluginObject<T> = {
6
- onPageLoaded?: NarratLifecycleHook;
7
- onNarratSetup?: NarratLifecycleHook;
8
- onAppMounted?: NarratLifecycleHook;
9
- onAssetsLoaded?: NarratLifecycleHook;
10
- onGameSetup?: NarratLifecycleHook;
11
- onGameStart?: NarratLifecycleHook;
12
- onGameMounted?: NarratLifecycleHook;
13
- onGameUnmounted?: NarratLifecycleHook;
14
- customCommands?: CommandPlugin<T>[];
15
- };
16
- declare function registerPlugin<T>(plugin: NarratPluginObject<T>): void;
17
- declare function addCommand<T>(command: CommandPlugin<T>): void;
18
- export { CommandRunner };
19
- export { CommandPlugin, NarratPlugin, registerPlugin, addCommand, generateParser, };
20
- export type { NarratPluginObject };
1
+ import { NarratPlugin } from '../plugins/NarratPlugin';
2
+ import { CommandPlugin, generateParser } from '../vm/commands/command-plugin';
3
+ import type { CommandRunner } from '../vm/commands/command-plugin';
4
+ export declare type NarratLifecycleHook = <T extends [...any[]]>(...args: T) => void;
5
+ declare type NarratPluginObject<T> = {
6
+ onPageLoaded?: NarratLifecycleHook;
7
+ onNarratSetup?: NarratLifecycleHook;
8
+ onAppMounted?: NarratLifecycleHook;
9
+ onAssetsLoaded?: NarratLifecycleHook;
10
+ onGameSetup?: NarratLifecycleHook;
11
+ onGameStart?: NarratLifecycleHook;
12
+ onGameMounted?: NarratLifecycleHook;
13
+ onGameUnmounted?: NarratLifecycleHook;
14
+ customCommands?: CommandPlugin<T>[];
15
+ };
16
+ declare function registerPlugin<T>(plugin: NarratPluginObject<T>): void;
17
+ declare function addCommand<T>(command: CommandPlugin<T>): void;
18
+ export { CommandRunner };
19
+ export { CommandPlugin, NarratPlugin, registerPlugin, addCommand, generateParser, };
20
+ export type { NarratPluginObject };
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/lib/lib.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { App } from 'vue';
2
- import 'es6-promise/auto';
3
- import './/../sass/main.css';
4
- export * from '../main';
5
- export declare type Narrat = {
6
- app: App;
7
- };
8
- declare global {
9
- export interface Window {
10
- narrat: Narrat;
11
- }
12
- }
13
- export * from '../exports/plugins';
14
- export * from '../exports/display';
15
- export * from '../exports/config';
1
+ import { App } from 'vue';
2
+ import 'es6-promise/auto';
3
+ import './/../sass/main.css';
4
+ export * from '../main';
5
+ export declare type Narrat = {
6
+ app: App;
7
+ };
8
+ declare global {
9
+ export interface Window {
10
+ narrat: Narrat;
11
+ }
12
+ }
13
+ export * from '../exports/plugins';
14
+ export * from '../exports/display';
15
+ export * from '../exports/config';
package/dist/main.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import 'es6-promise/auto';
2
- import './/sass/main.css';
3
- import { GameConfig } from './types/app-types';
4
- import { AppOptions } from './config';
5
- export declare function startApp(config: GameConfig, options: AppOptions): Promise<void>;
1
+ import 'es6-promise/auto';
2
+ import './/sass/main.css';
3
+ import { GameConfig } from './types/app-types';
4
+ import { AppOptions } from './config';
5
+ export declare function startApp(config: GameConfig, options: AppOptions): Promise<void>;