narrat 0.11.1 → 0.11.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.
- package/lib/index.d.ts +3 -11
- package/lib/index.esm.js +4 -32
- package/lib/index.js +12 -34
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4,9 +4,6 @@ import { App, State } from 'vue';
|
|
|
4
4
|
import './lib';
|
|
5
5
|
import { GameConfig } from './types/app-types';
|
|
6
6
|
import { Store } from 'vuex';
|
|
7
|
-
import * as plugins from './plugins';
|
|
8
|
-
import * as display from './display';
|
|
9
|
-
import * as config from './config';
|
|
10
7
|
export interface AppOptions {
|
|
11
8
|
logging: boolean;
|
|
12
9
|
debug: boolean;
|
|
@@ -22,11 +19,6 @@ declare global {
|
|
|
22
19
|
narrat: Narrat;
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
plugins: typeof plugins;
|
|
29
|
-
display: typeof display;
|
|
30
|
-
config: typeof config;
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
|
22
|
+
export * from './plugins';
|
|
23
|
+
export * from './display';
|
|
24
|
+
export * from './config';
|
package/lib/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version: 0.11.
|
|
1
|
+
// Version: 0.11.2 - June 15, 2022 15:56:51
|
|
2
2
|
import 'es6-promise/auto';
|
|
3
3
|
import { ref, reactive, readonly, defineComponent, openBlock, createElementBlock, normalizeStyle, createElementVNode, createCommentVNode, Fragment, renderList, normalizeClass, createBlock, Transition, withCtx, renderSlot, createTextVNode, resolveComponent, withDirectives, vModelText, toDisplayString, TransitionGroup, createVNode, createApp } from 'vue';
|
|
4
4
|
import { createLogger, createStore } from 'vuex';
|
|
@@ -339,13 +339,6 @@ function getSkillConfig(commit, id) {
|
|
|
339
339
|
return skill;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
var config$2 = /*#__PURE__*/Object.freeze({
|
|
343
|
-
__proto__: null,
|
|
344
|
-
setConfig: setConfig,
|
|
345
|
-
getConfig: getConfig,
|
|
346
|
-
getSkillConfig: getSkillConfig
|
|
347
|
-
});
|
|
348
|
-
|
|
349
342
|
var script$1 = defineComponent({
|
|
350
343
|
props: {
|
|
351
344
|
pictureUrl: String,
|
|
@@ -8750,20 +8743,6 @@ function addCommand(command) {
|
|
|
8750
8743
|
vm$1.addCommand(command);
|
|
8751
8744
|
}
|
|
8752
8745
|
|
|
8753
|
-
var plugins = /*#__PURE__*/Object.freeze({
|
|
8754
|
-
__proto__: null,
|
|
8755
|
-
CommandPlugin: CommandPlugin,
|
|
8756
|
-
NarratPlugin: NarratPlugin,
|
|
8757
|
-
registerPlugin: registerPlugin,
|
|
8758
|
-
addCommand: addCommand,
|
|
8759
|
-
generateParser: generateParser
|
|
8760
|
-
});
|
|
8761
|
-
|
|
8762
|
-
var display = /*#__PURE__*/Object.freeze({
|
|
8763
|
-
__proto__: null,
|
|
8764
|
-
aspectRatioFit: aspectRatioFit
|
|
8765
|
-
});
|
|
8766
|
-
|
|
8767
8746
|
let app;
|
|
8768
8747
|
let store$2;
|
|
8769
8748
|
vm$1.callHook('onPageLoaded');
|
|
@@ -8772,7 +8751,7 @@ async function startApp(config, options) {
|
|
|
8772
8751
|
logManager.setupDebugger(options.debug);
|
|
8773
8752
|
const configFile = await getFile('data/config.json');
|
|
8774
8753
|
setConfig(JSON.parse(configFile));
|
|
8775
|
-
console.log('%c Narrat game engine – 0.11.
|
|
8754
|
+
console.log('%c Narrat game engine – 0.11.2 - June 15, 2022 15:56:51', 'background: #222; color: #bada55');
|
|
8776
8755
|
vm$1.callHook('onNarratSetup');
|
|
8777
8756
|
const storeSetup = setupStore(options);
|
|
8778
8757
|
store$2 = storeSetup.store;
|
|
@@ -8811,14 +8790,7 @@ async function startApp(config, options) {
|
|
|
8811
8790
|
});
|
|
8812
8791
|
}
|
|
8813
8792
|
startGameLoop(store$2);
|
|
8814
|
-
}
|
|
8815
|
-
var index = {
|
|
8816
|
-
startApp,
|
|
8817
|
-
plugins,
|
|
8818
|
-
display,
|
|
8819
|
-
config: config$2,
|
|
8820
|
-
};
|
|
8793
|
+
}
|
|
8821
8794
|
|
|
8822
|
-
export
|
|
8823
|
-
export { config$2 as config, display, plugins, startApp };
|
|
8795
|
+
export { CommandPlugin, NarratPlugin, addCommand, aspectRatioFit, generateParser, getConfig, getSkillConfig, registerPlugin, setConfig, startApp };
|
|
8824
8796
|
//# sourceMappingURL=index.esm.js.map
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version: 0.11.
|
|
1
|
+
// Version: 0.11.2 - June 15, 2022 15:56:51
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -343,13 +343,6 @@ function getSkillConfig(commit, id) {
|
|
|
343
343
|
return skill;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
var config$2 = /*#__PURE__*/Object.freeze({
|
|
347
|
-
__proto__: null,
|
|
348
|
-
setConfig: setConfig,
|
|
349
|
-
getConfig: getConfig,
|
|
350
|
-
getSkillConfig: getSkillConfig
|
|
351
|
-
});
|
|
352
|
-
|
|
353
346
|
var script$1 = vue.defineComponent({
|
|
354
347
|
props: {
|
|
355
348
|
pictureUrl: String,
|
|
@@ -8754,20 +8747,6 @@ function addCommand(command) {
|
|
|
8754
8747
|
vm$1.addCommand(command);
|
|
8755
8748
|
}
|
|
8756
8749
|
|
|
8757
|
-
var plugins = /*#__PURE__*/Object.freeze({
|
|
8758
|
-
__proto__: null,
|
|
8759
|
-
CommandPlugin: CommandPlugin,
|
|
8760
|
-
NarratPlugin: NarratPlugin,
|
|
8761
|
-
registerPlugin: registerPlugin,
|
|
8762
|
-
addCommand: addCommand,
|
|
8763
|
-
generateParser: generateParser
|
|
8764
|
-
});
|
|
8765
|
-
|
|
8766
|
-
var display = /*#__PURE__*/Object.freeze({
|
|
8767
|
-
__proto__: null,
|
|
8768
|
-
aspectRatioFit: aspectRatioFit
|
|
8769
|
-
});
|
|
8770
|
-
|
|
8771
8750
|
let app;
|
|
8772
8751
|
let store$2;
|
|
8773
8752
|
vm$1.callHook('onPageLoaded');
|
|
@@ -8776,7 +8755,7 @@ async function startApp(config, options) {
|
|
|
8776
8755
|
logManager.setupDebugger(options.debug);
|
|
8777
8756
|
const configFile = await getFile('data/config.json');
|
|
8778
8757
|
setConfig(JSON.parse(configFile));
|
|
8779
|
-
console.log('%c Narrat game engine – 0.11.
|
|
8758
|
+
console.log('%c Narrat game engine – 0.11.2 - June 15, 2022 15:56:51', 'background: #222; color: #bada55');
|
|
8780
8759
|
vm$1.callHook('onNarratSetup');
|
|
8781
8760
|
const storeSetup = setupStore(options);
|
|
8782
8761
|
store$2 = storeSetup.store;
|
|
@@ -8815,17 +8794,16 @@ async function startApp(config, options) {
|
|
|
8815
8794
|
});
|
|
8816
8795
|
}
|
|
8817
8796
|
startGameLoop(store$2);
|
|
8818
|
-
}
|
|
8819
|
-
var index = {
|
|
8820
|
-
startApp,
|
|
8821
|
-
plugins,
|
|
8822
|
-
display,
|
|
8823
|
-
config: config$2,
|
|
8824
|
-
};
|
|
8797
|
+
}
|
|
8825
8798
|
|
|
8826
|
-
exports.
|
|
8827
|
-
exports.
|
|
8828
|
-
exports.
|
|
8829
|
-
exports.
|
|
8799
|
+
exports.CommandPlugin = CommandPlugin;
|
|
8800
|
+
exports.NarratPlugin = NarratPlugin;
|
|
8801
|
+
exports.addCommand = addCommand;
|
|
8802
|
+
exports.aspectRatioFit = aspectRatioFit;
|
|
8803
|
+
exports.generateParser = generateParser;
|
|
8804
|
+
exports.getConfig = getConfig;
|
|
8805
|
+
exports.getSkillConfig = getSkillConfig;
|
|
8806
|
+
exports.registerPlugin = registerPlugin;
|
|
8807
|
+
exports.setConfig = setConfig;
|
|
8830
8808
|
exports.startApp = startApp;
|
|
8831
8809
|
//# sourceMappingURL=index.js.map
|