@wwawing/engine 3.12.0 → 3.12.2

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.
@@ -4,6 +4,7 @@ export declare const regMapByCoord: RegExp;
4
4
  export declare const regObjectByCoord: RegExp;
5
5
  export declare const regItemByBoxId: RegExp;
6
6
  export declare const regRand: RegExp;
7
+ export declare const regItemCount: RegExp;
7
8
  export declare const regAdvance: RegExp;
8
9
  export declare const regNormal: RegExp;
9
10
  export declare const regMacroArg: RegExp;
@@ -1,11 +1,11 @@
1
1
  import type { EquipmentStatus, Status, Coord, PartsType, Direction } from "../wwa_data";
2
- export declare type SetMacroType = 'VARIABLE' | 'MAP' | 'OBJECT' | 'ITEM' | 'NUMBER' | 'HP' | 'HPMAX' | 'AT' | 'AT_TOTAL' | 'AT_ITEMS' | 'DF' | 'DF_TOTAL' | 'DF_ITEMS' | 'GD' | 'TIME' | 'STEP' | 'X' | 'Y' | 'PX' | 'PY' | 'PDIR' | 'ID' | 'TYPE' | 'ITEM_COUNT' | 'RAND';
2
+ export declare type SetMacroType = 'VARIABLE' | 'MAP' | 'OBJECT' | 'ITEM' | 'NUMBER' | 'HP' | 'HPMAX' | 'AT' | 'AT_TOTAL' | 'AT_ITEMS' | 'DF' | 'DF_TOTAL' | 'DF_ITEMS' | 'GD' | 'TIME' | 'STEP' | 'X' | 'Y' | 'PX' | 'PY' | 'PDIR' | 'ID' | 'TYPE' | 'ITEM_COUNT_ALL' | 'RAND' | 'ITEM_COUNT';
3
3
  export declare type CNumberKind = "NUMBER";
4
4
  export declare type CVariableKind = "VARIABLE";
5
5
  export declare type CPartsKind = "MAP" | "OBJECT";
6
6
  export declare type CItemKind = "ITEM";
7
- export declare type CEnvKind = "HP" | "HPMAX" | "AT" | "AT_TOTAL" | "AT_ITEMS" | "DF" | "DF_TOTAL" | "DF_ITEMS" | "GD" | "STEP" | "TIME" | "X" | "Y" | "PX" | "PY" | "PDIR" | "ID" | "TYPE" | "ITEM_COUNT";
8
- export declare type CFunctionKind = "RAND";
7
+ export declare type CEnvKind = "HP" | "HPMAX" | "AT" | "AT_TOTAL" | "AT_ITEMS" | "DF" | "DF_TOTAL" | "DF_ITEMS" | "GD" | "STEP" | "TIME" | "X" | "Y" | "PX" | "PY" | "PDIR" | "ID" | "TYPE" | "ITEM_COUNT_ALL";
8
+ export declare type CFunctionKind = "RAND" | "ITEM_COUNT";
9
9
  export interface CNumber {
10
10
  type: CNumberKind;
11
11
  rawValue: number;
@@ -15,10 +15,12 @@ export declare class Page {
15
15
  extraInfo?: {
16
16
  partsId: number;
17
17
  partsType: PartsType;
18
+ partsPosition: Coord;
18
19
  };
19
20
  constructor(firstNode?: Node, isLastPage?: boolean, showChoice?: boolean, isSystemMessage?: boolean, scoreOptions?: ScoreOptions, extraInfo?: {
20
21
  partsId: number;
21
22
  partsType: PartsType;
23
+ partsPosition: Coord;
22
24
  });
23
25
  }
24
26
  export declare abstract class Node {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwawing/engine",
3
- "version": "3.12.0",
3
+ "version": "3.12.2",
4
4
  "description": "World Wide Adventure: an RPG Engine.",
5
5
  "main": "./lib/wwa.js",
6
6
  "files": [
@@ -45,14 +45,14 @@
45
45
  "@types/pug": "^2.0.6",
46
46
  "@types/terser-webpack-plugin": "^5.2.0",
47
47
  "@types/webpack": "^5.28.0",
48
- "@wwawing/assets": "^3.12.0",
49
- "@wwawing/common-interface": "^3.12.0",
50
- "@wwawing/debug-server": "^3.12.0",
51
- "@wwawing/event-emitter": "^3.12.0",
52
- "@wwawing/loader": "^3.12.0",
53
- "@wwawing/page-generator": "^3.12.0",
54
- "@wwawing/styles": "^3.12.0",
55
- "@wwawing/virtual-pad": "^3.12.0",
48
+ "@wwawing/assets": "^3.12.2",
49
+ "@wwawing/common-interface": "^3.12.2",
50
+ "@wwawing/debug-server": "^3.12.2",
51
+ "@wwawing/event-emitter": "^3.12.2",
52
+ "@wwawing/loader": "^3.12.2",
53
+ "@wwawing/page-generator": "^3.12.2",
54
+ "@wwawing/styles": "^3.12.2",
55
+ "@wwawing/virtual-pad": "^3.12.2",
56
56
  "crypto-js": "^4.1.1",
57
57
  "npm-run-all": "^4.1.5",
58
58
  "pug": "^3.0.2",
@@ -72,5 +72,5 @@
72
72
  "node": ">=18",
73
73
  "npm": ">=8"
74
74
  },
75
- "gitHead": "425332cd5a8ef2f9c3a5f6d5bc42e84d88e87b17"
75
+ "gitHead": "7d21c51df71824f542809f02e5de89b2c982524c"
76
76
  }