ygopro-msg-encode 1.1.25 → 1.1.26

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.
@@ -10,6 +10,7 @@ export declare class CardQuery_Counter {
10
10
  export declare class CardQuery {
11
11
  flags: number;
12
12
  empty?: boolean;
13
+ queryLength?: number;
13
14
  code?: number;
14
15
  position?: number;
15
16
  alias?: number;
@@ -37,3 +38,14 @@ export declare class CardQuery {
37
38
  toPayload(): Uint8Array;
38
39
  }
39
40
  export declare function serializeCardQuery(card?: Partial<CardQuery>): Uint8Array;
41
+ export interface CardQueryChunk {
42
+ length: number;
43
+ payload: Uint8Array;
44
+ }
45
+ export declare function parseCardQueryChunk(data: Uint8Array, offset?: number, context?: string): {
46
+ card: CardQuery;
47
+ length: number;
48
+ };
49
+ export declare function serializeCardQueryChunk(card?: Partial<CardQuery>): CardQueryChunk;
50
+ export declare function createClearedCardQuery(source?: Partial<CardQuery>): CardQuery;
51
+ export declare function createCodeHiddenCardQuery(source?: Partial<CardQuery>): CardQuery;
@@ -3,6 +3,7 @@ export declare class YGOProMsgCancelTarget_CardLocation {
3
3
  controller: number;
4
4
  location: number;
5
5
  sequence: number;
6
+ position: number;
6
7
  }
7
8
  export declare class YGOProMsgCancelTarget extends YGOProMsgBase {
8
9
  static identifier: 97;
@@ -3,6 +3,7 @@ export declare class YGOProMsgCardTarget_CardLocation {
3
3
  controller: number;
4
4
  location: number;
5
5
  sequence: number;
6
+ position: number;
6
7
  }
7
8
  export declare class YGOProMsgCardTarget extends YGOProMsgBase {
8
9
  static identifier: 96;
@@ -3,10 +3,10 @@ export declare class YGOProMsgEquip_CardLocation {
3
3
  controller: number;
4
4
  location: number;
5
5
  sequence: number;
6
+ position: number;
6
7
  }
7
8
  export declare class YGOProMsgEquip extends YGOProMsgBase {
8
9
  static identifier: 93;
9
10
  equip: YGOProMsgEquip_CardLocation;
10
11
  target: YGOProMsgEquip_CardLocation;
11
- position: number;
12
12
  }
@@ -78,6 +78,7 @@ export * from './swap-grave-deck';
78
78
  export * from './tag-swap';
79
79
  export * from './toss-coin';
80
80
  export * from './toss-dice';
81
+ export * from './unequip';
81
82
  export * from './update-card';
82
83
  export * from './update-data';
83
84
  export * from './waiting';
@@ -8,7 +8,9 @@ export declare class YGOProMsgSwap_CardLocation {
8
8
  }
9
9
  export declare class YGOProMsgSwap extends YGOProMsgBase {
10
10
  static identifier: 55;
11
+ code1: number;
11
12
  card1: YGOProMsgSwap_CardLocation;
13
+ code2: number;
12
14
  card2: YGOProMsgSwap_CardLocation;
13
15
  getRequireRefreshCards(): RequireQueryCardLocation[];
14
16
  }
@@ -0,0 +1,11 @@
1
+ import { YGOProMsgBase } from '../base';
2
+ export declare class YGOProMsgUnequip_CardLocation {
3
+ controller: number;
4
+ location: number;
5
+ sequence: number;
6
+ position: number;
7
+ }
8
+ export declare class YGOProMsgUnequip extends YGOProMsgBase {
9
+ static identifier: number;
10
+ card: YGOProMsgUnequip_CardLocation;
11
+ }
@@ -5,6 +5,8 @@ export declare class YGOProMsgUpdateData extends YGOProMsgBase {
5
5
  player: number;
6
6
  location: number;
7
7
  cards: CardQuery[];
8
+ private shouldHideForOpponent;
9
+ private shouldHideForTeammate;
8
10
  opponentView(): this;
9
11
  teammateView(): this;
10
12
  fromPayload(data: Uint8Array): this;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ygopro-msg-encode",
3
3
  "description": "TS lib for encode / decode YGOPro proto",
4
- "version": "1.1.25",
4
+ "version": "1.1.26",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",