narrat 3.1.2 → 3.2.0
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/dist/app.vue.d.ts +78 -78
- package/dist/components/MainMenu.vue.d.ts +4 -4
- package/dist/components/SkillsWindow.vue.d.ts +28 -28
- package/dist/components/StartMenu.vue.d.ts +2 -2
- package/dist/components/achievements/achievement-tile.vue.d.ts +15 -15
- package/dist/components/achievements/achievements-section.vue.d.ts +34 -34
- package/dist/components/achievements/achievements-ui.vue.d.ts +32 -32
- package/dist/components/auto-play/AutoPlayFeedback.vue.d.ts +2 -2
- package/dist/components/debug/debug-menu.vue.d.ts +53 -53
- package/dist/components/dialog-picture.vue.d.ts +11 -11
- package/dist/components/engine-splash/engine-splash.vue.d.ts +4 -4
- package/dist/components/game-dialog.vue.d.ts +11 -11
- package/dist/components/game-splash/game-splash.vue.d.ts +2 -2
- package/dist/components/hud.vue.d.ts +20 -20
- package/dist/components/in-game.vue.d.ts +2 -2
- package/dist/components/inventory/inventory-section.vue.d.ts +34 -34
- package/dist/components/inventory/item-details.vue.d.ts +16 -16
- package/dist/components/inventory-ui.vue.d.ts +39 -39
- package/dist/components/loading-bar.vue.d.ts +10 -10
- package/dist/components/menu-buttons.vue.d.ts +2 -2
- package/dist/components/notification-toast.vue.d.ts +2 -2
- package/dist/components/quests/QuestDetails.vue.d.ts +13 -13
- package/dist/components/quests/QuestDisplay.vue.d.ts +13 -13
- package/dist/components/quests/quests-list-section.vue.d.ts +50 -50
- package/dist/components/quests-ui.vue.d.ts +22 -22
- package/dist/components/save-slots.vue.d.ts +16 -16
- package/dist/components/saves/save-slot-ui.vue.d.ts +32 -32
- package/dist/components/screen-layer.vue.d.ts +28 -28
- package/dist/components/screen-objects/screen-object.vue.d.ts +21 -21
- package/dist/components/screens.vue.d.ts +2 -2
- package/dist/components/settings/setting-widget.vue.d.ts +15 -15
- package/dist/components/settings/settings-menu.vue.d.ts +2 -2
- package/dist/components/tabs/TabsController.vue.d.ts +28 -28
- package/dist/components/tabs/tab-selector.vue.d.ts +29 -29
- package/dist/components/tooltips/tooltips-ui.vue.d.ts +2 -2
- package/dist/components/transitions/NarratTransition.vue.d.ts +32 -32
- package/dist/components/utils/__tests__/alert-modal.spec.d.ts +1 -1
- package/dist/components/utils/__tests__/floating-tooltip.spec.d.ts +1 -1
- package/dist/components/utils/alert-modal.vue.d.ts +20 -20
- package/dist/components/utils/floating-tooltip.vue.d.ts +56 -56
- package/dist/components/utils/modal-window.vue.d.ts +18 -18
- package/dist/components/utils/yes-no.vue.d.ts +30 -30
- package/dist/components/volume-controls.vue.d.ts +18 -18
- package/dist/config/achievements-config.d.ts +58 -58
- package/dist/config/audio-config.d.ts +58 -58
- package/dist/config/buttons-config.d.ts +68 -68
- package/dist/config/characters-config.d.ts +36 -36
- package/dist/config/common-config.d.ts +81 -81
- package/dist/config/config-input.d.ts +286 -286
- package/dist/config/config-output.d.ts +280 -280
- package/dist/config/items-config.d.ts +71 -71
- package/dist/config/layout-config.d.ts +27 -27
- package/dist/config/quests-config.d.ts +48 -48
- package/dist/config/screens-config.d.ts +133 -133
- package/dist/config/settings-config.d.ts +113 -113
- package/dist/config/skillchecks-config.d.ts +73 -73
- package/dist/config/skills-config.d.ts +51 -51
- package/dist/config/tooltips-config.d.ts +16 -16
- package/dist/config.d.ts +235 -235
- package/dist/constants.d.ts +11 -11
- package/dist/demo/demo.d.ts +1 -1
- package/dist/dialog-box.vue.d.ts +34 -74
- package/dist/examples/default/scripts.d.ts +2 -2
- package/dist/examples/demo/scripts.d.ts +2 -2
- package/dist/examples/empty/scripts.d.ts +2 -2
- package/dist/examples/rpg/scripts.d.ts +2 -2
- package/dist/exports/components.d.ts +2 -2
- package/dist/exports/config.d.ts +4 -4
- package/dist/exports/display.d.ts +2 -2
- package/dist/exports/events.d.ts +1 -1
- package/dist/exports/inputs.d.ts +1 -1
- package/dist/exports/others.d.ts +1 -1
- package/dist/exports/plugins.d.ts +69 -69
- package/dist/exports/stores.d.ts +17 -17
- package/dist/exports/utils.d.ts +12 -12
- package/dist/hmr/hmr.d.ts +4 -4
- package/dist/hooks/util-hooks.d.ts +1 -1
- package/dist/inputs/Inputs.d.ts +96 -61
- package/dist/inputs/useNavigation.d.ts +30 -0
- package/dist/lib.d.ts +22 -22
- package/dist/main.d.ts +9 -9
- package/dist/menu-buttons/menu-buttons.d.ts +7 -7
- package/dist/narrat.es.js +13084 -12766
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +105 -105
- package/dist/narrat.umd.js.map +1 -1
- package/dist/plugins/NarratPlugin.d.ts +12 -12
- package/dist/stores/__tests__/achievements-store.spec.d.ts +1 -1
- package/dist/stores/__tests__/notifications-store.spec.d.ts +1 -1
- package/dist/stores/achievements-store.d.ts +27 -27
- package/dist/stores/audio-store.d.ts +57 -57
- package/dist/stores/config-store.d.ts +7 -7
- package/dist/stores/dialog-store.d.ts +35 -35
- package/dist/stores/gamepad-store.d.ts +11 -0
- package/dist/stores/hud-stats-store.d.ts +21 -21
- package/dist/stores/inputs-store.d.ts +23 -14
- package/dist/stores/inventory-store.d.ts +40 -40
- package/dist/stores/main-store.d.ts +2058 -2058
- package/dist/stores/menu-store.d.ts +46 -46
- package/dist/stores/notification-store.d.ts +22 -22
- package/dist/stores/quest-log.d.ts +38 -38
- package/dist/stores/rendering-store.d.ts +20 -20
- package/dist/stores/screen-objects-store.d.ts +82 -82
- package/dist/stores/screens-store.d.ts +36 -36
- package/dist/stores/settings-store.d.ts +93 -93
- package/dist/stores/skills.d.ts +40 -40
- package/dist/stores/start-menu-store.d.ts +7 -7
- package/dist/stores/tooltip-store.d.ts +18 -18
- package/dist/stores/vm-store.d.ts +189 -189
- package/dist/style.css +1 -1
- package/dist/tests/mock-config.d.ts +3 -3
- package/dist/tests/tests.setup.d.ts +1 -1
- package/dist/types/app-types.d.ts +14 -14
- package/dist/types/dialog-box-types.d.ts +11 -11
- package/dist/types/game-save.d.ts +51 -51
- package/dist/types/parser.d.ts +93 -93
- package/dist/types/state.d.ts +3 -3
- package/dist/utils/InputsListener.d.ts +9 -9
- package/dist/utils/Vector2.d.ts +49 -49
- package/dist/utils/ajax.d.ts +2 -2
- package/dist/utils/audio-loader.d.ts +10 -10
- package/dist/utils/characters.d.ts +4 -4
- package/dist/utils/data-helpers.d.ts +50 -50
- package/dist/utils/data-helpers.test.d.ts +1 -1
- package/dist/utils/debounce.d.ts +14 -14
- package/dist/utils/error-handling.d.ts +4 -4
- package/dist/utils/gameloop.d.ts +10 -10
- package/dist/utils/getWindow.d.ts +1 -1
- package/dist/utils/helpers.d.ts +6 -6
- package/dist/utils/images-loader.d.ts +7 -7
- package/dist/utils/logger.d.ts +11 -11
- package/dist/utils/object-iterators.d.ts +9 -9
- package/dist/utils/promises.d.ts +1 -1
- package/dist/utils/randomId.d.ts +1 -1
- package/dist/utils/save-helpers.d.ts +18 -18
- package/dist/utils/skillchecks.d.ts +26 -26
- package/dist/utils/skillchecks.test.d.ts +1 -1
- package/dist/utils/string-helpers.d.ts +5 -5
- package/dist/utils/time-helpers.d.ts +2 -2
- package/dist/utils/tooltip-utils.d.ts +2 -2
- package/dist/utils/transition.d.ts +21 -21
- package/dist/utils/type-utils.d.ts +2 -2
- package/dist/utils/typed-emitter.d.ts +18 -18
- package/dist/utils/viewport-utils.d.ts +3 -3
- package/dist/utils/vue-directives.d.ts +2 -2
- package/dist/vm/commands/achievements-commands.d.ts +6 -6
- package/dist/vm/commands/arithmetic-commands.d.ts +23 -23
- package/dist/vm/commands/array-commands.d.ts +42 -42
- package/dist/vm/commands/audio-commands.d.ts +19 -19
- package/dist/vm/commands/choice.d.ts +35 -35
- package/dist/vm/commands/clear_dialog.d.ts +2 -2
- package/dist/vm/commands/command-helpers.d.ts +3 -3
- package/dist/vm/commands/command-plugin.d.ts +43 -43
- package/dist/vm/commands/flow-commands.d.ts +28 -28
- package/dist/vm/commands/if.d.ts +15 -15
- package/dist/vm/commands/index.d.ts +2 -2
- package/dist/vm/commands/inventory-commands.d.ts +15 -15
- package/dist/vm/commands/logic-command.d.ts +42 -42
- package/dist/vm/commands/math-commands.d.ts +30 -30
- package/dist/vm/commands/notify.d.ts +8 -8
- package/dist/vm/commands/quest-commands.d.ts +30 -30
- package/dist/vm/commands/random-commands.d.ts +13 -13
- package/dist/vm/commands/screen-commands.d.ts +18 -18
- package/dist/vm/commands/set.d.ts +6 -6
- package/dist/vm/commands/settings-commands.d.ts +8 -8
- package/dist/vm/commands/skill-commands.d.ts +39 -39
- package/dist/vm/commands/sprite-commands.d.ts +19 -19
- package/dist/vm/commands/stats-commands.d.ts +12 -12
- package/dist/vm/commands/string-commands.d.ts +9 -9
- package/dist/vm/commands/text-field.d.ts +7 -7
- package/dist/vm/commands/text.d.ts +14 -14
- package/dist/vm/commands/time-commands.d.ts +16 -16
- package/dist/vm/commands/util-commands.d.ts +4 -4
- package/dist/vm/commands/wait.d.ts +4 -4
- package/dist/vm/vm-helpers.d.ts +20 -20
- package/dist/vm/vm-parser.d.ts +22 -22
- package/dist/vm/vm-parser.test.d.ts +1 -1
- package/dist/vm/vm.d.ts +26 -26
- package/package.json +1 -1
- package/dist/gamepad/gamepad.d.ts +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const jumpCommand: CommandPlugin<{
|
|
3
|
-
label: string;
|
|
4
|
-
}, {}>;
|
|
5
|
-
export declare const runLabelPlugin: CommandPlugin<{
|
|
6
|
-
label: string;
|
|
7
|
-
}, {}>;
|
|
8
|
-
export declare const defineVariablePlugin: CommandPlugin<{
|
|
9
|
-
name: string;
|
|
10
|
-
value: any;
|
|
11
|
-
}, {}>;
|
|
12
|
-
export declare const returnPlugin: CommandPlugin<{
|
|
13
|
-
value: any;
|
|
14
|
-
}, {}>;
|
|
15
|
-
export declare const logPlugin: CommandPlugin<{
|
|
16
|
-
value: any;
|
|
17
|
-
}, {}>;
|
|
18
|
-
export declare const returnMainMenuPlugin: CommandPlugin<{}, {}>;
|
|
19
|
-
export declare const savePlugin: CommandPlugin<{
|
|
20
|
-
name?: string | undefined;
|
|
21
|
-
}, {}>;
|
|
22
|
-
export declare const savePromptPlugin: CommandPlugin<{
|
|
23
|
-
name?: string | undefined;
|
|
24
|
-
}, {}>;
|
|
25
|
-
export declare const resetGlobalPlugin: CommandPlugin<{}, {}>;
|
|
26
|
-
export declare const newCommandPlugin: CommandPlugin<{
|
|
27
|
-
name?: string | undefined;
|
|
28
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const jumpCommand: CommandPlugin<{
|
|
3
|
+
label: string;
|
|
4
|
+
}, {}>;
|
|
5
|
+
export declare const runLabelPlugin: CommandPlugin<{
|
|
6
|
+
label: string;
|
|
7
|
+
}, {}>;
|
|
8
|
+
export declare const defineVariablePlugin: CommandPlugin<{
|
|
9
|
+
name: string;
|
|
10
|
+
value: any;
|
|
11
|
+
}, {}>;
|
|
12
|
+
export declare const returnPlugin: CommandPlugin<{
|
|
13
|
+
value: any;
|
|
14
|
+
}, {}>;
|
|
15
|
+
export declare const logPlugin: CommandPlugin<{
|
|
16
|
+
value: any;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export declare const returnMainMenuPlugin: CommandPlugin<{}, {}>;
|
|
19
|
+
export declare const savePlugin: CommandPlugin<{
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
}, {}>;
|
|
22
|
+
export declare const savePromptPlugin: CommandPlugin<{
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
}, {}>;
|
|
25
|
+
export declare const resetGlobalPlugin: CommandPlugin<{}, {}>;
|
|
26
|
+
export declare const newCommandPlugin: CommandPlugin<{
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
}, {}>;
|
package/dist/vm/commands/if.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
import { Parser } from '../../types/parser';
|
|
3
|
-
export interface IfOptions {
|
|
4
|
-
condition: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface ElseIfOptions {
|
|
7
|
-
branch: Parser.Branch;
|
|
8
|
-
condition: Parser.ParsedExpression;
|
|
9
|
-
}
|
|
10
|
-
export interface IfStaticOptions {
|
|
11
|
-
success: Parser.Branch;
|
|
12
|
-
elseifs: ElseIfOptions[];
|
|
13
|
-
failure?: Parser.Branch;
|
|
14
|
-
}
|
|
15
|
-
export declare const ifCommand: CommandPlugin<IfOptions, IfStaticOptions>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
import { Parser } from '../../types/parser';
|
|
3
|
+
export interface IfOptions {
|
|
4
|
+
condition: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface ElseIfOptions {
|
|
7
|
+
branch: Parser.Branch;
|
|
8
|
+
condition: Parser.ParsedExpression;
|
|
9
|
+
}
|
|
10
|
+
export interface IfStaticOptions {
|
|
11
|
+
success: Parser.Branch;
|
|
12
|
+
elseifs: ElseIfOptions[];
|
|
13
|
+
failure?: Parser.Branch;
|
|
14
|
+
}
|
|
15
|
+
export declare const ifCommand: CommandPlugin<IfOptions, IfStaticOptions>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { VM } from '../vm';
|
|
2
|
-
export declare function registerBaseCommands(vm: VM): void;
|
|
1
|
+
import { VM } from '../vm';
|
|
2
|
+
export declare function registerBaseCommands(vm: VM): void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export interface InventoryChangeArgs {
|
|
3
|
-
id: string;
|
|
4
|
-
amount: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const addItemPlugin: CommandPlugin<InventoryChangeArgs, {}>;
|
|
7
|
-
export declare const removeItemPlugin: CommandPlugin<InventoryChangeArgs, {}>;
|
|
8
|
-
export declare const hasItemPlugin: CommandPlugin<InventoryChangeArgs, {}>;
|
|
9
|
-
export declare const itemAmountPlugin: CommandPlugin<InventoryChangeArgs, {}>;
|
|
10
|
-
export declare const enableInteractionPlugin: CommandPlugin<{
|
|
11
|
-
tag: string;
|
|
12
|
-
}, {}>;
|
|
13
|
-
export declare const disableInteractionPlugin: CommandPlugin<{
|
|
14
|
-
tag: string;
|
|
15
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export interface InventoryChangeArgs {
|
|
3
|
+
id: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const addItemPlugin: CommandPlugin<InventoryChangeArgs, {}>;
|
|
7
|
+
export declare const removeItemPlugin: CommandPlugin<InventoryChangeArgs, {}>;
|
|
8
|
+
export declare const hasItemPlugin: CommandPlugin<InventoryChangeArgs, {}>;
|
|
9
|
+
export declare const itemAmountPlugin: CommandPlugin<InventoryChangeArgs, {}>;
|
|
10
|
+
export declare const enableInteractionPlugin: CommandPlugin<{
|
|
11
|
+
tag: string;
|
|
12
|
+
}, {}>;
|
|
13
|
+
export declare const disableInteractionPlugin: CommandPlugin<{
|
|
14
|
+
tag: string;
|
|
15
|
+
}, {}>;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const equalPlugin: CommandPlugin<{
|
|
3
|
-
a: number;
|
|
4
|
-
b: number;
|
|
5
|
-
}, {}>;
|
|
6
|
-
export declare const greaterThanPlugin: CommandPlugin<{
|
|
7
|
-
a: number;
|
|
8
|
-
b: number;
|
|
9
|
-
}, {}>;
|
|
10
|
-
export declare const lesserThanPlugin: CommandPlugin<{
|
|
11
|
-
a: number;
|
|
12
|
-
b: number;
|
|
13
|
-
}, {}>;
|
|
14
|
-
export declare const greaterOrEqualPlugin: CommandPlugin<{
|
|
15
|
-
a: number;
|
|
16
|
-
b: number;
|
|
17
|
-
}, {}>;
|
|
18
|
-
export declare const lesserOrEqualPlugin: CommandPlugin<{
|
|
19
|
-
a: number;
|
|
20
|
-
b: number;
|
|
21
|
-
}, {}>;
|
|
22
|
-
export declare const notEqualPlugin: CommandPlugin<{
|
|
23
|
-
a: number;
|
|
24
|
-
b: number;
|
|
25
|
-
}, {}>;
|
|
26
|
-
export declare const notPlugin: CommandPlugin<{
|
|
27
|
-
a: number;
|
|
28
|
-
b: number;
|
|
29
|
-
}, {}>;
|
|
30
|
-
export declare const andPlugin: CommandPlugin<{
|
|
31
|
-
a: number;
|
|
32
|
-
b: number;
|
|
33
|
-
}, {}>;
|
|
34
|
-
export declare const orPlugin: CommandPlugin<{
|
|
35
|
-
a: number;
|
|
36
|
-
b: number;
|
|
37
|
-
}, {}>;
|
|
38
|
-
export declare const ternaryPlugin: CommandPlugin<{
|
|
39
|
-
a: boolean;
|
|
40
|
-
b: any;
|
|
41
|
-
c: any;
|
|
42
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const equalPlugin: CommandPlugin<{
|
|
3
|
+
a: number;
|
|
4
|
+
b: number;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export declare const greaterThanPlugin: CommandPlugin<{
|
|
7
|
+
a: number;
|
|
8
|
+
b: number;
|
|
9
|
+
}, {}>;
|
|
10
|
+
export declare const lesserThanPlugin: CommandPlugin<{
|
|
11
|
+
a: number;
|
|
12
|
+
b: number;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export declare const greaterOrEqualPlugin: CommandPlugin<{
|
|
15
|
+
a: number;
|
|
16
|
+
b: number;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export declare const lesserOrEqualPlugin: CommandPlugin<{
|
|
19
|
+
a: number;
|
|
20
|
+
b: number;
|
|
21
|
+
}, {}>;
|
|
22
|
+
export declare const notEqualPlugin: CommandPlugin<{
|
|
23
|
+
a: number;
|
|
24
|
+
b: number;
|
|
25
|
+
}, {}>;
|
|
26
|
+
export declare const notPlugin: CommandPlugin<{
|
|
27
|
+
a: number;
|
|
28
|
+
b: number;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export declare const andPlugin: CommandPlugin<{
|
|
31
|
+
a: number;
|
|
32
|
+
b: number;
|
|
33
|
+
}, {}>;
|
|
34
|
+
export declare const orPlugin: CommandPlugin<{
|
|
35
|
+
a: number;
|
|
36
|
+
b: number;
|
|
37
|
+
}, {}>;
|
|
38
|
+
export declare const ternaryPlugin: CommandPlugin<{
|
|
39
|
+
a: boolean;
|
|
40
|
+
b: any;
|
|
41
|
+
c: any;
|
|
42
|
+
}, {}>;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const minPlugin: CommandPlugin<{
|
|
3
|
-
min: number;
|
|
4
|
-
value: number;
|
|
5
|
-
}, {}>;
|
|
6
|
-
export declare const maxPlugin: CommandPlugin<{
|
|
7
|
-
max: number;
|
|
8
|
-
value: number;
|
|
9
|
-
}, {}>;
|
|
10
|
-
export declare const clampPlugin: CommandPlugin<{
|
|
11
|
-
min: number;
|
|
12
|
-
max: number;
|
|
13
|
-
value: number;
|
|
14
|
-
}, {}>;
|
|
15
|
-
export declare const floorPlugin: CommandPlugin<{
|
|
16
|
-
value: number;
|
|
17
|
-
}, {}>;
|
|
18
|
-
export declare const ceilPlugin: CommandPlugin<{
|
|
19
|
-
value: number;
|
|
20
|
-
}, {}>;
|
|
21
|
-
export declare const roundPlugin: CommandPlugin<{
|
|
22
|
-
value: number;
|
|
23
|
-
}, {}>;
|
|
24
|
-
export declare const sqrtPlugin: CommandPlugin<{
|
|
25
|
-
value: number;
|
|
26
|
-
}, {}>;
|
|
27
|
-
export declare const powPlugin: CommandPlugin<{
|
|
28
|
-
base: number;
|
|
29
|
-
exponent: number;
|
|
30
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const minPlugin: CommandPlugin<{
|
|
3
|
+
min: number;
|
|
4
|
+
value: number;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export declare const maxPlugin: CommandPlugin<{
|
|
7
|
+
max: number;
|
|
8
|
+
value: number;
|
|
9
|
+
}, {}>;
|
|
10
|
+
export declare const clampPlugin: CommandPlugin<{
|
|
11
|
+
min: number;
|
|
12
|
+
max: number;
|
|
13
|
+
value: number;
|
|
14
|
+
}, {}>;
|
|
15
|
+
export declare const floorPlugin: CommandPlugin<{
|
|
16
|
+
value: number;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export declare const ceilPlugin: CommandPlugin<{
|
|
19
|
+
value: number;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export declare const roundPlugin: CommandPlugin<{
|
|
22
|
+
value: number;
|
|
23
|
+
}, {}>;
|
|
24
|
+
export declare const sqrtPlugin: CommandPlugin<{
|
|
25
|
+
value: number;
|
|
26
|
+
}, {}>;
|
|
27
|
+
export declare const powPlugin: CommandPlugin<{
|
|
28
|
+
base: number;
|
|
29
|
+
exponent: number;
|
|
30
|
+
}, {}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const notifyPlugin: CommandPlugin<{
|
|
3
|
-
text: string;
|
|
4
|
-
description?: string | undefined;
|
|
5
|
-
icon?: string | undefined;
|
|
6
|
-
}, {}>;
|
|
7
|
-
export declare const disableNotifications: CommandPlugin<{}, {}>;
|
|
8
|
-
export declare const enableNotifications: CommandPlugin<{}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const notifyPlugin: CommandPlugin<{
|
|
3
|
+
text: string;
|
|
4
|
+
description?: string | undefined;
|
|
5
|
+
icon?: string | undefined;
|
|
6
|
+
}, {}>;
|
|
7
|
+
export declare const disableNotifications: CommandPlugin<{}, {}>;
|
|
8
|
+
export declare const enableNotifications: CommandPlugin<{}, {}>;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const startQuestPlugin: CommandPlugin<{
|
|
3
|
-
questId: string;
|
|
4
|
-
}, {}>;
|
|
5
|
-
export declare const startObjectivePlugin: CommandPlugin<{
|
|
6
|
-
questId: string;
|
|
7
|
-
objectiveId: string;
|
|
8
|
-
}, {}>;
|
|
9
|
-
export declare const completeObjectivePlugin: CommandPlugin<{
|
|
10
|
-
questId: string;
|
|
11
|
-
objectiveId: string;
|
|
12
|
-
}, {}>;
|
|
13
|
-
export declare const completeQuestPlugin: CommandPlugin<{
|
|
14
|
-
questId: string;
|
|
15
|
-
ending?: string | undefined;
|
|
16
|
-
}, {}>;
|
|
17
|
-
export declare const questCompletedPlugin: CommandPlugin<{
|
|
18
|
-
questId: string;
|
|
19
|
-
}, {}>;
|
|
20
|
-
export declare const objectiveCompletedPlugin: CommandPlugin<{
|
|
21
|
-
questId: string;
|
|
22
|
-
objectiveId: string;
|
|
23
|
-
}, {}>;
|
|
24
|
-
export declare const questStartedPlugin: CommandPlugin<{
|
|
25
|
-
questId: string;
|
|
26
|
-
}, {}>;
|
|
27
|
-
export declare const objectiveStartedPlugin: CommandPlugin<{
|
|
28
|
-
questId: string;
|
|
29
|
-
objectiveId: string;
|
|
30
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const startQuestPlugin: CommandPlugin<{
|
|
3
|
+
questId: string;
|
|
4
|
+
}, {}>;
|
|
5
|
+
export declare const startObjectivePlugin: CommandPlugin<{
|
|
6
|
+
questId: string;
|
|
7
|
+
objectiveId: string;
|
|
8
|
+
}, {}>;
|
|
9
|
+
export declare const completeObjectivePlugin: CommandPlugin<{
|
|
10
|
+
questId: string;
|
|
11
|
+
objectiveId: string;
|
|
12
|
+
}, {}>;
|
|
13
|
+
export declare const completeQuestPlugin: CommandPlugin<{
|
|
14
|
+
questId: string;
|
|
15
|
+
ending?: string | undefined;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export declare const questCompletedPlugin: CommandPlugin<{
|
|
18
|
+
questId: string;
|
|
19
|
+
}, {}>;
|
|
20
|
+
export declare const objectiveCompletedPlugin: CommandPlugin<{
|
|
21
|
+
questId: string;
|
|
22
|
+
objectiveId: string;
|
|
23
|
+
}, {}>;
|
|
24
|
+
export declare const questStartedPlugin: CommandPlugin<{
|
|
25
|
+
questId: string;
|
|
26
|
+
}, {}>;
|
|
27
|
+
export declare const objectiveStartedPlugin: CommandPlugin<{
|
|
28
|
+
questId: string;
|
|
29
|
+
objectiveId: string;
|
|
30
|
+
}, {}>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const randomIntPlugin: CommandPlugin<{
|
|
3
|
-
a: number;
|
|
4
|
-
b: number;
|
|
5
|
-
}, {}>;
|
|
6
|
-
export declare const randomFloatPlugin: CommandPlugin<{
|
|
7
|
-
a: number;
|
|
8
|
-
b: number;
|
|
9
|
-
}, {}>;
|
|
10
|
-
export declare const randomFromArgsPlugin: CommandPlugin<{}, {}>;
|
|
11
|
-
export declare const randomFromArrayPlugin: CommandPlugin<{
|
|
12
|
-
a: any[];
|
|
13
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const randomIntPlugin: CommandPlugin<{
|
|
3
|
+
a: number;
|
|
4
|
+
b: number;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export declare const randomFloatPlugin: CommandPlugin<{
|
|
7
|
+
a: number;
|
|
8
|
+
b: number;
|
|
9
|
+
}, {}>;
|
|
10
|
+
export declare const randomFromArgsPlugin: CommandPlugin<{}, {}>;
|
|
11
|
+
export declare const randomFromArrayPlugin: CommandPlugin<{
|
|
12
|
+
a: any[];
|
|
13
|
+
}, {}>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const setScreenCommand: CommandPlugin<{
|
|
3
|
-
screen: string;
|
|
4
|
-
layer?: number | undefined;
|
|
5
|
-
transitionName?: string | undefined;
|
|
6
|
-
transitionDuration?: number | undefined;
|
|
7
|
-
transitionDelay?: number | undefined;
|
|
8
|
-
}, {}>;
|
|
9
|
-
export declare const emptyLayerCommand: CommandPlugin<{
|
|
10
|
-
layer: number;
|
|
11
|
-
transitionName?: string | undefined;
|
|
12
|
-
transitionDuration?: number | undefined;
|
|
13
|
-
transitionDelay?: number | undefined;
|
|
14
|
-
}, {}>;
|
|
15
|
-
export declare const setButtonCommand: CommandPlugin<{
|
|
16
|
-
buttonId: string;
|
|
17
|
-
state: any;
|
|
18
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const setScreenCommand: CommandPlugin<{
|
|
3
|
+
screen: string;
|
|
4
|
+
layer?: number | undefined;
|
|
5
|
+
transitionName?: string | undefined;
|
|
6
|
+
transitionDuration?: number | undefined;
|
|
7
|
+
transitionDelay?: number | undefined;
|
|
8
|
+
}, {}>;
|
|
9
|
+
export declare const emptyLayerCommand: CommandPlugin<{
|
|
10
|
+
layer: number;
|
|
11
|
+
transitionName?: string | undefined;
|
|
12
|
+
transitionDuration?: number | undefined;
|
|
13
|
+
transitionDelay?: number | undefined;
|
|
14
|
+
}, {}>;
|
|
15
|
+
export declare const setButtonCommand: CommandPlugin<{
|
|
16
|
+
buttonId: string;
|
|
17
|
+
state: any;
|
|
18
|
+
}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const setCommand: CommandPlugin<any, {}>;
|
|
3
|
-
export declare const addPlugin: CommandPlugin<{
|
|
4
|
-
key: any;
|
|
5
|
-
value: number;
|
|
6
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const setCommand: CommandPlugin<any, {}>;
|
|
3
|
+
export declare const addPlugin: CommandPlugin<{
|
|
4
|
+
key: any;
|
|
5
|
+
value: number;
|
|
6
|
+
}, {}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const getSettingPlugin: CommandPlugin<{
|
|
3
|
-
setting: string;
|
|
4
|
-
}, {}>;
|
|
5
|
-
export declare const setSettingPlugin: CommandPlugin<{
|
|
6
|
-
setting: string;
|
|
7
|
-
value: any;
|
|
8
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const getSettingPlugin: CommandPlugin<{
|
|
3
|
+
setting: string;
|
|
4
|
+
}, {}>;
|
|
5
|
+
export declare const setSettingPlugin: CommandPlugin<{
|
|
6
|
+
setting: string;
|
|
7
|
+
value: any;
|
|
8
|
+
}, {}>;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export interface AddLevelArgs {
|
|
3
|
-
skillKey: string;
|
|
4
|
-
amount: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const addLevelPlugin: CommandPlugin<AddLevelArgs, {}>;
|
|
7
|
-
export declare const setLevelPlugin: CommandPlugin<{
|
|
8
|
-
skill: string;
|
|
9
|
-
level: number;
|
|
10
|
-
}, {}>;
|
|
11
|
-
export interface AddXpArgs {
|
|
12
|
-
xpKey: string;
|
|
13
|
-
xpToAdd: number;
|
|
14
|
-
}
|
|
15
|
-
export declare const addXpPlugin: CommandPlugin<AddXpArgs, {}>;
|
|
16
|
-
export interface GetLevelArgs {
|
|
17
|
-
skillKey: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const getLevelPlugin: CommandPlugin<GetLevelArgs, {}>;
|
|
20
|
-
export interface GetXpArgs {
|
|
21
|
-
xpKey: string;
|
|
22
|
-
}
|
|
23
|
-
export declare const getXpPlugin: CommandPlugin<GetXpArgs, {}>;
|
|
24
|
-
export interface RollArgs {
|
|
25
|
-
id: string;
|
|
26
|
-
skill?: string;
|
|
27
|
-
difficulty?: number;
|
|
28
|
-
mode?: string;
|
|
29
|
-
}
|
|
30
|
-
export declare const rollPlugin: CommandPlugin<RollArgs, {}>;
|
|
31
|
-
export declare const getSkillCheckPlugin: CommandPlugin<{
|
|
32
|
-
skillCheckId: string;
|
|
33
|
-
}, {}>;
|
|
34
|
-
export declare const getSkillCheckResultPlugin: CommandPlugin<{
|
|
35
|
-
skillCheckId: string;
|
|
36
|
-
}, {}>;
|
|
37
|
-
export declare const resetSkillCheck: CommandPlugin<{
|
|
38
|
-
id: string;
|
|
39
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export interface AddLevelArgs {
|
|
3
|
+
skillKey: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const addLevelPlugin: CommandPlugin<AddLevelArgs, {}>;
|
|
7
|
+
export declare const setLevelPlugin: CommandPlugin<{
|
|
8
|
+
skill: string;
|
|
9
|
+
level: number;
|
|
10
|
+
}, {}>;
|
|
11
|
+
export interface AddXpArgs {
|
|
12
|
+
xpKey: string;
|
|
13
|
+
xpToAdd: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const addXpPlugin: CommandPlugin<AddXpArgs, {}>;
|
|
16
|
+
export interface GetLevelArgs {
|
|
17
|
+
skillKey: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const getLevelPlugin: CommandPlugin<GetLevelArgs, {}>;
|
|
20
|
+
export interface GetXpArgs {
|
|
21
|
+
xpKey: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const getXpPlugin: CommandPlugin<GetXpArgs, {}>;
|
|
24
|
+
export interface RollArgs {
|
|
25
|
+
id: string;
|
|
26
|
+
skill?: string;
|
|
27
|
+
difficulty?: number;
|
|
28
|
+
mode?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const rollPlugin: CommandPlugin<RollArgs, {}>;
|
|
31
|
+
export declare const getSkillCheckPlugin: CommandPlugin<{
|
|
32
|
+
skillCheckId: string;
|
|
33
|
+
}, {}>;
|
|
34
|
+
export declare const getSkillCheckResultPlugin: CommandPlugin<{
|
|
35
|
+
skillCheckId: string;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export declare const resetSkillCheck: CommandPlugin<{
|
|
38
|
+
id: string;
|
|
39
|
+
}, {}>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ScreenObjectState } from '../../stores/screen-objects-store';
|
|
2
|
-
import { CommandPlugin } from './command-plugin';
|
|
3
|
-
export declare const createSpriteCommand: CommandPlugin<{
|
|
4
|
-
image: string;
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
parent?: string | ScreenObjectState | undefined;
|
|
8
|
-
}, {}>;
|
|
9
|
-
export declare const createObjectCommand: CommandPlugin<{
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
parent?: string | ScreenObjectState | undefined;
|
|
13
|
-
}, {}>;
|
|
14
|
-
export declare const deleteSpriteCommand: CommandPlugin<{
|
|
15
|
-
sprite: ScreenObjectState;
|
|
16
|
-
}, {}>;
|
|
17
|
-
export declare const emptySpritesCommand: CommandPlugin<{
|
|
18
|
-
layer?: number | undefined;
|
|
19
|
-
}, {}>;
|
|
1
|
+
import { ScreenObjectState } from '../../stores/screen-objects-store';
|
|
2
|
+
import { CommandPlugin } from './command-plugin';
|
|
3
|
+
export declare const createSpriteCommand: CommandPlugin<{
|
|
4
|
+
image: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
parent?: string | ScreenObjectState | undefined;
|
|
8
|
+
}, {}>;
|
|
9
|
+
export declare const createObjectCommand: CommandPlugin<{
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
parent?: string | ScreenObjectState | undefined;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export declare const deleteSpriteCommand: CommandPlugin<{
|
|
15
|
+
sprite: ScreenObjectState;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export declare const emptySpritesCommand: CommandPlugin<{
|
|
18
|
+
layer?: number | undefined;
|
|
19
|
+
}, {}>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const addStatPlugin: CommandPlugin<{
|
|
3
|
-
statKey: string;
|
|
4
|
-
amountToAdd: number;
|
|
5
|
-
}, {}>;
|
|
6
|
-
export declare const setStatPlugin: CommandPlugin<{
|
|
7
|
-
statKey: string;
|
|
8
|
-
value: number;
|
|
9
|
-
}, {}>;
|
|
10
|
-
export declare const getStatPlugin: CommandPlugin<{
|
|
11
|
-
statKey: string;
|
|
12
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const addStatPlugin: CommandPlugin<{
|
|
3
|
+
statKey: string;
|
|
4
|
+
amountToAdd: number;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export declare const setStatPlugin: CommandPlugin<{
|
|
7
|
+
statKey: string;
|
|
8
|
+
value: number;
|
|
9
|
+
}, {}>;
|
|
10
|
+
export declare const getStatPlugin: CommandPlugin<{
|
|
11
|
+
statKey: string;
|
|
12
|
+
}, {}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const stringConcatPlugin: CommandPlugin<{
|
|
3
|
-
a: number;
|
|
4
|
-
b: number;
|
|
5
|
-
}, {}>;
|
|
6
|
-
export declare const stringJoinPlugin: CommandPlugin<{
|
|
7
|
-
a: number;
|
|
8
|
-
b: number;
|
|
9
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const stringConcatPlugin: CommandPlugin<{
|
|
3
|
+
a: number;
|
|
4
|
+
b: number;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export declare const stringJoinPlugin: CommandPlugin<{
|
|
7
|
+
a: number;
|
|
8
|
+
b: number;
|
|
9
|
+
}, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommandPlugin } from './command-plugin';
|
|
2
|
-
export declare const textFieldPlugin: CommandPlugin<{
|
|
3
|
-
prompt: string;
|
|
4
|
-
}, {}>;
|
|
5
|
-
export declare const textFieldPromptPlugin: CommandPlugin<{
|
|
6
|
-
prompt: string;
|
|
7
|
-
}, {}>;
|
|
1
|
+
import { CommandPlugin } from './command-plugin';
|
|
2
|
+
export declare const textFieldPlugin: CommandPlugin<{
|
|
3
|
+
prompt: string;
|
|
4
|
+
}, {}>;
|
|
5
|
+
export declare const textFieldPromptPlugin: CommandPlugin<{
|
|
6
|
+
prompt: string;
|
|
7
|
+
}, {}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CommandParserFunction, CommandPlugin } from './command-plugin';
|
|
2
|
-
export interface TalkArgs {
|
|
3
|
-
speaker: string;
|
|
4
|
-
pose: string;
|
|
5
|
-
text: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const talkCommand: CommandPlugin<TalkArgs, {}>;
|
|
8
|
-
export declare const thinkCommand: CommandPlugin<TalkArgs, {}>;
|
|
9
|
-
export declare const textParser: () => CommandParserFunction<{}, {
|
|
10
|
-
text: string;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const textCommandPlugin: CommandPlugin<{}, {
|
|
13
|
-
text: string;
|
|
14
|
-
}>;
|
|
1
|
+
import { CommandParserFunction, CommandPlugin } from './command-plugin';
|
|
2
|
+
export interface TalkArgs {
|
|
3
|
+
speaker: string;
|
|
4
|
+
pose: string;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const talkCommand: CommandPlugin<TalkArgs, {}>;
|
|
8
|
+
export declare const thinkCommand: CommandPlugin<TalkArgs, {}>;
|
|
9
|
+
export declare const textParser: () => CommandParserFunction<{}, {
|
|
10
|
+
text: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const textCommandPlugin: CommandPlugin<{}, {
|
|
13
|
+
text: string;
|
|
14
|
+
}>;
|