@wwawing/engine 3.8.0-alpha.3 → 3.9.0-beta.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.
package/lib/wwa_data.d.ts CHANGED
@@ -256,10 +256,6 @@ export declare enum MacroType {
256
256
  VAR_MAP = 54,
257
257
  VAR_MOD = 55,
258
258
  NO_GAMEOVER = 56,
259
- ELSE_IF = 57,
260
- ELSE = 58,
261
- END_IF = 59,
262
- SET = 60,
263
259
  GAMEPAD_BUTTON = 100,
264
260
  OLDMOVE = 101
265
261
  }
@@ -319,10 +315,6 @@ export declare var macrotable: {
319
315
  $var_map: number;
320
316
  $var_mod: number;
321
317
  $no_gameover: number;
322
- $else_if: number;
323
- $else: number;
324
- $endif: number;
325
- $set: number;
326
318
  $gamepad_button: number;
327
319
  $oldmove: number;
328
320
  };
@@ -573,4 +565,3 @@ export declare type JsonRequestError<ErrorKind = JsonRequestErrorKind> = {
573
565
  kind: ErrorKind;
574
566
  detail: string;
575
567
  };
576
- export declare type SetMacroType = 'VARIABLE' | 'NUMBER' | 'HP' | 'HPMAX' | 'AT' | 'DF' | 'GD' | 'TIME' | 'STEP' | 'RAND';
@@ -1 +1,2 @@
1
+ export declare function checkTouchDevice(): boolean;
1
2
  export declare function inject(parent: HTMLDivElement, titleImgName: string): void;
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, JsonRequestError, SetMacroType } from "./wwa_data";
1
+ import { Coord, Position, LoaderProgress, LoadStage, YesNoState, Face, SidebarButton, SpeedChange, PartsType, AppearanceTriggerType, EquipmentStatus, ChangeStyleType, MacroStatusIndex, UserDevice, MacroImgFrameIndex, StatusKind, StatusSolutionKind, JsonRequestError } from "./wwa_data";
2
2
  import { MessageWindow, ParsedMessage } from "./wwa_message";
3
3
  import { ItemMenu } from "./wwa_item_menu";
4
4
  import { WWACompress } from "./wwa_save";
@@ -16,6 +16,8 @@ export declare class WWA {
16
16
  private _monster;
17
17
  private _keyStore;
18
18
  private _mouseStore;
19
+ private _virtualPadStore;
20
+ private _virtualPadButtonElements;
19
21
  private _gamePadStore;
20
22
  private _camera;
21
23
  _itemMenu: ItemMenu;
@@ -73,6 +75,7 @@ export declare class WWA {
73
75
  private _userVarNameListRequestError;
74
76
  private _canDisplayUserVars;
75
77
  private _isActive;
78
+ private _itemboxBackgroundPos;
76
79
  private _mapIDTable;
77
80
  private _mapObjectIDTable;
78
81
  wwaCustomEventEmitter: IEventEmitter;
@@ -270,12 +273,6 @@ export declare class WWA {
270
273
  setUserValRandNum(x: number, num: number, bias: number): void;
271
274
  private _generateUserValString;
272
275
  speedChangeJudge(speedChangeFlag: boolean): void;
273
- execIfMacro(macroStr?: string): void;
274
- execSetMacro(macroStr?: string): void;
275
- parseType(str: string): SetMacroType | null;
276
- parseValue(str: string): number;
277
- checkCondition(macroStr: any): boolean;
278
- ifElseResetStatus(): void;
279
276
  userVarUserIf(_triggerPartsPosition: Coord, args: string[]): void;
280
277
  private compareUserVar;
281
278
  setPlayerSpeedIndex(speedIndex: number): void;
@@ -287,6 +284,9 @@ export declare class WWA {
287
284
  x: number;
288
285
  y: number;
289
286
  }): void;
287
+ private _getVirtualPadButton;
288
+ private _setVirtualPadTouch;
289
+ private _setVirtualPadLeave;
290
290
  private _actionGamePadButtonItemMacro;
291
291
  setGamePadButtonItemTable(buttonID: number, itemBoxNo: number): void;
292
292
  private _checkSaveDataCompatibility;
@@ -22,7 +22,6 @@ export declare class Macro {
22
22
  macroType: MacroType;
23
23
  macroArgs: string[];
24
24
  constructor(_wwa: WWA, _triggerPartsID: number, _triggerPartsType: number, _triggerPartsPosition: Coord, macroType: MacroType, macroArgs: string[]);
25
- isIFMacro(): boolean;
26
25
  execute(): void;
27
26
  private _concatEmptyArgs;
28
27
  private _parseInt;
@@ -52,9 +51,6 @@ export declare class Macro {
52
51
  private _executeVarSetRandMacro;
53
52
  private _executeGameSpeedMacro;
54
53
  private _executeIfMacro;
55
- private _executeIfElseMacro;
56
- private _executeElseMacro;
57
- private _executeEndIfMacro;
58
54
  private _executeSetSpeedMacro;
59
55
  private _executeCopyTimeToMacro;
60
56
  private _executeHideStatusMacro;
@@ -85,7 +81,6 @@ export declare class Macro {
85
81
  private _executeGamePadButtonMacro;
86
82
  private _executeOldMoveMacro;
87
83
  private _executeNoGameOverMacro;
88
- private _executeSetMacro;
89
84
  }
90
85
  export declare function parseMacro(wwa: WWA, partsID: number, partsType: PartsType, position: Coord, macroStr: string): Macro;
91
86
  export declare class TextWindow {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwawing/engine",
3
- "version": "3.8.0-alpha.3",
3
+ "version": "3.9.0-beta.0",
4
4
  "description": "World Wide Adventure: an RPG Engine.",
5
5
  "main": "./lib/wwa.js",
6
6
  "files": [
@@ -45,13 +45,14 @@
45
45
  "@types/pug": "^2.0.4",
46
46
  "@types/terser-webpack-plugin": "^5.0.3",
47
47
  "@types/webpack": "^5.28.0",
48
- "@wwawing/assets": "^3.8.0-alpha.3",
49
- "@wwawing/common-interface": "^3.8.0-alpha.3",
50
- "@wwawing/debug-server": "^3.8.0-alpha.3",
51
- "@wwawing/event-emitter": "^3.8.0-alpha.3",
52
- "@wwawing/loader": "^3.8.0-alpha.3",
53
- "@wwawing/page-generator": "^3.8.0-alpha.3",
54
- "@wwawing/styles": "^3.8.0-alpha.3",
48
+ "@wwawing/assets": "^3.9.0-beta.0",
49
+ "@wwawing/common-interface": "^3.9.0-beta.0",
50
+ "@wwawing/debug-server": "^3.9.0-beta.0",
51
+ "@wwawing/event-emitter": "^3.9.0-beta.0",
52
+ "@wwawing/loader": "^3.9.0-beta.0",
53
+ "@wwawing/page-generator": "^3.9.0-beta.0",
54
+ "@wwawing/styles": "^3.9.0-beta.0",
55
+ "@wwawing/virtual-pad": "^3.9.0-beta.0",
55
56
  "crypto-js": "4.0.0",
56
57
  "npm-run-all": "^4.1.5",
57
58
  "pug": "^3.0.2",
@@ -71,5 +72,5 @@
71
72
  "node": ">=16",
72
73
  "npm": ">=8"
73
74
  },
74
- "gitHead": "f944efa0aca8afeb2eccdd5d04e7a210514be9d7"
75
+ "gitHead": "31f57918222d901ab542e8382dcd2c2b79023af4"
75
76
  }