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.cjs
CHANGED
|
@@ -4922,6 +4922,29 @@ __decorateClass([
|
|
|
4922
4922
|
|
|
4923
4923
|
// src/protos/msg/proto/set.ts
|
|
4924
4924
|
var YGOProMsgSet = class extends YGOProMsgBase {
|
|
4925
|
+
// MSG_SET 是盖放卡片,所有人都看不到 code(包括玩家自己)
|
|
4926
|
+
// 服务器在发送前会将 code 清零
|
|
4927
|
+
opponentView() {
|
|
4928
|
+
const view = this.copy();
|
|
4929
|
+
view.code = 0;
|
|
4930
|
+
return view;
|
|
4931
|
+
}
|
|
4932
|
+
teammateView() {
|
|
4933
|
+
const view = this.copy();
|
|
4934
|
+
view.code = 0;
|
|
4935
|
+
return view;
|
|
4936
|
+
}
|
|
4937
|
+
observerView() {
|
|
4938
|
+
const view = this.copy();
|
|
4939
|
+
view.code = 0;
|
|
4940
|
+
return view;
|
|
4941
|
+
}
|
|
4942
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4943
|
+
playerView(playerId) {
|
|
4944
|
+
const view = this.copy();
|
|
4945
|
+
view.code = 0;
|
|
4946
|
+
return view;
|
|
4947
|
+
}
|
|
4925
4948
|
};
|
|
4926
4949
|
YGOProMsgSet.identifier = OcgcoreCommonConstants.MSG_SET;
|
|
4927
4950
|
__decorateClass([
|