@wwawing/common-interface 4.1.0-unstable.based-on.3.12.11 → 4.1.0-unstable.based-on.3.12.11.p.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.
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 1996-2015 NAO
4
- Copyright (c) 2015-2023 WWA Wing Team
4
+ Copyright (c) 2015-2024 WWA Wing Team
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
package/lib/wwa_data.d.ts CHANGED
@@ -1,9 +1,22 @@
1
- import type { Key } from "./wwa_system_message";
1
+ import { Key } from "./wwa_system_message";
2
+ import { PictureProperties } from "./wwa_picture";
2
3
  export interface Coord {
3
4
  x: number;
4
5
  y: number;
5
6
  }
6
7
  export type GameOverPolicy = "default" | "never" | "except-macro";
8
+ type PictureRegistryBase<N> = {
9
+ layerNumber: number;
10
+ imgPosX: number;
11
+ imgPosY: number;
12
+ imgPosX2: number;
13
+ imgPosY2: number;
14
+ triggerPartsX: number;
15
+ triggerPartsY: number;
16
+ properties: PictureProperties<N>;
17
+ };
18
+ export type PictureRegistry = PictureRegistryBase<number>;
19
+ export type RawPictureRegistry = PictureRegistryBase<number | string>;
7
20
  export interface WWAData {
8
21
  version: number;
9
22
  gameoverX: number;
@@ -84,7 +97,8 @@ export interface WWAData {
84
97
  isItemEffectEnabled: boolean;
85
98
  frameCount: number;
86
99
  gamePadButtonItemTable: number[];
87
- userVar: number[];
100
+ userVar: (string | number | boolean)[];
101
+ userNamedVar: [string, string | number | boolean][];
88
102
  permitChangeGameSpeed: boolean;
89
103
  gameSpeedIndex: number;
90
104
  playTime: number;
@@ -96,4 +110,6 @@ export interface WWAData {
96
110
  gameOverPolicy: GameOverPolicy;
97
111
  bgmDelayDurationMs: number;
98
112
  customSystemMessages: Partial<Record<Key, string>>;
113
+ pictureRegistry: PictureRegistry[];
99
114
  }
115
+ export {};
@@ -0,0 +1,17 @@
1
+ export interface PictureProperties<N = number> {
2
+ pos?: [N, N];
3
+ time?: N;
4
+ size?: [N, N];
5
+ repeat?: [N, N];
6
+ img?: ([N, N] | [N, N, N, N]);
7
+ imgFile?: string;
8
+ crop?: [N, N];
9
+ text?: string;
10
+ font?: string;
11
+ color?: [N, N, N];
12
+ textAlign?: "center" | "end" | "left" | "right" | "start";
13
+ opacity?: N;
14
+ next?: [N] | [N, N];
15
+ map?: [N, N, N] | [N, N, N, N];
16
+ script?: string;
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -53,6 +53,10 @@ const _systemMessage = Object.freeze({
53
53
  code: 301,
54
54
  defaultText: "相手の防御能力が高すぎる!",
55
55
  },
56
+ BATTLE_NOT_SETTLED: {
57
+ code: 302,
58
+ defaultText: "勝負がつかない!"
59
+ },
56
60
  CONFIRM_ENTER_URL_GATE: {
57
61
  code: 401,
58
62
  defaultText: `他のページにリンクします。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwawing/common-interface",
3
- "version": "4.1.0-unstable.based-on.3.12.11",
3
+ "version": "4.1.0-unstable.based-on.3.12.11.p.2",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "main": "lib/index.js",
@@ -23,5 +23,5 @@
23
23
  "node": ">=18",
24
24
  "npm": ">=8"
25
25
  },
26
- "gitHead": "b5cdb9edba2e42e7719000d99ed09d66e3595d3c"
26
+ "gitHead": "dbd01b5a2dfdb1af76bab9c8189cd1070ce28740"
27
27
  }