ygopro-msg-encode 1.1.21 → 1.1.23

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/dist/index.mjs CHANGED
@@ -3255,6 +3255,20 @@ __decorateClass([
3255
3255
  ], YGOProMsgChained.prototype, "chainCount", 2);
3256
3256
 
3257
3257
  // src/protos/msg/proto/chaining.ts
3258
+ var YGOProMsgChaining_CardLocation = class {
3259
+ static {
3260
+ __name(this, "YGOProMsgChaining_CardLocation");
3261
+ }
3262
+ };
3263
+ __decorateClass([
3264
+ BinaryField("u8", 0)
3265
+ ], YGOProMsgChaining_CardLocation.prototype, "controller", 2);
3266
+ __decorateClass([
3267
+ BinaryField("u8", 1)
3268
+ ], YGOProMsgChaining_CardLocation.prototype, "location", 2);
3269
+ __decorateClass([
3270
+ BinaryField("u8", 2)
3271
+ ], YGOProMsgChaining_CardLocation.prototype, "sequence", 2);
3258
3272
  var YGOProMsgChaining = class extends YGOProMsgBase {
3259
3273
  static {
3260
3274
  __name(this, "YGOProMsgChaining");
@@ -3279,14 +3293,14 @@ __decorateClass([
3279
3293
  BinaryField("u8", 7)
3280
3294
  ], YGOProMsgChaining.prototype, "subsequence", 2);
3281
3295
  __decorateClass([
3282
- BinaryField("u8", 8)
3283
- ], YGOProMsgChaining.prototype, "chainCount", 2);
3296
+ BinaryField(() => YGOProMsgChaining_CardLocation, 8)
3297
+ ], YGOProMsgChaining.prototype, "chainCardLocation", 2);
3284
3298
  __decorateClass([
3285
- BinaryField("i32", 9)
3299
+ BinaryField("i32", 11)
3286
3300
  ], YGOProMsgChaining.prototype, "desc", 2);
3287
3301
  __decorateClass([
3288
- BinaryField("u8", 13)
3289
- ], YGOProMsgChaining.prototype, "chainPlayer", 2);
3302
+ BinaryField("u8", 15)
3303
+ ], YGOProMsgChaining.prototype, "chainCount", 2);
3290
3304
 
3291
3305
  // src/protos/msg/proto/confirm-cards.ts
3292
3306
  var YGOProMsgConfirmCards_CardInfo = class {
@@ -5412,8 +5426,7 @@ var YGOProMsgSet = class extends YGOProMsgBase {
5412
5426
  static {
5413
5427
  this.identifier = OcgcoreCommonConstants.MSG_SET;
5414
5428
  }
5415
- // MSG_SET 是盖放卡片,所有人都看不到 code(包括玩家自己)
5416
- // 服务器在发送前会将 code 清零
5429
+ // MSG_SET code 在常见网络转发路径会被置 0
5417
5430
  opponentView() {
5418
5431
  const view = this.copy();
5419
5432
  view.code = 0;
@@ -5439,6 +5452,18 @@ var YGOProMsgSet = class extends YGOProMsgBase {
5439
5452
  __decorateClass([
5440
5453
  BinaryField("i32", 0)
5441
5454
  ], YGOProMsgSet.prototype, "code", 2);
5455
+ __decorateClass([
5456
+ BinaryField("u8", 4)
5457
+ ], YGOProMsgSet.prototype, "controller", 2);
5458
+ __decorateClass([
5459
+ BinaryField("u8", 5)
5460
+ ], YGOProMsgSet.prototype, "location", 2);
5461
+ __decorateClass([
5462
+ BinaryField("u8", 6)
5463
+ ], YGOProMsgSet.prototype, "sequence", 2);
5464
+ __decorateClass([
5465
+ BinaryField("u8", 7)
5466
+ ], YGOProMsgSet.prototype, "position", 2);
5442
5467
 
5443
5468
  // src/protos/msg/proto/shuffle-deck.ts
5444
5469
  var YGOProMsgShuffleDeck = class extends YGOProMsgBase {
@@ -6851,6 +6876,7 @@ export {
6851
6876
  YGOProMsgChainSolving,
6852
6877
  YGOProMsgChained,
6853
6878
  YGOProMsgChaining,
6879
+ YGOProMsgChaining_CardLocation,
6854
6880
  YGOProMsgConfirmCards,
6855
6881
  YGOProMsgConfirmCards_CardInfo,
6856
6882
  YGOProMsgConfirmDeckTop,