ygopro-msg-encode 1.1.4 → 1.1.5
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 +23 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +23 -0
- package/dist/index.mjs.map +2 -2
- package/dist/src/protos/msg/proto/set.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4871,6 +4871,29 @@ var YGOProMsgSet = class extends YGOProMsgBase {
|
|
|
4871
4871
|
static {
|
|
4872
4872
|
this.identifier = OcgcoreCommonConstants.MSG_SET;
|
|
4873
4873
|
}
|
|
4874
|
+
// MSG_SET 是盖放卡片,所有人都看不到 code(包括玩家自己)
|
|
4875
|
+
// 服务器在发送前会将 code 清零
|
|
4876
|
+
opponentView() {
|
|
4877
|
+
const view = this.copy();
|
|
4878
|
+
view.code = 0;
|
|
4879
|
+
return view;
|
|
4880
|
+
}
|
|
4881
|
+
teammateView() {
|
|
4882
|
+
const view = this.copy();
|
|
4883
|
+
view.code = 0;
|
|
4884
|
+
return view;
|
|
4885
|
+
}
|
|
4886
|
+
observerView() {
|
|
4887
|
+
const view = this.copy();
|
|
4888
|
+
view.code = 0;
|
|
4889
|
+
return view;
|
|
4890
|
+
}
|
|
4891
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4892
|
+
playerView(playerId) {
|
|
4893
|
+
const view = this.copy();
|
|
4894
|
+
view.code = 0;
|
|
4895
|
+
return view;
|
|
4896
|
+
}
|
|
4874
4897
|
};
|
|
4875
4898
|
__decorateClass([
|
|
4876
4899
|
BinaryField("i32", 0)
|