ygopro-msg-encode 1.1.4 → 1.1.6

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.cjs CHANGED
@@ -2359,9 +2359,6 @@ __decorateClass([
2359
2359
  __decorateClass([
2360
2360
  BinaryField("u8", 6)
2361
2361
  ], YGOProMsgConfirmCards_CardInfo.prototype, "sequence", 2);
2362
- __decorateClass([
2363
- BinaryField("u8", 7)
2364
- ], YGOProMsgConfirmCards_CardInfo.prototype, "subsequence", 2);
2365
2362
  var YGOProMsgConfirmCards = class extends YGOProMsgBase {
2366
2363
  // 对方视角可能需要隐藏卡片信息
2367
2364
  opponentView() {
@@ -2388,7 +2385,7 @@ __decorateClass([
2388
2385
  ], YGOProMsgConfirmCards.prototype, "player", 2);
2389
2386
  __decorateClass([
2390
2387
  BinaryField("u8", 1)
2391
- ], YGOProMsgConfirmCards.prototype, "unused", 2);
2388
+ ], YGOProMsgConfirmCards.prototype, "skipPanel", 2);
2392
2389
  __decorateClass([
2393
2390
  BinaryField("u8", 2)
2394
2391
  ], YGOProMsgConfirmCards.prototype, "count", 2);
@@ -4922,6 +4919,29 @@ __decorateClass([
4922
4919
 
4923
4920
  // src/protos/msg/proto/set.ts
4924
4921
  var YGOProMsgSet = class extends YGOProMsgBase {
4922
+ // MSG_SET 是盖放卡片,所有人都看不到 code(包括玩家自己)
4923
+ // 服务器在发送前会将 code 清零
4924
+ opponentView() {
4925
+ const view = this.copy();
4926
+ view.code = 0;
4927
+ return view;
4928
+ }
4929
+ teammateView() {
4930
+ const view = this.copy();
4931
+ view.code = 0;
4932
+ return view;
4933
+ }
4934
+ observerView() {
4935
+ const view = this.copy();
4936
+ view.code = 0;
4937
+ return view;
4938
+ }
4939
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4940
+ playerView(playerId) {
4941
+ const view = this.copy();
4942
+ view.code = 0;
4943
+ return view;
4944
+ }
4925
4945
  };
4926
4946
  YGOProMsgSet.identifier = OcgcoreCommonConstants.MSG_SET;
4927
4947
  __decorateClass([