ygopro-msg-encode 1.1.18 → 1.1.19
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 +14 -5
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +14 -5
- package/dist/index.mjs.map +2 -2
- package/dist/src/protos/msg/proto/draw.d.ts +1 -0
- package/dist/src/protos/msg/proto/shuffle-extra.d.ts +1 -0
- package/dist/src/protos/msg/proto/shuffle-hand.d.ts +1 -0
- package/dist/src/protos/msg/proto/tag-swap.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3486,6 +3486,9 @@ var _YGOProMsgDraw = class _YGOProMsgDraw extends YGOProMsgBase {
|
|
|
3486
3486
|
});
|
|
3487
3487
|
return view;
|
|
3488
3488
|
}
|
|
3489
|
+
teammateView() {
|
|
3490
|
+
return this.opponentView();
|
|
3491
|
+
}
|
|
3489
3492
|
};
|
|
3490
3493
|
__name(_YGOProMsgDraw, "YGOProMsgDraw");
|
|
3491
3494
|
_YGOProMsgDraw.identifier = OcgcoreCommonConstants.MSG_DRAW;
|
|
@@ -5272,6 +5275,9 @@ var _YGOProMsgShuffleExtra = class _YGOProMsgShuffleExtra extends YGOProMsgBase
|
|
|
5272
5275
|
view.cards = view.cards.map(() => 0);
|
|
5273
5276
|
return view;
|
|
5274
5277
|
}
|
|
5278
|
+
teammateView() {
|
|
5279
|
+
return this.opponentView();
|
|
5280
|
+
}
|
|
5275
5281
|
};
|
|
5276
5282
|
__name(_YGOProMsgShuffleExtra, "YGOProMsgShuffleExtra");
|
|
5277
5283
|
_YGOProMsgShuffleExtra.identifier = OcgcoreCommonConstants.MSG_SHUFFLE_EXTRA;
|
|
@@ -5294,6 +5300,9 @@ var _YGOProMsgShuffleHand = class _YGOProMsgShuffleHand extends YGOProMsgBase {
|
|
|
5294
5300
|
view.cards = view.cards.map(() => 0);
|
|
5295
5301
|
return view;
|
|
5296
5302
|
}
|
|
5303
|
+
teammateView() {
|
|
5304
|
+
return this.opponentView();
|
|
5305
|
+
}
|
|
5297
5306
|
getRequireRefreshZones() {
|
|
5298
5307
|
return [
|
|
5299
5308
|
{
|
|
@@ -5687,14 +5696,14 @@ __decorateClass([
|
|
|
5687
5696
|
BinaryField("u8", 4)
|
|
5688
5697
|
], _YGOProMsgTagSwap.prototype, "handCount", 2);
|
|
5689
5698
|
__decorateClass([
|
|
5690
|
-
BinaryField("i32", 5
|
|
5699
|
+
BinaryField("i32", 5)
|
|
5700
|
+
], _YGOProMsgTagSwap.prototype, "topCode", 2);
|
|
5701
|
+
__decorateClass([
|
|
5702
|
+
BinaryField("i32", 9, (obj) => obj.handCount)
|
|
5691
5703
|
], _YGOProMsgTagSwap.prototype, "handCards", 2);
|
|
5692
5704
|
__decorateClass([
|
|
5693
|
-
BinaryField("i32", (obj) =>
|
|
5705
|
+
BinaryField("i32", (obj) => 9 + obj.handCount * 4, (obj) => obj.extraCount)
|
|
5694
5706
|
], _YGOProMsgTagSwap.prototype, "extraCards", 2);
|
|
5695
|
-
__decorateClass([
|
|
5696
|
-
BinaryField("u32", (obj) => 5 + obj.handCount * 4 + obj.extraCount * 4)
|
|
5697
|
-
], _YGOProMsgTagSwap.prototype, "mzoneFlags", 2);
|
|
5698
5707
|
var YGOProMsgTagSwap = _YGOProMsgTagSwap;
|
|
5699
5708
|
|
|
5700
5709
|
// src/protos/msg/proto/toss-coin.ts
|