@wwawing/loader 4.1.0-unstable.based-on.3.12.11 → 4.1.0-unstable.based-on.3.12.11.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
3
|
Copyright (c) 1996-2015 NAO
|
|
4
|
-
Copyright (c) 2015-
|
|
4
|
+
Copyright (c) 2015-2024 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
|
|
@@ -116,10 +116,8 @@ class TextLoader {
|
|
|
116
116
|
wwaData.moves = infra_1.WWAConsts.DEFAULT_MOVES;
|
|
117
117
|
wwaData.gameSpeedIndex = infra_1.WWAConsts.DEFAULT_SPEED_INDEX;
|
|
118
118
|
wwaData.permitChangeGameSpeed = true;
|
|
119
|
-
wwaData.userVar =
|
|
120
|
-
|
|
121
|
-
wwaData.userVar[i] = 0;
|
|
122
|
-
}
|
|
119
|
+
wwaData.userVar = Array.from({ length: infra_1.WWAConsts.USER_VAR_NUM }).map(() => 0);
|
|
120
|
+
wwaData.userNamedVar = [];
|
|
123
121
|
wwaData.playTime = 0;
|
|
124
122
|
wwaData.isVisibleStatusEnergy = true;
|
|
125
123
|
wwaData.isVisibleStatusStrength = true;
|
|
@@ -127,6 +125,7 @@ class TextLoader {
|
|
|
127
125
|
wwaData.isVisibleStatusGold = true;
|
|
128
126
|
wwaData.gameOverPolicy = "default";
|
|
129
127
|
wwaData.bgmDelayDurationMs = 0;
|
|
128
|
+
wwaData.pictureRegistry = [];
|
|
130
129
|
return wwaData;
|
|
131
130
|
}
|
|
132
131
|
getMessageFromData() {
|
package/lib/infra/index.js
CHANGED
|
@@ -158,6 +158,7 @@ function createDefaultWWAData() {
|
|
|
158
158
|
frameCount: undefined,
|
|
159
159
|
gamePadButtonItemTable: undefined,
|
|
160
160
|
userVar: undefined,
|
|
161
|
+
userNamedVar: undefined,
|
|
161
162
|
permitChangeGameSpeed: undefined,
|
|
162
163
|
gameSpeedIndex: undefined,
|
|
163
164
|
playTime: undefined,
|
|
@@ -169,6 +170,7 @@ function createDefaultWWAData() {
|
|
|
169
170
|
gameOverPolicy: "default",
|
|
170
171
|
bgmDelayDurationMs: undefined,
|
|
171
172
|
customSystemMessages: {},
|
|
173
|
+
pictureRegistry: [],
|
|
172
174
|
};
|
|
173
175
|
}
|
|
174
176
|
exports.createDefaultWWAData = createDefaultWWAData;
|
|
@@ -113,10 +113,8 @@ export class TextLoader {
|
|
|
113
113
|
wwaData.moves = WWAConsts.DEFAULT_MOVES;
|
|
114
114
|
wwaData.gameSpeedIndex = WWAConsts.DEFAULT_SPEED_INDEX;
|
|
115
115
|
wwaData.permitChangeGameSpeed = true;
|
|
116
|
-
wwaData.userVar =
|
|
117
|
-
|
|
118
|
-
wwaData.userVar[i] = 0;
|
|
119
|
-
}
|
|
116
|
+
wwaData.userVar = Array.from({ length: WWAConsts.USER_VAR_NUM }).map(() => 0);
|
|
117
|
+
wwaData.userNamedVar = [];
|
|
120
118
|
wwaData.playTime = 0;
|
|
121
119
|
wwaData.isVisibleStatusEnergy = true;
|
|
122
120
|
wwaData.isVisibleStatusStrength = true;
|
|
@@ -124,6 +122,7 @@ export class TextLoader {
|
|
|
124
122
|
wwaData.isVisibleStatusGold = true;
|
|
125
123
|
wwaData.gameOverPolicy = "default";
|
|
126
124
|
wwaData.bgmDelayDurationMs = 0;
|
|
125
|
+
wwaData.pictureRegistry = [];
|
|
127
126
|
return wwaData;
|
|
128
127
|
}
|
|
129
128
|
getMessageFromData() {
|
package/module/infra/index.js
CHANGED
|
@@ -153,6 +153,7 @@ export function createDefaultWWAData() {
|
|
|
153
153
|
frameCount: undefined,
|
|
154
154
|
gamePadButtonItemTable: undefined,
|
|
155
155
|
userVar: undefined,
|
|
156
|
+
userNamedVar: undefined,
|
|
156
157
|
permitChangeGameSpeed: undefined,
|
|
157
158
|
gameSpeedIndex: undefined,
|
|
158
159
|
playTime: undefined,
|
|
@@ -164,5 +165,6 @@ export function createDefaultWWAData() {
|
|
|
164
165
|
gameOverPolicy: "default",
|
|
165
166
|
bgmDelayDurationMs: undefined,
|
|
166
167
|
customSystemMessages: {},
|
|
168
|
+
pictureRegistry: [],
|
|
167
169
|
};
|
|
168
170
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwawing/loader",
|
|
3
|
-
"version": "4.1.0-unstable.based-on.3.12.11",
|
|
3
|
+
"version": "4.1.0-unstable.based-on.3.12.11.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,10 +44,10 @@
|
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://github.com/WWAWing/WWALoader#readme",
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@wwawing/event-emitter": "^4.1.0-unstable.based-on.3.12.11"
|
|
47
|
+
"@wwawing/event-emitter": "^4.1.0-unstable.based-on.3.12.11.p.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@wwawing/common-interface": "^4.1.0-unstable.based-on.3.12.11",
|
|
50
|
+
"@wwawing/common-interface": "^4.1.0-unstable.based-on.3.12.11.p.1",
|
|
51
51
|
"cross-env": "^7.0.3",
|
|
52
52
|
"html-loader": "^4.2.0",
|
|
53
53
|
"html-webpack-plugin": "^5.5.0",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"node": ">=18",
|
|
69
69
|
"npm": ">=8"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "92e5d0a4279fcd17ba2a078ff90e43dc6f3ac549"
|
|
72
72
|
}
|