@wwawing/engine 3.12.5 → 3.12.7
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/wwa.js +3 -3
- package/lib/wwa_data.d.ts +4 -13
- package/lib/wwa_main.d.ts +4 -1
- package/lib/wwa_message.d.ts +2 -0
- package/package.json +10 -10
package/lib/wwa_data.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WWA } from "./wwa_main";
|
|
2
2
|
import { Camera } from "./wwa_camera";
|
|
3
|
-
import { WWAData } from "@wwawing/common-interface";
|
|
3
|
+
import { type WWAData, SystemMessageConfig, SystemMessageKey, systemMessageKeys, SystemMessageConfigMap } from "@wwawing/common-interface";
|
|
4
4
|
import type { JsonResponseErrorKind } from "./json_api_client";
|
|
5
|
-
export { WWAData };
|
|
5
|
+
export { type WWAData, SystemMessageConfig, SystemMessageKey, systemMessageKeys, SystemMessageConfigMap };
|
|
6
6
|
export declare class EquipmentStatus {
|
|
7
7
|
strength: number;
|
|
8
8
|
defence: number;
|
|
@@ -181,17 +181,6 @@ export declare enum SecondCandidateMoveType {
|
|
|
181
181
|
UNDECIDED = 2
|
|
182
182
|
}
|
|
183
183
|
export declare var sidebarButtonCellElementID: string[];
|
|
184
|
-
export declare enum SystemMessage1 {
|
|
185
|
-
ASK_LINK = 5,
|
|
186
|
-
NO_MONEY = 6,
|
|
187
|
-
NO_ITEM = 7,
|
|
188
|
-
USE_ITEM = 8
|
|
189
|
-
}
|
|
190
|
-
export declare enum SystemMessage2 {
|
|
191
|
-
CLICKABLE_ITEM = 0,
|
|
192
|
-
FULL_ITEM = 1,
|
|
193
|
-
LOAD_SE = 2
|
|
194
|
-
}
|
|
195
184
|
export declare enum MacroType {
|
|
196
185
|
UNDEFINED = 0,
|
|
197
186
|
IMGPLAYER = 1,
|
|
@@ -256,6 +245,7 @@ export declare enum MacroType {
|
|
|
256
245
|
SHOW_STR2 = 62,
|
|
257
246
|
CONSOLE_LOG2 = 63,
|
|
258
247
|
DELAYBGM = 64,
|
|
248
|
+
SYSMSG = 65,
|
|
259
249
|
GAMEPAD_BUTTON = 100,
|
|
260
250
|
OLDMOVE = 101,
|
|
261
251
|
LEGACY_IF = 10050
|
|
@@ -326,6 +316,7 @@ export declare var macrotable: {
|
|
|
326
316
|
$show_str2: number;
|
|
327
317
|
$console_log2: number;
|
|
328
318
|
$delaybgm: number;
|
|
319
|
+
$sysmsg: number;
|
|
329
320
|
$gamepad_button: number;
|
|
330
321
|
$oldmove: number;
|
|
331
322
|
};
|
package/lib/wwa_main.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Coord, Position, LoaderProgress, LoadStage, YesNoState, Face, SidebarButton, SpeedChange, PartsType, AppearanceTriggerType, EquipmentStatus, ChangeStyleType, MacroStatusIndex, UserDevice, MacroImgFrameIndex, StatusKind, StatusSolutionKind, ScoreOptions, TriggerParts } from "./wwa_data";
|
|
1
|
+
import { Coord, Position, LoaderProgress, LoadStage, YesNoState, Face, SidebarButton, SpeedChange, PartsType, AppearanceTriggerType, EquipmentStatus, ChangeStyleType, MacroStatusIndex, UserDevice, MacroImgFrameIndex, StatusKind, StatusSolutionKind, ScoreOptions, TriggerParts, SystemMessageKey } from "./wwa_data";
|
|
2
2
|
import { MessageWindow, Page } from "./wwa_message";
|
|
3
3
|
import { ItemMenu } from "./wwa_item_menu";
|
|
4
4
|
import { WWACompress } from "./wwa_save";
|
|
@@ -325,5 +325,8 @@ export declare class WWA {
|
|
|
325
325
|
shouldApplyGameOver({ isCalledByMacro }: {
|
|
326
326
|
isCalledByMacro: boolean;
|
|
327
327
|
}): boolean;
|
|
328
|
+
private _loadSystemMessage;
|
|
329
|
+
resolveSystemMessage(systemMessageKey: SystemMessageKey): string;
|
|
330
|
+
overwriteSystemMessage(systemMessageKey: SystemMessageKey, message: string | undefined): void;
|
|
328
331
|
}
|
|
329
332
|
export {};
|
package/lib/wwa_message.d.ts
CHANGED
|
@@ -142,6 +142,8 @@ export declare class Macro {
|
|
|
142
142
|
private _executeNoGameOverMacro;
|
|
143
143
|
private _executeSetMacro;
|
|
144
144
|
private _executeDelayBgmMacro;
|
|
145
|
+
private _executeSysMsgMacro;
|
|
146
|
+
private resolveSystemMessageKeyFromMacroArg;
|
|
145
147
|
}
|
|
146
148
|
export declare function parseMacro(wwa: WWA, partsID: number, partsType: PartsType, position: Coord, macroStr: string): Macro;
|
|
147
149
|
export declare class TextWindow {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwawing/engine",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.7",
|
|
4
4
|
"description": "World Wide Adventure: an RPG Engine.",
|
|
5
5
|
"main": "./lib/wwa.js",
|
|
6
6
|
"files": [
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@types/pug": "^2.0.6",
|
|
49
49
|
"@types/terser-webpack-plugin": "^5.2.0",
|
|
50
50
|
"@types/webpack": "^5.28.0",
|
|
51
|
-
"@wwawing/assets": "^3.12.
|
|
52
|
-
"@wwawing/common-interface": "^3.12.
|
|
53
|
-
"@wwawing/debug-server": "^3.12.
|
|
54
|
-
"@wwawing/event-emitter": "^3.12.
|
|
55
|
-
"@wwawing/loader": "^3.12.
|
|
56
|
-
"@wwawing/page-generator": "^3.12.
|
|
57
|
-
"@wwawing/styles": "^3.12.
|
|
58
|
-
"@wwawing/virtual-pad": "^3.12.
|
|
51
|
+
"@wwawing/assets": "^3.12.7",
|
|
52
|
+
"@wwawing/common-interface": "^3.12.7",
|
|
53
|
+
"@wwawing/debug-server": "^3.12.7",
|
|
54
|
+
"@wwawing/event-emitter": "^3.12.7",
|
|
55
|
+
"@wwawing/loader": "^3.12.7",
|
|
56
|
+
"@wwawing/page-generator": "^3.12.7",
|
|
57
|
+
"@wwawing/styles": "^3.12.7",
|
|
58
|
+
"@wwawing/virtual-pad": "^3.12.7",
|
|
59
59
|
"crypto-js": "^4.1.1",
|
|
60
60
|
"jest": "^29.5.0",
|
|
61
61
|
"jest-cli": "^29.5.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"node": ">=18",
|
|
79
79
|
"npm": ">=8"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "5c617e488c39064cc28ae825ded5f86982d49654"
|
|
82
82
|
}
|