ygopro-msg-encode 1.1.14 → 1.1.16
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 +1 -23
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +1 -23
- package/dist/index.mjs.map +2 -2
- package/dist/src/protos/msg/proto/confirm-cards.d.ts +0 -1
- package/dist/src/protos/msg/proto/update-card.d.ts +0 -1
- package/dist/src/protos/msg/proto/update-data.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3320,18 +3320,6 @@ __decorateClass([
|
|
|
3320
3320
|
], _YGOProMsgConfirmCards_CardInfo.prototype, "sequence", 2);
|
|
3321
3321
|
var YGOProMsgConfirmCards_CardInfo = _YGOProMsgConfirmCards_CardInfo;
|
|
3322
3322
|
var _YGOProMsgConfirmCards = class _YGOProMsgConfirmCards extends YGOProMsgBase {
|
|
3323
|
-
// 对方视角可能需要隐藏卡片信息
|
|
3324
|
-
opponentView() {
|
|
3325
|
-
const view = this.copy();
|
|
3326
|
-
view.cards = view.cards.map((card) => {
|
|
3327
|
-
const c = { ...card };
|
|
3328
|
-
if (!(c.code & 2147483648)) {
|
|
3329
|
-
c.code = 0;
|
|
3330
|
-
}
|
|
3331
|
-
return c;
|
|
3332
|
-
});
|
|
3333
|
-
return view;
|
|
3334
|
-
}
|
|
3335
3323
|
getSendTargets() {
|
|
3336
3324
|
if (this.cards.length > 0 && this.cards[0].location === 1) {
|
|
3337
3325
|
return [this.player];
|
|
@@ -5779,11 +5767,7 @@ var _YGOProMsgUpdateCard = class _YGOProMsgUpdateCard extends YGOProMsgBase {
|
|
|
5779
5767
|
return copy;
|
|
5780
5768
|
}
|
|
5781
5769
|
teammateView() {
|
|
5782
|
-
|
|
5783
|
-
return this.copy();
|
|
5784
|
-
} else {
|
|
5785
|
-
return this.opponentView();
|
|
5786
|
-
}
|
|
5770
|
+
return this.copy();
|
|
5787
5771
|
}
|
|
5788
5772
|
playerView(playerId) {
|
|
5789
5773
|
if (playerId === 7 /* OBSERVER */) {
|
|
@@ -5838,9 +5822,6 @@ var _YGOProMsgUpdateCard = class _YGOProMsgUpdateCard extends YGOProMsgBase {
|
|
|
5838
5822
|
result.set(cardPayload, 8);
|
|
5839
5823
|
return result;
|
|
5840
5824
|
}
|
|
5841
|
-
getSendTargets() {
|
|
5842
|
-
return [];
|
|
5843
|
-
}
|
|
5844
5825
|
getRequireRefreshCards() {
|
|
5845
5826
|
return [
|
|
5846
5827
|
{
|
|
@@ -5955,9 +5936,6 @@ var _YGOProMsgUpdateData = class _YGOProMsgUpdateData extends YGOProMsgBase {
|
|
|
5955
5936
|
}
|
|
5956
5937
|
return result;
|
|
5957
5938
|
}
|
|
5958
|
-
getSendTargets() {
|
|
5959
|
-
return [this.player, 1 - this.player, 7 /* OBSERVER */];
|
|
5960
|
-
}
|
|
5961
5939
|
};
|
|
5962
5940
|
__name(_YGOProMsgUpdateData, "YGOProMsgUpdateData");
|
|
5963
5941
|
_YGOProMsgUpdateData.identifier = 6;
|