ygopro-msg-encode 1.1.15 → 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.mjs
CHANGED
|
@@ -3246,18 +3246,6 @@ var YGOProMsgConfirmCards = class extends YGOProMsgBase {
|
|
|
3246
3246
|
static {
|
|
3247
3247
|
this.identifier = OcgcoreCommonConstants.MSG_CONFIRM_CARDS;
|
|
3248
3248
|
}
|
|
3249
|
-
// 对方视角可能需要隐藏卡片信息
|
|
3250
|
-
opponentView() {
|
|
3251
|
-
const view = this.copy();
|
|
3252
|
-
view.cards = view.cards.map((card) => {
|
|
3253
|
-
const c = { ...card };
|
|
3254
|
-
if (!(c.code & 2147483648)) {
|
|
3255
|
-
c.code = 0;
|
|
3256
|
-
}
|
|
3257
|
-
return c;
|
|
3258
|
-
});
|
|
3259
|
-
return view;
|
|
3260
|
-
}
|
|
3261
3249
|
getSendTargets() {
|
|
3262
3250
|
if (this.cards.length > 0 && this.cards[0].location === 1) {
|
|
3263
3251
|
return [this.player];
|
|
@@ -5912,11 +5900,7 @@ var YGOProMsgUpdateCard = class extends YGOProMsgBase {
|
|
|
5912
5900
|
return copy;
|
|
5913
5901
|
}
|
|
5914
5902
|
teammateView() {
|
|
5915
|
-
|
|
5916
|
-
return this.copy();
|
|
5917
|
-
} else {
|
|
5918
|
-
return this.opponentView();
|
|
5919
|
-
}
|
|
5903
|
+
return this.copy();
|
|
5920
5904
|
}
|
|
5921
5905
|
playerView(playerId) {
|
|
5922
5906
|
if (playerId === 7 /* OBSERVER */) {
|
|
@@ -5971,9 +5955,6 @@ var YGOProMsgUpdateCard = class extends YGOProMsgBase {
|
|
|
5971
5955
|
result.set(cardPayload, 8);
|
|
5972
5956
|
return result;
|
|
5973
5957
|
}
|
|
5974
|
-
getSendTargets() {
|
|
5975
|
-
return [];
|
|
5976
|
-
}
|
|
5977
5958
|
getRequireRefreshCards() {
|
|
5978
5959
|
return [
|
|
5979
5960
|
{
|
|
@@ -6091,9 +6072,6 @@ var YGOProMsgUpdateData = class extends YGOProMsgBase {
|
|
|
6091
6072
|
}
|
|
6092
6073
|
return result;
|
|
6093
6074
|
}
|
|
6094
|
-
getSendTargets() {
|
|
6095
|
-
return [];
|
|
6096
|
-
}
|
|
6097
6075
|
};
|
|
6098
6076
|
|
|
6099
6077
|
// src/protos/msg/proto/waiting.ts
|