@wwawing/common-interface 4.0.2 → 4.0.3

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
@@ -16,7 +16,7 @@ type PictureRegistryBase<N> = {
16
16
  imgPosY2: number;
17
17
  triggerPartsX: number;
18
18
  triggerPartsY: number;
19
- soundNumber: number;
19
+ soundNumber: number | string;
20
20
  properties: PictureProperties<N>;
21
21
  };
22
22
  export type PictureRegistry = PictureRegistryBase<number>;
@@ -63,7 +63,7 @@ export interface WWAData {
63
63
  compatibleForOldMapFlag: boolean;
64
64
  objectNoCollapseDefaultFlag: boolean;
65
65
  delPlayerFlag: boolean;
66
- bgm: number;
66
+ bgm: number | string;
67
67
  effectCoords: Coord[];
68
68
  effectWaits: number;
69
69
  imgStatusEnergyX: number;
@@ -115,5 +115,13 @@ export interface WWAData {
115
115
  bgmDelayDurationMs: number;
116
116
  customSystemMessages: Partial<Record<Key, string>>;
117
117
  pictureRegistry: PictureRegistry[];
118
+ decisionSound?: number | string;
119
+ attackSound?: number | string;
120
+ }
121
+ export declare enum SystemSound {
122
+ DECISION = 1,
123
+ ATTACK = 3,
124
+ BGM_LB = 70,
125
+ NO_SOUND = 99
118
126
  }
119
127
  export {};
package/lib/wwa_data.js CHANGED
@@ -1 +1,7 @@
1
- export {};
1
+ export var SystemSound;
2
+ (function (SystemSound) {
3
+ SystemSound[SystemSound["DECISION"] = 1] = "DECISION";
4
+ SystemSound[SystemSound["ATTACK"] = 3] = "ATTACK";
5
+ SystemSound[SystemSound["BGM_LB"] = 70] = "BGM_LB";
6
+ SystemSound[SystemSound["NO_SOUND"] = 99] = "NO_SOUND";
7
+ })(SystemSound || (SystemSound = {}));
@@ -15,7 +15,7 @@ export interface PictureProperties<N = number> {
15
15
  img?: ([N, N] | [N, N, N, N]);
16
16
  imgFile?: string;
17
17
  imgMap?: [N, N] | [N, N, N];
18
- sound?: N;
18
+ sound?: N | string;
19
19
  crop?: [N, N];
20
20
  text?: string;
21
21
  font?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwawing/common-interface",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "main": "lib/index.js",
@@ -29,5 +29,5 @@
29
29
  "node": ">=24",
30
30
  "npm": ">=11"
31
31
  },
32
- "gitHead": "86e576667cba53fbd81af94aea4a5efb58c2e0c6"
32
+ "gitHead": "c72197df927c7f0c6e16e70c9f13384567350772"
33
33
  }