ygopro-msg-encode 1.1.22 → 1.1.24

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
@@ -2210,11 +2210,14 @@ __decorateClass([
2210
2210
  BinaryField(() => YGOProMsgBattle_CardStats, 0)
2211
2211
  ], YGOProMsgBattle.prototype, "attacker", 2);
2212
2212
  __decorateClass([
2213
- BinaryField(() => YGOProMsgBattle_CardStats, 12)
2213
+ BinaryField("u8", 12)
2214
+ ], YGOProMsgBattle.prototype, "attackerBattleState", 2);
2215
+ __decorateClass([
2216
+ BinaryField(() => YGOProMsgBattle_CardStats, 13)
2214
2217
  ], YGOProMsgBattle.prototype, "defender", 2);
2215
2218
  __decorateClass([
2216
- BinaryField("u8", 24)
2217
- ], YGOProMsgBattle.prototype, "battleDamageCalc", 2);
2219
+ BinaryField("u8", 25)
2220
+ ], YGOProMsgBattle.prototype, "defenderBattleState", 2);
2218
2221
 
2219
2222
  // src/protos/msg/proto/become-target.ts
2220
2223
  var YGOProMsgBecomeTarget = class extends YGOProMsgBase {
@@ -5426,8 +5429,7 @@ var YGOProMsgSet = class extends YGOProMsgBase {
5426
5429
  static {
5427
5430
  this.identifier = OcgcoreCommonConstants.MSG_SET;
5428
5431
  }
5429
- // MSG_SET 是盖放卡片,所有人都看不到 code(包括玩家自己)
5430
- // 服务器在发送前会将 code 清零
5432
+ // MSG_SET code 在常见网络转发路径会被置 0
5431
5433
  opponentView() {
5432
5434
  const view = this.copy();
5433
5435
  view.code = 0;
@@ -5453,6 +5455,18 @@ var YGOProMsgSet = class extends YGOProMsgBase {
5453
5455
  __decorateClass([
5454
5456
  BinaryField("i32", 0)
5455
5457
  ], YGOProMsgSet.prototype, "code", 2);
5458
+ __decorateClass([
5459
+ BinaryField("u8", 4)
5460
+ ], YGOProMsgSet.prototype, "controller", 2);
5461
+ __decorateClass([
5462
+ BinaryField("u8", 5)
5463
+ ], YGOProMsgSet.prototype, "location", 2);
5464
+ __decorateClass([
5465
+ BinaryField("u8", 6)
5466
+ ], YGOProMsgSet.prototype, "sequence", 2);
5467
+ __decorateClass([
5468
+ BinaryField("u8", 7)
5469
+ ], YGOProMsgSet.prototype, "position", 2);
5456
5470
 
5457
5471
  // src/protos/msg/proto/shuffle-deck.ts
5458
5472
  var YGOProMsgShuffleDeck = class extends YGOProMsgBase {