ygopro-msg-encode 1.1.22 → 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
@@ -5426,8 +5426,7 @@ var YGOProMsgSet = class extends YGOProMsgBase {
5426
5426
  static {
5427
5427
  this.identifier = OcgcoreCommonConstants.MSG_SET;
5428
5428
  }
5429
- // MSG_SET 是盖放卡片,所有人都看不到 code(包括玩家自己)
5430
- // 服务器在发送前会将 code 清零
5429
+ // MSG_SET code 在常见网络转发路径会被置 0
5431
5430
  opponentView() {
5432
5431
  const view = this.copy();
5433
5432
  view.code = 0;
@@ -5453,6 +5452,18 @@ var YGOProMsgSet = class extends YGOProMsgBase {
5453
5452
  __decorateClass([
5454
5453
  BinaryField("i32", 0)
5455
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);
5456
5467
 
5457
5468
  // src/protos/msg/proto/shuffle-deck.ts
5458
5469
  var YGOProMsgShuffleDeck = class extends YGOProMsgBase {