@wwawing/engine 3.8.0-alpha.0 → 3.8.0-beta.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/lib/wwa_data.d.ts CHANGED
@@ -256,9 +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
259
  GAMEPAD_BUTTON = 100,
263
260
  OLDMOVE = 101
264
261
  }
@@ -318,9 +315,6 @@ export declare var macrotable: {
318
315
  $var_map: number;
319
316
  $var_mod: number;
320
317
  $no_gameover: number;
321
- $else_if: number;
322
- $else: number;
323
- $endif: number;
324
318
  $gamepad_button: number;
325
319
  $oldmove: number;
326
320
  };
@@ -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
@@ -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,9 +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
- checkCondition(macroStr: any): boolean;
275
- ifElseResetStatus(): void;
276
276
  userVarUserIf(_triggerPartsPosition: Coord, args: string[]): void;
277
277
  private compareUserVar;
278
278
  setPlayerSpeedIndex(speedIndex: number): void;
@@ -284,6 +284,9 @@ export declare class WWA {
284
284
  x: number;
285
285
  y: number;
286
286
  }): void;
287
+ private _getVirtualPadButton;
288
+ private _setVirtualPadTouch;
289
+ private _setVirtualPadLeave;
287
290
  private _actionGamePadButtonItemMacro;
288
291
  setGamePadButtonItemTable(buttonID: number, itemBoxNo: number): void;
289
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwawing/engine",
3
- "version": "3.8.0-alpha.0",
3
+ "version": "3.8.0-beta.1",
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.0",
49
- "@wwawing/common-interface": "^3.8.0-alpha.0",
50
- "@wwawing/debug-server": "^3.8.0-alpha.0",
51
- "@wwawing/event-emitter": "^3.8.0-alpha.0",
52
- "@wwawing/loader": "^3.8.0-alpha.0",
53
- "@wwawing/page-generator": "^3.8.0-alpha.0",
54
- "@wwawing/styles": "^3.8.0-alpha.0",
48
+ "@wwawing/assets": "^3.8.0-beta.1",
49
+ "@wwawing/common-interface": "^3.8.0-beta.1",
50
+ "@wwawing/debug-server": "^3.8.0-beta.1",
51
+ "@wwawing/event-emitter": "^3.8.0-beta.1",
52
+ "@wwawing/loader": "^3.8.0-beta.1",
53
+ "@wwawing/page-generator": "^3.8.0-beta.1",
54
+ "@wwawing/styles": "^3.8.0-beta.1",
55
+ "@wwawing/virtual-pad": "^3.8.0-beta.1",
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": "760a3156483b7f1ce7ab9bc5a8a008c5f658ff30"
75
+ "gitHead": "f27dbc4de044cc28ab944997ea1c3361e94228cc"
75
76
  }