@wwawing/loader 4.0.2 → 4.0.4
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TextLoader = void 0;
|
|
4
4
|
const infra_1 = require("../../infra");
|
|
5
|
+
const common_interface_1 = require("@wwawing/common-interface");
|
|
5
6
|
class TextLoader {
|
|
6
7
|
constructor(wwaData, compressedMapData, startPosition, eventEmitter) {
|
|
7
8
|
this.wwaData = wwaData;
|
|
@@ -126,6 +127,8 @@ class TextLoader {
|
|
|
126
127
|
wwaData.gameOverPolicy = "default";
|
|
127
128
|
wwaData.bgmDelayDurationMs = 0;
|
|
128
129
|
wwaData.pictureRegistry = [];
|
|
130
|
+
wwaData.decisionSound = common_interface_1.SystemSound.DECISION;
|
|
131
|
+
wwaData.attackSound = common_interface_1.SystemSound.ATTACK;
|
|
129
132
|
return wwaData;
|
|
130
133
|
}
|
|
131
134
|
getMessageFromData() {
|
package/lib/infra/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LoadStage, WWAConsts } from "../../infra";
|
|
2
|
+
import { SystemSound } from "@wwawing/common-interface";
|
|
2
3
|
export class TextLoader {
|
|
3
4
|
constructor(wwaData, compressedMapData, startPosition, eventEmitter) {
|
|
4
5
|
this.wwaData = wwaData;
|
|
@@ -123,6 +124,8 @@ export class TextLoader {
|
|
|
123
124
|
wwaData.gameOverPolicy = "default";
|
|
124
125
|
wwaData.bgmDelayDurationMs = 0;
|
|
125
126
|
wwaData.pictureRegistry = [];
|
|
127
|
+
wwaData.decisionSound = SystemSound.DECISION;
|
|
128
|
+
wwaData.attackSound = SystemSound.ATTACK;
|
|
126
129
|
return wwaData;
|
|
127
130
|
}
|
|
128
131
|
getMessageFromData() {
|
package/module/infra/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwawing/loader",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "a World Wide Adventure mapdata loader for client-side web applications",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./module/index.js",
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/WWAWing/WWALoader#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@wwawing/event-emitter": "^4.0.
|
|
49
|
+
"@wwawing/event-emitter": "^4.0.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@wwawing/common-interface": "^4.0.
|
|
52
|
+
"@wwawing/common-interface": "^4.0.4",
|
|
53
53
|
"http-server": "^14.1.1",
|
|
54
54
|
"npm-run-all2": "^8.0.1",
|
|
55
55
|
"shelljs": "^0.10.0",
|
|
56
56
|
"shx": "^0.4.0",
|
|
57
57
|
"ts-node": "^10.9.2",
|
|
58
58
|
"typescript": "^5.8.3",
|
|
59
|
-
"vite": "^
|
|
59
|
+
"vite": "^8.0.8"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"node": ">=24",
|
|
66
66
|
"npm": ">=11"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "37ecfd382f21db043f8241a21ffa76501828d867"
|
|
69
69
|
}
|