@wwawing/loader 3.13.0-unstable.based-on.3.12.11.p.12 → 4.1.0-save-bug-fix.based-on.3.12.17.p.1
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/LICENSE +2 -2
- package/lib/core/decompressor/index.js +1 -2
- package/lib/core/extractor/checksum.js +1 -2
- package/lib/core/extractor/constants.js +1 -1
- package/lib/core/text-loader/index.js +2 -1
- package/lib/infra/index.js +6 -5
- package/module/core/text-loader/index.js +2 -1
- package/module/infra/index.js +2 -2
- package/package.json +13 -13
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 1996-
|
|
4
|
-
Copyright (c) 2015-
|
|
3
|
+
Copyright (c) 1996-2025 NAO
|
|
4
|
+
Copyright (c) 2015-2025 WWA Wing Team
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.decompressMapData =
|
|
3
|
+
exports.decompressMapData = decompressMapData;
|
|
4
4
|
const MEM_BLOCK = 65000;
|
|
5
5
|
const EXT_LAST_PADDING = 3;
|
|
6
6
|
function decompressMapData(srcData) {
|
|
@@ -29,4 +29,3 @@ function decompressMapData(srcData) {
|
|
|
29
29
|
console.log("EXTRACT DATA = " + destCounter + " " + srcCounter);
|
|
30
30
|
return { byteMapData: destData, byteMapLength: destCounter, compressedEndPosition: srcCounter + EXT_LAST_PADDING };
|
|
31
31
|
}
|
|
32
|
-
exports.decompressMapData = decompressMapData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkMapDataBroken =
|
|
3
|
+
exports.checkMapDataBroken = checkMapDataBroken;
|
|
4
4
|
const util_1 = require("../../infra/util");
|
|
5
5
|
const constants_1 = require("./constants");
|
|
6
6
|
function calculateCorrectCheckSum(mapData) {
|
|
@@ -28,4 +28,3 @@ function checkMapDataBroken(mapData, dataLength) {
|
|
|
28
28
|
"でした。");
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
exports.checkMapDataBroken = checkMapDataBroken;
|
|
@@ -28,4 +28,4 @@ var BytePosition;
|
|
|
28
28
|
BytePosition[BytePosition["ITEMBOX_TOP"] = 60] = "ITEMBOX_TOP";
|
|
29
29
|
BytePosition[BytePosition["MAPDATA_TOP"] = 90] = "MAPDATA_TOP";
|
|
30
30
|
BytePosition[BytePosition["OLD_MAPDATA_TOP"] = 100] = "OLD_MAPDATA_TOP";
|
|
31
|
-
})(BytePosition
|
|
31
|
+
})(BytePosition || (exports.BytePosition = BytePosition = {}));
|
|
@@ -117,7 +117,7 @@ class TextLoader {
|
|
|
117
117
|
wwaData.gameSpeedIndex = infra_1.WWAConsts.DEFAULT_SPEED_INDEX;
|
|
118
118
|
wwaData.permitChangeGameSpeed = true;
|
|
119
119
|
wwaData.userVar = Array.from({ length: infra_1.WWAConsts.USER_VAR_NUM }).map(() => 0);
|
|
120
|
-
wwaData.userNamedVar =
|
|
120
|
+
wwaData.userNamedVar = new Map();
|
|
121
121
|
wwaData.playTime = 0;
|
|
122
122
|
wwaData.isVisibleStatusEnergy = true;
|
|
123
123
|
wwaData.isVisibleStatusStrength = true;
|
|
@@ -125,6 +125,7 @@ class TextLoader {
|
|
|
125
125
|
wwaData.isVisibleStatusGold = true;
|
|
126
126
|
wwaData.gameOverPolicy = "default";
|
|
127
127
|
wwaData.bgmDelayDurationMs = 0;
|
|
128
|
+
wwaData.pictureRegistry = [];
|
|
128
129
|
return wwaData;
|
|
129
130
|
}
|
|
130
131
|
getMessageFromData() {
|
package/lib/infra/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.LoadStage = exports.PartsType = exports.LoaderProgress = exports.LoaderError = exports.WWAConsts = void 0;
|
|
4
|
+
exports.createDefaultWWAData = createDefaultWWAData;
|
|
4
5
|
class WWAConsts {
|
|
5
6
|
}
|
|
7
|
+
exports.WWAConsts = WWAConsts;
|
|
6
8
|
WWAConsts.ITEMBOX_SIZE = 12;
|
|
7
9
|
WWAConsts.MAP_ATR_MAX = 60;
|
|
8
10
|
WWAConsts.OBJ_ATR_MAX = 60;
|
|
@@ -54,7 +56,6 @@ WWAConsts.DEFAULT_STATUS_COLOR_B = 0x0;
|
|
|
54
56
|
WWAConsts.DEFAULT_MOVES = 0;
|
|
55
57
|
WWAConsts.DEFAULT_SPEED_INDEX = 3;
|
|
56
58
|
WWAConsts.USER_VAR_NUM = 256;
|
|
57
|
-
exports.WWAConsts = WWAConsts;
|
|
58
59
|
class LoaderError {
|
|
59
60
|
}
|
|
60
61
|
exports.LoaderError = LoaderError;
|
|
@@ -65,7 +66,7 @@ var PartsType;
|
|
|
65
66
|
(function (PartsType) {
|
|
66
67
|
PartsType[PartsType["MAP"] = 1] = "MAP";
|
|
67
68
|
PartsType[PartsType["OBJECT"] = 0] = "OBJECT";
|
|
68
|
-
})(PartsType
|
|
69
|
+
})(PartsType || (exports.PartsType = PartsType = {}));
|
|
69
70
|
var LoadStage;
|
|
70
71
|
(function (LoadStage) {
|
|
71
72
|
LoadStage[LoadStage["INIT"] = 0] = "INIT";
|
|
@@ -75,7 +76,7 @@ var LoadStage;
|
|
|
75
76
|
LoadStage[LoadStage["OBJ_ATTR"] = 4] = "OBJ_ATTR";
|
|
76
77
|
LoadStage[LoadStage["RAND_PARTS"] = 5] = "RAND_PARTS";
|
|
77
78
|
LoadStage[LoadStage["MESSAGE"] = 6] = "MESSAGE";
|
|
78
|
-
})(LoadStage
|
|
79
|
+
})(LoadStage || (exports.LoadStage = LoadStage = {}));
|
|
79
80
|
function createDefaultWWAData() {
|
|
80
81
|
return {
|
|
81
82
|
version: undefined,
|
|
@@ -170,6 +171,6 @@ function createDefaultWWAData() {
|
|
|
170
171
|
gameOverPolicy: "default",
|
|
171
172
|
bgmDelayDurationMs: undefined,
|
|
172
173
|
customSystemMessages: {},
|
|
174
|
+
pictureRegistry: [],
|
|
173
175
|
};
|
|
174
176
|
}
|
|
175
|
-
exports.createDefaultWWAData = createDefaultWWAData;
|
|
@@ -114,7 +114,7 @@ export class TextLoader {
|
|
|
114
114
|
wwaData.gameSpeedIndex = WWAConsts.DEFAULT_SPEED_INDEX;
|
|
115
115
|
wwaData.permitChangeGameSpeed = true;
|
|
116
116
|
wwaData.userVar = Array.from({ length: WWAConsts.USER_VAR_NUM }).map(() => 0);
|
|
117
|
-
wwaData.userNamedVar =
|
|
117
|
+
wwaData.userNamedVar = new Map();
|
|
118
118
|
wwaData.playTime = 0;
|
|
119
119
|
wwaData.isVisibleStatusEnergy = true;
|
|
120
120
|
wwaData.isVisibleStatusStrength = true;
|
|
@@ -122,6 +122,7 @@ export class TextLoader {
|
|
|
122
122
|
wwaData.isVisibleStatusGold = true;
|
|
123
123
|
wwaData.gameOverPolicy = "default";
|
|
124
124
|
wwaData.bgmDelayDurationMs = 0;
|
|
125
|
+
wwaData.pictureRegistry = [];
|
|
125
126
|
return wwaData;
|
|
126
127
|
}
|
|
127
128
|
getMessageFromData() {
|
package/module/infra/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class WWAConsts {
|
|
1
|
+
export class WWAConsts {
|
|
2
2
|
}
|
|
3
3
|
WWAConsts.ITEMBOX_SIZE = 12;
|
|
4
4
|
WWAConsts.MAP_ATR_MAX = 60;
|
|
@@ -51,7 +51,6 @@ WWAConsts.DEFAULT_STATUS_COLOR_B = 0x0;
|
|
|
51
51
|
WWAConsts.DEFAULT_MOVES = 0;
|
|
52
52
|
WWAConsts.DEFAULT_SPEED_INDEX = 3;
|
|
53
53
|
WWAConsts.USER_VAR_NUM = 256;
|
|
54
|
-
export { WWAConsts };
|
|
55
54
|
export class LoaderError {
|
|
56
55
|
}
|
|
57
56
|
export class LoaderProgress {
|
|
@@ -165,5 +164,6 @@ export function createDefaultWWAData() {
|
|
|
165
164
|
gameOverPolicy: "default",
|
|
166
165
|
bgmDelayDurationMs: undefined,
|
|
167
166
|
customSystemMessages: {},
|
|
167
|
+
pictureRegistry: [],
|
|
168
168
|
};
|
|
169
169
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwawing/loader",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0-save-bug-fix.based-on.3.12.17.p.1",
|
|
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",
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://github.com/WWAWing/WWALoader#readme",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@wwawing/event-emitter": "^
|
|
47
|
+
"@wwawing/event-emitter": "^4.1.0-save-bug-fix.based-on.3.12.17.p.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@wwawing/common-interface": "^
|
|
50
|
+
"@wwawing/common-interface": "^4.1.0-save-bug-fix.based-on.3.12.17.p.1",
|
|
51
51
|
"cross-env": "^7.0.3",
|
|
52
|
-
"html-loader": "^
|
|
52
|
+
"html-loader": "^5.1.0",
|
|
53
53
|
"html-webpack-plugin": "^5.5.0",
|
|
54
54
|
"http-server": "^14.1.1",
|
|
55
|
-
"npm-run-
|
|
56
|
-
"shelljs": "^0.
|
|
57
|
-
"shx": "^0.
|
|
58
|
-
"ts-loader": "^9.
|
|
59
|
-
"ts-node": "^10.9.
|
|
60
|
-
"typescript": "^5.
|
|
55
|
+
"npm-run-all2": "^8.0.1",
|
|
56
|
+
"shelljs": "^0.9.2",
|
|
57
|
+
"shx": "^0.4.0",
|
|
58
|
+
"ts-loader": "^9.5.2",
|
|
59
|
+
"ts-node": "^10.9.2",
|
|
60
|
+
"typescript": "^5.8.3",
|
|
61
61
|
"webpack": "^5.83.1",
|
|
62
62
|
"webpack-cli": "^5.1.1"
|
|
63
63
|
},
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
|
-
"node": ">=
|
|
69
|
-
"npm": ">=
|
|
68
|
+
"node": ">=22",
|
|
69
|
+
"npm": ">=10"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "eeda902be8443fb2eb84694501dbe7a2552cb5ce"
|
|
72
72
|
}
|