@wwawing/loader 3.5.14 → 3.6.0-alpha.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.
|
@@ -114,6 +114,17 @@ var TextLoader = (function () {
|
|
|
114
114
|
wwaData.statusColorG = infra_1.WWAConsts.DEFAULT_STATUS_COLOR_G;
|
|
115
115
|
wwaData.statusColorB = infra_1.WWAConsts.DEFAULT_STATUS_COLOR_B;
|
|
116
116
|
wwaData.moves = infra_1.WWAConsts.DEFAULT_MOVES;
|
|
117
|
+
wwaData.gameSpeedIndex = infra_1.WWAConsts.DEFAULT_SPEED_INDEX;
|
|
118
|
+
wwaData.permitChangeGameSpeed = true;
|
|
119
|
+
wwaData.userVar = new Array(infra_1.WWAConsts.USER_VAR_NUM);
|
|
120
|
+
for (var i = 0; i < infra_1.WWAConsts.USER_VAR_NUM; i++) {
|
|
121
|
+
wwaData.userVar[i] = 0;
|
|
122
|
+
}
|
|
123
|
+
wwaData.playTime = 0;
|
|
124
|
+
wwaData.isVisibleStatusEnergy = true;
|
|
125
|
+
wwaData.isVisibleStatusStrength = true;
|
|
126
|
+
wwaData.isVisibleStatusDefence = true;
|
|
127
|
+
wwaData.isVisibleStatusGold = true;
|
|
117
128
|
return wwaData;
|
|
118
129
|
};
|
|
119
130
|
TextLoader.prototype.getMessageFromData = function () {
|
package/lib/infra/index.d.ts
CHANGED
|
@@ -50,6 +50,8 @@ export declare class WWAConsts {
|
|
|
50
50
|
static DEFAULT_STATUS_COLOR_G: number;
|
|
51
51
|
static DEFAULT_STATUS_COLOR_B: number;
|
|
52
52
|
static DEFAULT_MOVES: number;
|
|
53
|
+
static DEFAULT_SPEED_INDEX: number;
|
|
54
|
+
static USER_VAR_NUM: number;
|
|
53
55
|
}
|
|
54
56
|
export declare class LoaderError implements Error {
|
|
55
57
|
name: string;
|
package/lib/infra/index.js
CHANGED
|
@@ -53,6 +53,8 @@ var WWAConsts = (function () {
|
|
|
53
53
|
WWAConsts.DEFAULT_STATUS_COLOR_G = 0x0;
|
|
54
54
|
WWAConsts.DEFAULT_STATUS_COLOR_B = 0x0;
|
|
55
55
|
WWAConsts.DEFAULT_MOVES = 0;
|
|
56
|
+
WWAConsts.DEFAULT_SPEED_INDEX = 3;
|
|
57
|
+
WWAConsts.USER_VAR_NUM = 256;
|
|
56
58
|
return WWAConsts;
|
|
57
59
|
}());
|
|
58
60
|
exports.WWAConsts = WWAConsts;
|
|
@@ -163,7 +165,15 @@ function createDefaultWWAData() {
|
|
|
163
165
|
checkString: undefined,
|
|
164
166
|
isItemEffectEnabled: undefined,
|
|
165
167
|
frameCount: undefined,
|
|
166
|
-
gamePadButtonItemTable: undefined
|
|
168
|
+
gamePadButtonItemTable: undefined,
|
|
169
|
+
userVar: undefined,
|
|
170
|
+
permitChangeGameSpeed: undefined,
|
|
171
|
+
gameSpeedIndex: undefined,
|
|
172
|
+
playTime: undefined,
|
|
173
|
+
isVisibleStatusEnergy: undefined,
|
|
174
|
+
isVisibleStatusStrength: undefined,
|
|
175
|
+
isVisibleStatusDefence: undefined,
|
|
176
|
+
isVisibleStatusGold: undefined
|
|
167
177
|
};
|
|
168
178
|
}
|
|
169
179
|
exports.createDefaultWWAData = createDefaultWWAData;
|
|
@@ -111,6 +111,17 @@ var TextLoader = (function () {
|
|
|
111
111
|
wwaData.statusColorG = WWAConsts.DEFAULT_STATUS_COLOR_G;
|
|
112
112
|
wwaData.statusColorB = WWAConsts.DEFAULT_STATUS_COLOR_B;
|
|
113
113
|
wwaData.moves = WWAConsts.DEFAULT_MOVES;
|
|
114
|
+
wwaData.gameSpeedIndex = WWAConsts.DEFAULT_SPEED_INDEX;
|
|
115
|
+
wwaData.permitChangeGameSpeed = true;
|
|
116
|
+
wwaData.userVar = new Array(WWAConsts.USER_VAR_NUM);
|
|
117
|
+
for (var i = 0; i < WWAConsts.USER_VAR_NUM; i++) {
|
|
118
|
+
wwaData.userVar[i] = 0;
|
|
119
|
+
}
|
|
120
|
+
wwaData.playTime = 0;
|
|
121
|
+
wwaData.isVisibleStatusEnergy = true;
|
|
122
|
+
wwaData.isVisibleStatusStrength = true;
|
|
123
|
+
wwaData.isVisibleStatusDefence = true;
|
|
124
|
+
wwaData.isVisibleStatusGold = true;
|
|
114
125
|
return wwaData;
|
|
115
126
|
};
|
|
116
127
|
TextLoader.prototype.getMessageFromData = function () {
|
package/module/infra/index.d.ts
CHANGED
|
@@ -50,6 +50,8 @@ export declare class WWAConsts {
|
|
|
50
50
|
static DEFAULT_STATUS_COLOR_G: number;
|
|
51
51
|
static DEFAULT_STATUS_COLOR_B: number;
|
|
52
52
|
static DEFAULT_MOVES: number;
|
|
53
|
+
static DEFAULT_SPEED_INDEX: number;
|
|
54
|
+
static USER_VAR_NUM: number;
|
|
53
55
|
}
|
|
54
56
|
export declare class LoaderError implements Error {
|
|
55
57
|
name: string;
|
package/module/infra/index.js
CHANGED
|
@@ -50,6 +50,8 @@ var WWAConsts = (function () {
|
|
|
50
50
|
WWAConsts.DEFAULT_STATUS_COLOR_G = 0x0;
|
|
51
51
|
WWAConsts.DEFAULT_STATUS_COLOR_B = 0x0;
|
|
52
52
|
WWAConsts.DEFAULT_MOVES = 0;
|
|
53
|
+
WWAConsts.DEFAULT_SPEED_INDEX = 3;
|
|
54
|
+
WWAConsts.USER_VAR_NUM = 256;
|
|
53
55
|
return WWAConsts;
|
|
54
56
|
}());
|
|
55
57
|
export { WWAConsts };
|
|
@@ -160,6 +162,14 @@ export function createDefaultWWAData() {
|
|
|
160
162
|
checkString: undefined,
|
|
161
163
|
isItemEffectEnabled: undefined,
|
|
162
164
|
frameCount: undefined,
|
|
163
|
-
gamePadButtonItemTable: undefined
|
|
165
|
+
gamePadButtonItemTable: undefined,
|
|
166
|
+
userVar: undefined,
|
|
167
|
+
permitChangeGameSpeed: undefined,
|
|
168
|
+
gameSpeedIndex: undefined,
|
|
169
|
+
playTime: undefined,
|
|
170
|
+
isVisibleStatusEnergy: undefined,
|
|
171
|
+
isVisibleStatusStrength: undefined,
|
|
172
|
+
isVisibleStatusDefence: undefined,
|
|
173
|
+
isVisibleStatusGold: undefined
|
|
164
174
|
};
|
|
165
175
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwawing/loader",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-alpha.0",
|
|
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",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/WWAWing/WWALoader#readme",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@wwawing/event-emitter": "^3.
|
|
48
|
+
"@wwawing/event-emitter": "^3.6.0-alpha.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@wwawing/common-interface": "^3.
|
|
51
|
+
"@wwawing/common-interface": "^3.6.0-alpha.0",
|
|
52
52
|
"cross-env": "^7.0.3",
|
|
53
53
|
"html-loader": "^2.1.2",
|
|
54
54
|
"html-webpack-plugin": "^5.3.1",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"node": ">=14",
|
|
70
70
|
"npm": ">=6"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "c87799aab79bfe7109a5597df9aa457e7e21f9e8"
|
|
73
73
|
}
|