ygopro-msg-encode 1.1.8 → 1.1.10
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 +1092 -749
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +565 -46
- package/dist/index.mjs.map +2 -2
- package/dist/src/protos/ctos/proto/external-address.d.ts +1 -0
- package/dist/src/protos/msg/proto/missed-effect.d.ts +8 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4,6 +4,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
8
|
var __export = (target, all) => {
|
|
8
9
|
for (var name in all)
|
|
9
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -240,7 +241,7 @@ var Metadata = new import_typed_reflector.MetadataSetter();
|
|
|
240
241
|
var reflector = new import_typed_reflector.Reflector();
|
|
241
242
|
|
|
242
243
|
// src/binary/binary-meta.ts
|
|
243
|
-
var BinaryField = (type, offset, length) => {
|
|
244
|
+
var BinaryField = /* @__PURE__ */ __name((type, offset, length) => {
|
|
244
245
|
if ((type === "utf8" || type === "utf16") && length == null) {
|
|
245
246
|
throw new Error(`String type ${type} requires length parameter`);
|
|
246
247
|
}
|
|
@@ -249,14 +250,14 @@ var BinaryField = (type, offset, length) => {
|
|
|
249
250
|
{ type, offset, length },
|
|
250
251
|
"binaryFieldKeys"
|
|
251
252
|
);
|
|
252
|
-
};
|
|
253
|
+
}, "BinaryField");
|
|
253
254
|
|
|
254
255
|
// src/binary/fill-binary-fields.ts
|
|
255
|
-
var isStaticInfo = (info) => typeof info.offset === "number" && (info.length == null || typeof info.length === "number");
|
|
256
|
-
var resolveLength = (obj, length, key) => {
|
|
256
|
+
var isStaticInfo = /* @__PURE__ */ __name((info) => typeof info.offset === "number" && (info.length == null || typeof info.length === "number"), "isStaticInfo");
|
|
257
|
+
var resolveLength = /* @__PURE__ */ __name((obj, length, key) => {
|
|
257
258
|
return typeof length === "number" ? length : length(obj, key);
|
|
258
|
-
};
|
|
259
|
-
var getTypeSize = (type) => {
|
|
259
|
+
}, "resolveLength");
|
|
260
|
+
var getTypeSize = /* @__PURE__ */ __name((type) => {
|
|
260
261
|
switch (type) {
|
|
261
262
|
case "i8":
|
|
262
263
|
case "u8":
|
|
@@ -270,8 +271,8 @@ var getTypeSize = (type) => {
|
|
|
270
271
|
default:
|
|
271
272
|
return 0;
|
|
272
273
|
}
|
|
273
|
-
};
|
|
274
|
-
var getFieldInfos = (objOrClass) => {
|
|
274
|
+
}, "getTypeSize");
|
|
275
|
+
var getFieldInfos = /* @__PURE__ */ __name((objOrClass) => {
|
|
275
276
|
const fields = reflector.getArray("binaryFieldKeys", objOrClass).map((key) => ({
|
|
276
277
|
key,
|
|
277
278
|
info: reflector.get("binaryField", objOrClass, key)
|
|
@@ -279,14 +280,14 @@ var getFieldInfos = (objOrClass) => {
|
|
|
279
280
|
const staticInfos = fields.filter((s) => isStaticInfo(s.info));
|
|
280
281
|
const dynamicInfos = fields.filter((s) => !isStaticInfo(s.info));
|
|
281
282
|
return { fields, staticInfos, dynamicInfos };
|
|
282
|
-
};
|
|
283
|
-
var fillBinaryFields = (obj, data, useClass) => {
|
|
283
|
+
}, "getFieldInfos");
|
|
284
|
+
var fillBinaryFields = /* @__PURE__ */ __name((obj, data, useClass) => {
|
|
284
285
|
const { staticInfos, dynamicInfos } = getFieldInfos(useClass || obj);
|
|
285
286
|
const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
|
|
286
287
|
const utf8Decoder = new TextDecoder("utf-8");
|
|
287
288
|
const utf16Decoder = new TextDecoder("utf-16le");
|
|
288
289
|
let totalSize = 0;
|
|
289
|
-
const readValue = (type, offset) => {
|
|
290
|
+
const readValue = /* @__PURE__ */ __name((type, offset) => {
|
|
290
291
|
const typeSize = getTypeSize(type);
|
|
291
292
|
if (offset + typeSize > data.length) {
|
|
292
293
|
throw new Error(
|
|
@@ -309,8 +310,8 @@ var fillBinaryFields = (obj, data, useClass) => {
|
|
|
309
310
|
default:
|
|
310
311
|
throw new Error(`Unknown type: ${type}`);
|
|
311
312
|
}
|
|
312
|
-
};
|
|
313
|
-
const readString = (type, offset, byteLength) => {
|
|
313
|
+
}, "readValue");
|
|
314
|
+
const readString = /* @__PURE__ */ __name((type, offset, byteLength) => {
|
|
314
315
|
if (offset + byteLength > data.length) {
|
|
315
316
|
throw new Error(
|
|
316
317
|
`Data too short: need ${offset + byteLength} bytes, got ${data.length} bytes`
|
|
@@ -335,8 +336,8 @@ var fillBinaryFields = (obj, data, useClass) => {
|
|
|
335
336
|
return utf16Decoder.decode(actualBytes);
|
|
336
337
|
}
|
|
337
338
|
throw new Error(`Unknown string type: ${type}`);
|
|
338
|
-
};
|
|
339
|
-
const parseField = (key, info) => {
|
|
339
|
+
}, "readString");
|
|
340
|
+
const parseField = /* @__PURE__ */ __name((key, info) => {
|
|
340
341
|
const offset = resolveLength(obj, info.offset, key);
|
|
341
342
|
const type = info.type;
|
|
342
343
|
if (typeof type === "function") {
|
|
@@ -394,7 +395,7 @@ var fillBinaryFields = (obj, data, useClass) => {
|
|
|
394
395
|
obj[key] = readValue(typeStr, offset);
|
|
395
396
|
totalSize = Math.max(totalSize, offset + typeSize);
|
|
396
397
|
}
|
|
397
|
-
};
|
|
398
|
+
}, "parseField");
|
|
398
399
|
for (const { key, info } of staticInfos) {
|
|
399
400
|
parseField(key, info);
|
|
400
401
|
}
|
|
@@ -402,8 +403,8 @@ var fillBinaryFields = (obj, data, useClass) => {
|
|
|
402
403
|
parseField(key, info);
|
|
403
404
|
}
|
|
404
405
|
return totalSize;
|
|
405
|
-
};
|
|
406
|
-
var toBinaryFields = (obj, useClass) => {
|
|
406
|
+
}, "fillBinaryFields");
|
|
407
|
+
var toBinaryFields = /* @__PURE__ */ __name((obj, useClass) => {
|
|
407
408
|
const { staticInfos, dynamicInfos } = getFieldInfos(useClass || obj);
|
|
408
409
|
if (staticInfos.length === 0 && dynamicInfos.length === 0) {
|
|
409
410
|
return new Uint8Array(0);
|
|
@@ -448,7 +449,7 @@ var toBinaryFields = (obj, useClass) => {
|
|
|
448
449
|
const data = new Uint8Array(totalSize);
|
|
449
450
|
const view = new DataView(data.buffer);
|
|
450
451
|
const utf8Encoder = new TextEncoder();
|
|
451
|
-
const writeValue = (type, offset, value) => {
|
|
452
|
+
const writeValue = /* @__PURE__ */ __name((type, offset, value) => {
|
|
452
453
|
switch (type) {
|
|
453
454
|
case "i8":
|
|
454
455
|
view.setInt8(offset, value);
|
|
@@ -469,8 +470,8 @@ var toBinaryFields = (obj, useClass) => {
|
|
|
469
470
|
view.setUint32(offset, value, true);
|
|
470
471
|
break;
|
|
471
472
|
}
|
|
472
|
-
};
|
|
473
|
-
const writeString = (type, offset, byteLength, value) => {
|
|
473
|
+
}, "writeValue");
|
|
474
|
+
const writeString = /* @__PURE__ */ __name((type, offset, byteLength, value) => {
|
|
474
475
|
if (type === "utf8") {
|
|
475
476
|
const encoded = utf8Encoder.encode(value);
|
|
476
477
|
const len = Math.min(encoded.length, byteLength);
|
|
@@ -480,8 +481,8 @@ var toBinaryFields = (obj, useClass) => {
|
|
|
480
481
|
view.setUint16(offset + i * 2, value.charCodeAt(i), true);
|
|
481
482
|
}
|
|
482
483
|
}
|
|
483
|
-
};
|
|
484
|
-
const writeField = (key, info) => {
|
|
484
|
+
}, "writeString");
|
|
485
|
+
const writeField = /* @__PURE__ */ __name((key, info) => {
|
|
485
486
|
const offset = resolveLength(obj, info.offset, key);
|
|
486
487
|
const type = info.type;
|
|
487
488
|
const value = obj[key];
|
|
@@ -528,7 +529,7 @@ var toBinaryFields = (obj, useClass) => {
|
|
|
528
529
|
} else {
|
|
529
530
|
writeValue(typeStr, offset, value);
|
|
530
531
|
}
|
|
531
|
-
};
|
|
532
|
+
}, "writeField");
|
|
532
533
|
for (const { key, info } of staticInfos) {
|
|
533
534
|
writeField(key, info);
|
|
534
535
|
}
|
|
@@ -536,44 +537,46 @@ var toBinaryFields = (obj, useClass) => {
|
|
|
536
537
|
writeField(key, info);
|
|
537
538
|
}
|
|
538
539
|
return data;
|
|
539
|
-
};
|
|
540
|
+
}, "toBinaryFields");
|
|
540
541
|
|
|
541
542
|
// src/protos/common/host-info.ts
|
|
542
|
-
var
|
|
543
|
+
var _HostInfo = class _HostInfo {
|
|
543
544
|
};
|
|
545
|
+
__name(_HostInfo, "HostInfo");
|
|
544
546
|
__decorateClass([
|
|
545
547
|
BinaryField("u32", 0)
|
|
546
|
-
],
|
|
548
|
+
], _HostInfo.prototype, "lflist", 2);
|
|
547
549
|
__decorateClass([
|
|
548
550
|
BinaryField("u8", 4)
|
|
549
|
-
],
|
|
551
|
+
], _HostInfo.prototype, "rule", 2);
|
|
550
552
|
__decorateClass([
|
|
551
553
|
BinaryField("u8", 5)
|
|
552
|
-
],
|
|
554
|
+
], _HostInfo.prototype, "mode", 2);
|
|
553
555
|
__decorateClass([
|
|
554
556
|
BinaryField("u8", 6)
|
|
555
|
-
],
|
|
557
|
+
], _HostInfo.prototype, "duel_rule", 2);
|
|
556
558
|
__decorateClass([
|
|
557
559
|
BinaryField("u8", 7)
|
|
558
|
-
],
|
|
560
|
+
], _HostInfo.prototype, "no_check_deck", 2);
|
|
559
561
|
__decorateClass([
|
|
560
562
|
BinaryField("u8", 8)
|
|
561
|
-
],
|
|
563
|
+
], _HostInfo.prototype, "no_shuffle_deck", 2);
|
|
562
564
|
__decorateClass([
|
|
563
565
|
BinaryField("i32", 12)
|
|
564
|
-
],
|
|
566
|
+
], _HostInfo.prototype, "start_lp", 2);
|
|
565
567
|
__decorateClass([
|
|
566
568
|
BinaryField("u8", 16)
|
|
567
|
-
],
|
|
569
|
+
], _HostInfo.prototype, "start_hand", 2);
|
|
568
570
|
__decorateClass([
|
|
569
571
|
BinaryField("u8", 17)
|
|
570
|
-
],
|
|
572
|
+
], _HostInfo.prototype, "draw_count", 2);
|
|
571
573
|
__decorateClass([
|
|
572
574
|
BinaryField("u16", 18)
|
|
573
|
-
],
|
|
575
|
+
], _HostInfo.prototype, "time_limit", 2);
|
|
576
|
+
var HostInfo = _HostInfo;
|
|
574
577
|
|
|
575
578
|
// src/proto-base/payload-base.ts
|
|
576
|
-
var
|
|
579
|
+
var _PayloadBase = class _PayloadBase {
|
|
577
580
|
get identifier() {
|
|
578
581
|
return this.constructor.identifier;
|
|
579
582
|
}
|
|
@@ -593,7 +596,9 @@ var PayloadBase = class {
|
|
|
593
596
|
return this.fromPartial(this);
|
|
594
597
|
}
|
|
595
598
|
};
|
|
596
|
-
PayloadBase
|
|
599
|
+
__name(_PayloadBase, "PayloadBase");
|
|
600
|
+
_PayloadBase.identifier = 0;
|
|
601
|
+
var PayloadBase = _PayloadBase;
|
|
597
602
|
|
|
598
603
|
// src/vendor/ocgcore-constants.ts
|
|
599
604
|
var OcgcoreCommonConstants = {
|
|
@@ -967,13 +972,15 @@ function checkSetcode(setcode, value) {
|
|
|
967
972
|
const setsubtype = value & 61440;
|
|
968
973
|
return setcode && (setcode & 4095) === settype && (setcode & setsubtype) === setsubtype;
|
|
969
974
|
}
|
|
975
|
+
__name(checkSetcode, "checkSetcode");
|
|
970
976
|
function isAlternative(code, alias) {
|
|
971
977
|
if (code === CARD_BLACK_LUSTER_SOLDIER2) {
|
|
972
978
|
return false;
|
|
973
979
|
}
|
|
974
980
|
return alias && alias < code + CARD_ARTWORK_VERSIONS_OFFSET && code < alias + CARD_ARTWORK_VERSIONS_OFFSET;
|
|
975
981
|
}
|
|
976
|
-
|
|
982
|
+
__name(isAlternative, "isAlternative");
|
|
983
|
+
var _CardData = class _CardData extends PayloadBase {
|
|
977
984
|
/**
|
|
978
985
|
* Check if this card belongs to a specific setcode
|
|
979
986
|
* @param value The setcode value to check against
|
|
@@ -1116,49 +1123,55 @@ var CardData = class extends PayloadBase {
|
|
|
1116
1123
|
return this.code === CARD_MARINE_DOLPHIN || this.code === CARD_TWINKLE_MOSS || !this.alias && (this.type & (OcgcoreCommonConstants.TYPE_MONSTER | OcgcoreCommonConstants.TYPE_TOKEN)) !== (OcgcoreCommonConstants.TYPE_MONSTER | OcgcoreCommonConstants.TYPE_TOKEN);
|
|
1117
1124
|
}
|
|
1118
1125
|
};
|
|
1126
|
+
__name(_CardData, "CardData");
|
|
1119
1127
|
__decorateClass([
|
|
1120
1128
|
BinaryField("u32", 0)
|
|
1121
|
-
],
|
|
1129
|
+
], _CardData.prototype, "code", 2);
|
|
1122
1130
|
__decorateClass([
|
|
1123
1131
|
BinaryField("u32", 4)
|
|
1124
|
-
],
|
|
1132
|
+
], _CardData.prototype, "alias", 2);
|
|
1125
1133
|
__decorateClass([
|
|
1126
1134
|
BinaryField("u16", 8, 16)
|
|
1127
|
-
],
|
|
1135
|
+
], _CardData.prototype, "setcode", 2);
|
|
1128
1136
|
__decorateClass([
|
|
1129
1137
|
BinaryField("u32", 40)
|
|
1130
|
-
],
|
|
1138
|
+
], _CardData.prototype, "type", 2);
|
|
1131
1139
|
__decorateClass([
|
|
1132
1140
|
BinaryField("u32", 44)
|
|
1133
|
-
],
|
|
1141
|
+
], _CardData.prototype, "level", 2);
|
|
1134
1142
|
__decorateClass([
|
|
1135
1143
|
BinaryField("u32", 48)
|
|
1136
|
-
],
|
|
1144
|
+
], _CardData.prototype, "attribute", 2);
|
|
1137
1145
|
__decorateClass([
|
|
1138
1146
|
BinaryField("u32", 52)
|
|
1139
|
-
],
|
|
1147
|
+
], _CardData.prototype, "race", 2);
|
|
1140
1148
|
__decorateClass([
|
|
1141
1149
|
BinaryField("i32", 56)
|
|
1142
|
-
],
|
|
1150
|
+
], _CardData.prototype, "attack", 2);
|
|
1143
1151
|
__decorateClass([
|
|
1144
1152
|
BinaryField("i32", 60)
|
|
1145
|
-
],
|
|
1153
|
+
], _CardData.prototype, "defense", 2);
|
|
1146
1154
|
__decorateClass([
|
|
1147
1155
|
BinaryField("u32", 64)
|
|
1148
|
-
],
|
|
1156
|
+
], _CardData.prototype, "lscale", 2);
|
|
1149
1157
|
__decorateClass([
|
|
1150
1158
|
BinaryField("u32", 68)
|
|
1151
|
-
],
|
|
1159
|
+
], _CardData.prototype, "rscale", 2);
|
|
1152
1160
|
__decorateClass([
|
|
1153
1161
|
BinaryField("u32", 72)
|
|
1154
|
-
],
|
|
1162
|
+
], _CardData.prototype, "linkMarker", 2);
|
|
1163
|
+
var CardData = _CardData;
|
|
1155
1164
|
|
|
1156
1165
|
// src/protos/common/card-query.ts
|
|
1157
|
-
var
|
|
1166
|
+
var _CardQuery_CardLocation = class _CardQuery_CardLocation {
|
|
1158
1167
|
};
|
|
1159
|
-
|
|
1168
|
+
__name(_CardQuery_CardLocation, "CardQuery_CardLocation");
|
|
1169
|
+
var CardQuery_CardLocation = _CardQuery_CardLocation;
|
|
1170
|
+
var _CardQuery_Counter = class _CardQuery_Counter {
|
|
1160
1171
|
};
|
|
1161
|
-
|
|
1172
|
+
__name(_CardQuery_Counter, "CardQuery_Counter");
|
|
1173
|
+
var CardQuery_Counter = _CardQuery_Counter;
|
|
1174
|
+
var _CardQuery = class _CardQuery {
|
|
1162
1175
|
constructor() {
|
|
1163
1176
|
this.flags = 0;
|
|
1164
1177
|
}
|
|
@@ -1459,9 +1472,11 @@ var CardQuery = class {
|
|
|
1459
1472
|
return new Uint8Array(view.buffer, view.byteOffset, offset);
|
|
1460
1473
|
}
|
|
1461
1474
|
};
|
|
1475
|
+
__name(_CardQuery, "CardQuery");
|
|
1476
|
+
var CardQuery = _CardQuery;
|
|
1462
1477
|
|
|
1463
1478
|
// src/proto-base/ygopro-proto-base.ts
|
|
1464
|
-
var
|
|
1479
|
+
var _YGOProProtoBase = class _YGOProProtoBase extends PayloadBase {
|
|
1465
1480
|
get messageDirection() {
|
|
1466
1481
|
return this.constructor.messageDirection;
|
|
1467
1482
|
}
|
|
@@ -1510,15 +1525,19 @@ var YGOProProtoBase = class extends PayloadBase {
|
|
|
1510
1525
|
return this.fromPayload(bodyData);
|
|
1511
1526
|
}
|
|
1512
1527
|
};
|
|
1513
|
-
|
|
1528
|
+
__name(_YGOProProtoBase, "YGOProProtoBase");
|
|
1529
|
+
_YGOProProtoBase.messageDirection = "";
|
|
1530
|
+
var YGOProProtoBase = _YGOProProtoBase;
|
|
1514
1531
|
|
|
1515
1532
|
// src/protos/ctos/base.ts
|
|
1516
|
-
var
|
|
1533
|
+
var _YGOProCtosBase = class _YGOProCtosBase extends YGOProProtoBase {
|
|
1517
1534
|
};
|
|
1518
|
-
|
|
1535
|
+
__name(_YGOProCtosBase, "YGOProCtosBase");
|
|
1536
|
+
_YGOProCtosBase.messageDirection = "CTOS";
|
|
1537
|
+
var YGOProCtosBase = _YGOProCtosBase;
|
|
1519
1538
|
|
|
1520
1539
|
// src/proto-base/registry-base.ts
|
|
1521
|
-
var
|
|
1540
|
+
var _RegistryBase = class _RegistryBase {
|
|
1522
1541
|
constructor(payloadClass, options = {}) {
|
|
1523
1542
|
this.payloadClass = payloadClass;
|
|
1524
1543
|
this.options = options;
|
|
@@ -1542,9 +1561,11 @@ var RegistryBase = class {
|
|
|
1542
1561
|
);
|
|
1543
1562
|
}
|
|
1544
1563
|
};
|
|
1564
|
+
__name(_RegistryBase, "RegistryBase");
|
|
1565
|
+
var RegistryBase = _RegistryBase;
|
|
1545
1566
|
|
|
1546
1567
|
// src/protos/ctos/proto/response.ts
|
|
1547
|
-
var
|
|
1568
|
+
var _YGOProCtosResponse = class _YGOProCtosResponse extends YGOProCtosBase {
|
|
1548
1569
|
fromPayload(data) {
|
|
1549
1570
|
this.response = data;
|
|
1550
1571
|
return this;
|
|
@@ -1553,11 +1574,13 @@ var YGOProCtosResponse = class extends YGOProCtosBase {
|
|
|
1553
1574
|
return this.response || new Uint8Array(0);
|
|
1554
1575
|
}
|
|
1555
1576
|
};
|
|
1556
|
-
YGOProCtosResponse
|
|
1577
|
+
__name(_YGOProCtosResponse, "YGOProCtosResponse");
|
|
1578
|
+
_YGOProCtosResponse.identifier = 1;
|
|
1579
|
+
var YGOProCtosResponse = _YGOProCtosResponse;
|
|
1557
1580
|
|
|
1558
1581
|
// src/protos/ctos/proto/update-deck.ts
|
|
1559
1582
|
var import_ygopro_deck_encode = __toESM(require("ygopro-deck-encode"));
|
|
1560
|
-
var
|
|
1583
|
+
var _YGOProCtosUpdateDeck = class _YGOProCtosUpdateDeck extends YGOProCtosBase {
|
|
1561
1584
|
constructor() {
|
|
1562
1585
|
super();
|
|
1563
1586
|
this.deck = new import_ygopro_deck_encode.default();
|
|
@@ -1581,76 +1604,95 @@ var YGOProCtosUpdateDeck = class extends YGOProCtosBase {
|
|
|
1581
1604
|
return copied;
|
|
1582
1605
|
}
|
|
1583
1606
|
};
|
|
1584
|
-
YGOProCtosUpdateDeck
|
|
1607
|
+
__name(_YGOProCtosUpdateDeck, "YGOProCtosUpdateDeck");
|
|
1608
|
+
_YGOProCtosUpdateDeck.identifier = 2;
|
|
1609
|
+
var YGOProCtosUpdateDeck = _YGOProCtosUpdateDeck;
|
|
1585
1610
|
|
|
1586
1611
|
// src/protos/ctos/proto/hand-result.ts
|
|
1587
|
-
var
|
|
1612
|
+
var _YGOProCtosHandResult = class _YGOProCtosHandResult extends YGOProCtosBase {
|
|
1588
1613
|
};
|
|
1589
|
-
YGOProCtosHandResult
|
|
1614
|
+
__name(_YGOProCtosHandResult, "YGOProCtosHandResult");
|
|
1615
|
+
_YGOProCtosHandResult.identifier = 3;
|
|
1590
1616
|
__decorateClass([
|
|
1591
1617
|
BinaryField("u8", 0)
|
|
1592
|
-
],
|
|
1618
|
+
], _YGOProCtosHandResult.prototype, "res", 2);
|
|
1619
|
+
var YGOProCtosHandResult = _YGOProCtosHandResult;
|
|
1593
1620
|
|
|
1594
1621
|
// src/protos/ctos/proto/tp-result.ts
|
|
1595
|
-
var
|
|
1622
|
+
var _YGOProCtosTpResult = class _YGOProCtosTpResult extends YGOProCtosBase {
|
|
1596
1623
|
};
|
|
1597
|
-
YGOProCtosTpResult
|
|
1624
|
+
__name(_YGOProCtosTpResult, "YGOProCtosTpResult");
|
|
1625
|
+
_YGOProCtosTpResult.identifier = 4;
|
|
1598
1626
|
__decorateClass([
|
|
1599
1627
|
BinaryField("u8", 0)
|
|
1600
|
-
],
|
|
1628
|
+
], _YGOProCtosTpResult.prototype, "res", 2);
|
|
1629
|
+
var YGOProCtosTpResult = _YGOProCtosTpResult;
|
|
1601
1630
|
|
|
1602
1631
|
// src/protos/ctos/proto/player-info.ts
|
|
1603
|
-
var
|
|
1632
|
+
var _YGOProCtosPlayerInfo = class _YGOProCtosPlayerInfo extends YGOProCtosBase {
|
|
1604
1633
|
};
|
|
1605
|
-
YGOProCtosPlayerInfo
|
|
1634
|
+
__name(_YGOProCtosPlayerInfo, "YGOProCtosPlayerInfo");
|
|
1635
|
+
_YGOProCtosPlayerInfo.identifier = 16;
|
|
1606
1636
|
__decorateClass([
|
|
1607
1637
|
BinaryField("utf16", 0, 20)
|
|
1608
|
-
],
|
|
1638
|
+
], _YGOProCtosPlayerInfo.prototype, "name", 2);
|
|
1639
|
+
var YGOProCtosPlayerInfo = _YGOProCtosPlayerInfo;
|
|
1609
1640
|
|
|
1610
1641
|
// src/protos/ctos/proto/create-game.ts
|
|
1611
|
-
var
|
|
1642
|
+
var _YGOProCtosCreateGame = class _YGOProCtosCreateGame extends YGOProCtosBase {
|
|
1612
1643
|
};
|
|
1613
|
-
YGOProCtosCreateGame
|
|
1644
|
+
__name(_YGOProCtosCreateGame, "YGOProCtosCreateGame");
|
|
1645
|
+
_YGOProCtosCreateGame.identifier = 17;
|
|
1614
1646
|
__decorateClass([
|
|
1615
1647
|
BinaryField(() => HostInfo, 0)
|
|
1616
|
-
],
|
|
1648
|
+
], _YGOProCtosCreateGame.prototype, "info", 2);
|
|
1617
1649
|
__decorateClass([
|
|
1618
1650
|
BinaryField("utf16", 20, 20)
|
|
1619
|
-
],
|
|
1651
|
+
], _YGOProCtosCreateGame.prototype, "name", 2);
|
|
1620
1652
|
__decorateClass([
|
|
1621
1653
|
BinaryField("utf16", 60, 20)
|
|
1622
|
-
],
|
|
1654
|
+
], _YGOProCtosCreateGame.prototype, "pass", 2);
|
|
1655
|
+
var YGOProCtosCreateGame = _YGOProCtosCreateGame;
|
|
1623
1656
|
|
|
1624
1657
|
// src/protos/ctos/proto/join-game.ts
|
|
1625
|
-
var
|
|
1658
|
+
var _YGOProCtosJoinGame = class _YGOProCtosJoinGame extends YGOProCtosBase {
|
|
1626
1659
|
};
|
|
1627
|
-
YGOProCtosJoinGame
|
|
1660
|
+
__name(_YGOProCtosJoinGame, "YGOProCtosJoinGame");
|
|
1661
|
+
_YGOProCtosJoinGame.identifier = 18;
|
|
1628
1662
|
__decorateClass([
|
|
1629
1663
|
BinaryField("u16", 0)
|
|
1630
|
-
],
|
|
1664
|
+
], _YGOProCtosJoinGame.prototype, "version", 2);
|
|
1631
1665
|
__decorateClass([
|
|
1632
1666
|
BinaryField("u32", 4)
|
|
1633
|
-
],
|
|
1667
|
+
], _YGOProCtosJoinGame.prototype, "gameid", 2);
|
|
1634
1668
|
__decorateClass([
|
|
1635
1669
|
BinaryField("utf16", 8, 20)
|
|
1636
|
-
],
|
|
1670
|
+
], _YGOProCtosJoinGame.prototype, "pass", 2);
|
|
1671
|
+
var YGOProCtosJoinGame = _YGOProCtosJoinGame;
|
|
1637
1672
|
|
|
1638
1673
|
// src/protos/ctos/proto/leave-game.ts
|
|
1639
|
-
var
|
|
1674
|
+
var _YGOProCtosLeaveGame = class _YGOProCtosLeaveGame extends YGOProCtosBase {
|
|
1640
1675
|
};
|
|
1641
|
-
YGOProCtosLeaveGame
|
|
1676
|
+
__name(_YGOProCtosLeaveGame, "YGOProCtosLeaveGame");
|
|
1677
|
+
_YGOProCtosLeaveGame.identifier = 19;
|
|
1678
|
+
var YGOProCtosLeaveGame = _YGOProCtosLeaveGame;
|
|
1642
1679
|
|
|
1643
1680
|
// src/protos/ctos/proto/surrender.ts
|
|
1644
|
-
var
|
|
1681
|
+
var _YGOProCtosSurrender = class _YGOProCtosSurrender extends YGOProCtosBase {
|
|
1645
1682
|
};
|
|
1646
|
-
YGOProCtosSurrender
|
|
1683
|
+
__name(_YGOProCtosSurrender, "YGOProCtosSurrender");
|
|
1684
|
+
_YGOProCtosSurrender.identifier = 20;
|
|
1685
|
+
var YGOProCtosSurrender = _YGOProCtosSurrender;
|
|
1647
1686
|
|
|
1648
1687
|
// src/protos/ctos/proto/time-confirm.ts
|
|
1649
|
-
var
|
|
1688
|
+
var _YGOProCtosTimeConfirm = class _YGOProCtosTimeConfirm extends YGOProCtosBase {
|
|
1650
1689
|
};
|
|
1651
|
-
YGOProCtosTimeConfirm
|
|
1690
|
+
__name(_YGOProCtosTimeConfirm, "YGOProCtosTimeConfirm");
|
|
1691
|
+
_YGOProCtosTimeConfirm.identifier = 21;
|
|
1692
|
+
var YGOProCtosTimeConfirm = _YGOProCtosTimeConfirm;
|
|
1652
1693
|
|
|
1653
1694
|
// src/protos/ctos/proto/chat.ts
|
|
1695
|
+
var CTOS_CHAT_MAX_LENGTH = 256;
|
|
1654
1696
|
var _YGOProCtosChat = class _YGOProCtosChat extends YGOProCtosBase {
|
|
1655
1697
|
constructor() {
|
|
1656
1698
|
super();
|
|
@@ -1662,7 +1704,7 @@ var _YGOProCtosChat = class _YGOProCtosChat extends YGOProCtosBase {
|
|
|
1662
1704
|
return this;
|
|
1663
1705
|
}
|
|
1664
1706
|
toPayload() {
|
|
1665
|
-
const text = this.msg.length >
|
|
1707
|
+
const text = this.msg.length > CTOS_CHAT_MAX_LENGTH ? this.msg.substring(0, CTOS_CHAT_MAX_LENGTH) : this.msg;
|
|
1666
1708
|
const utf16 = new Uint16Array(text.length + 1);
|
|
1667
1709
|
for (let i = 0; i < text.length; i++) {
|
|
1668
1710
|
utf16[i] = text.charCodeAt(i);
|
|
@@ -1678,11 +1720,13 @@ var _YGOProCtosChat = class _YGOProCtosChat extends YGOProCtosBase {
|
|
|
1678
1720
|
return this;
|
|
1679
1721
|
}
|
|
1680
1722
|
};
|
|
1723
|
+
__name(_YGOProCtosChat, "YGOProCtosChat");
|
|
1681
1724
|
_YGOProCtosChat.identifier = 22;
|
|
1682
|
-
_YGOProCtosChat.MAX_LENGTH =
|
|
1725
|
+
_YGOProCtosChat.MAX_LENGTH = CTOS_CHAT_MAX_LENGTH;
|
|
1683
1726
|
var YGOProCtosChat = _YGOProCtosChat;
|
|
1684
1727
|
|
|
1685
1728
|
// src/protos/ctos/proto/external-address.ts
|
|
1729
|
+
var CTOS_EXTERNAL_ADDRESS_MAX_HOSTNAME_LENGTH = 256;
|
|
1686
1730
|
var _YGOProCtosExternalAddress = class _YGOProCtosExternalAddress extends YGOProCtosBase {
|
|
1687
1731
|
constructor() {
|
|
1688
1732
|
super();
|
|
@@ -1728,9 +1772,9 @@ var _YGOProCtosExternalAddress = class _YGOProCtosExternalAddress extends YGOPro
|
|
|
1728
1772
|
return this;
|
|
1729
1773
|
}
|
|
1730
1774
|
toPayload() {
|
|
1731
|
-
const text = this.hostname.length >
|
|
1775
|
+
const text = this.hostname.length > CTOS_EXTERNAL_ADDRESS_MAX_HOSTNAME_LENGTH ? this.hostname.substring(
|
|
1732
1776
|
0,
|
|
1733
|
-
|
|
1777
|
+
CTOS_EXTERNAL_ADDRESS_MAX_HOSTNAME_LENGTH
|
|
1734
1778
|
) : this.hostname;
|
|
1735
1779
|
const utf16 = new Uint16Array(text.length + 1);
|
|
1736
1780
|
for (let i = 0; i < text.length; i++) {
|
|
@@ -1756,47 +1800,63 @@ var _YGOProCtosExternalAddress = class _YGOProCtosExternalAddress extends YGOPro
|
|
|
1756
1800
|
return this;
|
|
1757
1801
|
}
|
|
1758
1802
|
};
|
|
1803
|
+
__name(_YGOProCtosExternalAddress, "YGOProCtosExternalAddress");
|
|
1759
1804
|
_YGOProCtosExternalAddress.identifier = 23;
|
|
1760
|
-
_YGOProCtosExternalAddress.
|
|
1805
|
+
_YGOProCtosExternalAddress.MAX_LENGTH = CTOS_EXTERNAL_ADDRESS_MAX_HOSTNAME_LENGTH;
|
|
1806
|
+
_YGOProCtosExternalAddress.MAX_HOSTNAME_LENGTH = CTOS_EXTERNAL_ADDRESS_MAX_HOSTNAME_LENGTH;
|
|
1761
1807
|
var YGOProCtosExternalAddress = _YGOProCtosExternalAddress;
|
|
1762
1808
|
|
|
1763
1809
|
// src/protos/ctos/proto/hs-toduelist.ts
|
|
1764
|
-
var
|
|
1810
|
+
var _YGOProCtosHsToDuelist = class _YGOProCtosHsToDuelist extends YGOProCtosBase {
|
|
1765
1811
|
};
|
|
1766
|
-
YGOProCtosHsToDuelist
|
|
1812
|
+
__name(_YGOProCtosHsToDuelist, "YGOProCtosHsToDuelist");
|
|
1813
|
+
_YGOProCtosHsToDuelist.identifier = 32;
|
|
1814
|
+
var YGOProCtosHsToDuelist = _YGOProCtosHsToDuelist;
|
|
1767
1815
|
|
|
1768
1816
|
// src/protos/ctos/proto/hs-toobserver.ts
|
|
1769
|
-
var
|
|
1817
|
+
var _YGOProCtosHsToObserver = class _YGOProCtosHsToObserver extends YGOProCtosBase {
|
|
1770
1818
|
};
|
|
1771
|
-
YGOProCtosHsToObserver
|
|
1819
|
+
__name(_YGOProCtosHsToObserver, "YGOProCtosHsToObserver");
|
|
1820
|
+
_YGOProCtosHsToObserver.identifier = 33;
|
|
1821
|
+
var YGOProCtosHsToObserver = _YGOProCtosHsToObserver;
|
|
1772
1822
|
|
|
1773
1823
|
// src/protos/ctos/proto/hs-ready.ts
|
|
1774
|
-
var
|
|
1824
|
+
var _YGOProCtosHsReady = class _YGOProCtosHsReady extends YGOProCtosBase {
|
|
1775
1825
|
};
|
|
1776
|
-
YGOProCtosHsReady
|
|
1826
|
+
__name(_YGOProCtosHsReady, "YGOProCtosHsReady");
|
|
1827
|
+
_YGOProCtosHsReady.identifier = 34;
|
|
1828
|
+
var YGOProCtosHsReady = _YGOProCtosHsReady;
|
|
1777
1829
|
|
|
1778
1830
|
// src/protos/ctos/proto/hs-notready.ts
|
|
1779
|
-
var
|
|
1831
|
+
var _YGOProCtosHsNotReady = class _YGOProCtosHsNotReady extends YGOProCtosBase {
|
|
1780
1832
|
};
|
|
1781
|
-
YGOProCtosHsNotReady
|
|
1833
|
+
__name(_YGOProCtosHsNotReady, "YGOProCtosHsNotReady");
|
|
1834
|
+
_YGOProCtosHsNotReady.identifier = 35;
|
|
1835
|
+
var YGOProCtosHsNotReady = _YGOProCtosHsNotReady;
|
|
1782
1836
|
|
|
1783
1837
|
// src/protos/ctos/proto/kick.ts
|
|
1784
|
-
var
|
|
1838
|
+
var _YGOProCtosKick = class _YGOProCtosKick extends YGOProCtosBase {
|
|
1785
1839
|
};
|
|
1786
|
-
YGOProCtosKick
|
|
1840
|
+
__name(_YGOProCtosKick, "YGOProCtosKick");
|
|
1841
|
+
_YGOProCtosKick.identifier = 36;
|
|
1787
1842
|
__decorateClass([
|
|
1788
1843
|
BinaryField("u8", 0)
|
|
1789
|
-
],
|
|
1844
|
+
], _YGOProCtosKick.prototype, "pos", 2);
|
|
1845
|
+
var YGOProCtosKick = _YGOProCtosKick;
|
|
1790
1846
|
|
|
1791
1847
|
// src/protos/ctos/proto/hs-start.ts
|
|
1792
|
-
var
|
|
1848
|
+
var _YGOProCtosHsStart = class _YGOProCtosHsStart extends YGOProCtosBase {
|
|
1793
1849
|
};
|
|
1794
|
-
YGOProCtosHsStart
|
|
1850
|
+
__name(_YGOProCtosHsStart, "YGOProCtosHsStart");
|
|
1851
|
+
_YGOProCtosHsStart.identifier = 37;
|
|
1852
|
+
var YGOProCtosHsStart = _YGOProCtosHsStart;
|
|
1795
1853
|
|
|
1796
1854
|
// src/protos/ctos/proto/request-field.ts
|
|
1797
|
-
var
|
|
1855
|
+
var _YGOProCtosRequestField = class _YGOProCtosRequestField extends YGOProCtosBase {
|
|
1798
1856
|
};
|
|
1799
|
-
YGOProCtosRequestField
|
|
1857
|
+
__name(_YGOProCtosRequestField, "YGOProCtosRequestField");
|
|
1858
|
+
_YGOProCtosRequestField.identifier = 48;
|
|
1859
|
+
var YGOProCtosRequestField = _YGOProCtosRequestField;
|
|
1800
1860
|
|
|
1801
1861
|
// src/protos/ctos/registry.ts
|
|
1802
1862
|
var YGOProCtos = new RegistryBase(YGOProCtosBase, {
|
|
@@ -1824,9 +1884,11 @@ YGOProCtos.register(YGOProCtosHsStart);
|
|
|
1824
1884
|
YGOProCtos.register(YGOProCtosRequestField);
|
|
1825
1885
|
|
|
1826
1886
|
// src/protos/stoc/base.ts
|
|
1827
|
-
var
|
|
1887
|
+
var _YGOProStocBase = class _YGOProStocBase extends YGOProProtoBase {
|
|
1828
1888
|
};
|
|
1829
|
-
|
|
1889
|
+
__name(_YGOProStocBase, "YGOProStocBase");
|
|
1890
|
+
_YGOProStocBase.messageDirection = "STOC";
|
|
1891
|
+
var YGOProStocBase = _YGOProStocBase;
|
|
1830
1892
|
|
|
1831
1893
|
// src/protos/network-enums.ts
|
|
1832
1894
|
var HandResult = /* @__PURE__ */ ((HandResult2) => {
|
|
@@ -1905,7 +1967,7 @@ var RoomStatus = /* @__PURE__ */ ((RoomStatus2) => {
|
|
|
1905
1967
|
// src/protos/msg/base.ts
|
|
1906
1968
|
var SEND_TO_PLAYERS = [0, 1];
|
|
1907
1969
|
var SEND_TO_ALL = [0, 1, 7 /* OBSERVER */];
|
|
1908
|
-
var
|
|
1970
|
+
var _YGOProMsgBase = class _YGOProMsgBase extends PayloadBase {
|
|
1909
1971
|
fromPayload(data) {
|
|
1910
1972
|
if (data.length < 1) {
|
|
1911
1973
|
throw new Error("MSG data too short");
|
|
@@ -1951,29 +2013,33 @@ var YGOProMsgBase = class extends PayloadBase {
|
|
|
1951
2013
|
return SEND_TO_ALL;
|
|
1952
2014
|
}
|
|
1953
2015
|
};
|
|
2016
|
+
__name(_YGOProMsgBase, "YGOProMsgBase");
|
|
2017
|
+
var YGOProMsgBase = _YGOProMsgBase;
|
|
1954
2018
|
|
|
1955
2019
|
// src/protos/msg/proto/add-counter.ts
|
|
1956
|
-
var
|
|
2020
|
+
var _YGOProMsgAddCounter = class _YGOProMsgAddCounter extends YGOProMsgBase {
|
|
1957
2021
|
};
|
|
1958
|
-
YGOProMsgAddCounter
|
|
2022
|
+
__name(_YGOProMsgAddCounter, "YGOProMsgAddCounter");
|
|
2023
|
+
_YGOProMsgAddCounter.identifier = OcgcoreCommonConstants.MSG_ADD_COUNTER;
|
|
1959
2024
|
__decorateClass([
|
|
1960
2025
|
BinaryField("u16", 0)
|
|
1961
|
-
],
|
|
2026
|
+
], _YGOProMsgAddCounter.prototype, "counterType", 2);
|
|
1962
2027
|
__decorateClass([
|
|
1963
2028
|
BinaryField("u8", 2)
|
|
1964
|
-
],
|
|
2029
|
+
], _YGOProMsgAddCounter.prototype, "controller", 2);
|
|
1965
2030
|
__decorateClass([
|
|
1966
2031
|
BinaryField("u8", 3)
|
|
1967
|
-
],
|
|
2032
|
+
], _YGOProMsgAddCounter.prototype, "location", 2);
|
|
1968
2033
|
__decorateClass([
|
|
1969
2034
|
BinaryField("u8", 4)
|
|
1970
|
-
],
|
|
2035
|
+
], _YGOProMsgAddCounter.prototype, "sequence", 2);
|
|
1971
2036
|
__decorateClass([
|
|
1972
2037
|
BinaryField("u16", 5)
|
|
1973
|
-
],
|
|
2038
|
+
], _YGOProMsgAddCounter.prototype, "count", 2);
|
|
2039
|
+
var YGOProMsgAddCounter = _YGOProMsgAddCounter;
|
|
1974
2040
|
|
|
1975
2041
|
// src/protos/msg/with-response-base.ts
|
|
1976
|
-
var
|
|
2042
|
+
var _YGOProMsgResponseBase = class _YGOProMsgResponseBase extends YGOProMsgBase {
|
|
1977
2043
|
defaultResponse() {
|
|
1978
2044
|
return void 0;
|
|
1979
2045
|
}
|
|
@@ -1981,9 +2047,11 @@ var YGOProMsgResponseBase = class extends YGOProMsgBase {
|
|
|
1981
2047
|
return [this.responsePlayer()];
|
|
1982
2048
|
}
|
|
1983
2049
|
};
|
|
2050
|
+
__name(_YGOProMsgResponseBase, "YGOProMsgResponseBase");
|
|
2051
|
+
var YGOProMsgResponseBase = _YGOProMsgResponseBase;
|
|
1984
2052
|
|
|
1985
2053
|
// src/protos/msg/proto/announce-attrib.ts
|
|
1986
|
-
var
|
|
2054
|
+
var _YGOProMsgAnnounceAttrib = class _YGOProMsgAnnounceAttrib extends YGOProMsgResponseBase {
|
|
1987
2055
|
responsePlayer() {
|
|
1988
2056
|
return this.player;
|
|
1989
2057
|
}
|
|
@@ -1994,19 +2062,21 @@ var YGOProMsgAnnounceAttrib = class extends YGOProMsgResponseBase {
|
|
|
1994
2062
|
return buffer;
|
|
1995
2063
|
}
|
|
1996
2064
|
};
|
|
1997
|
-
YGOProMsgAnnounceAttrib
|
|
2065
|
+
__name(_YGOProMsgAnnounceAttrib, "YGOProMsgAnnounceAttrib");
|
|
2066
|
+
_YGOProMsgAnnounceAttrib.identifier = OcgcoreCommonConstants.MSG_ANNOUNCE_ATTRIB;
|
|
1998
2067
|
__decorateClass([
|
|
1999
2068
|
BinaryField("u8", 0)
|
|
2000
|
-
],
|
|
2069
|
+
], _YGOProMsgAnnounceAttrib.prototype, "player", 2);
|
|
2001
2070
|
__decorateClass([
|
|
2002
2071
|
BinaryField("u8", 1)
|
|
2003
|
-
],
|
|
2072
|
+
], _YGOProMsgAnnounceAttrib.prototype, "count", 2);
|
|
2004
2073
|
__decorateClass([
|
|
2005
2074
|
BinaryField("u32", 2)
|
|
2006
|
-
],
|
|
2075
|
+
], _YGOProMsgAnnounceAttrib.prototype, "availableAttributes", 2);
|
|
2076
|
+
var YGOProMsgAnnounceAttrib = _YGOProMsgAnnounceAttrib;
|
|
2007
2077
|
|
|
2008
2078
|
// src/protos/msg/proto/announce-card.ts
|
|
2009
|
-
var
|
|
2079
|
+
var _YGOProMsgAnnounceCard = class _YGOProMsgAnnounceCard extends YGOProMsgResponseBase {
|
|
2010
2080
|
responsePlayer() {
|
|
2011
2081
|
return this.player;
|
|
2012
2082
|
}
|
|
@@ -2017,29 +2087,31 @@ var YGOProMsgAnnounceCard = class extends YGOProMsgResponseBase {
|
|
|
2017
2087
|
return buffer;
|
|
2018
2088
|
}
|
|
2019
2089
|
};
|
|
2020
|
-
YGOProMsgAnnounceCard
|
|
2090
|
+
__name(_YGOProMsgAnnounceCard, "YGOProMsgAnnounceCard");
|
|
2091
|
+
_YGOProMsgAnnounceCard.identifier = OcgcoreCommonConstants.MSG_ANNOUNCE_CARD;
|
|
2021
2092
|
__decorateClass([
|
|
2022
2093
|
BinaryField("u8", 0)
|
|
2023
|
-
],
|
|
2094
|
+
], _YGOProMsgAnnounceCard.prototype, "player", 2);
|
|
2024
2095
|
__decorateClass([
|
|
2025
2096
|
BinaryField("u8", 1)
|
|
2026
|
-
],
|
|
2097
|
+
], _YGOProMsgAnnounceCard.prototype, "count", 2);
|
|
2027
2098
|
__decorateClass([
|
|
2028
2099
|
BinaryField("i32", 2, (obj) => obj.count)
|
|
2029
|
-
],
|
|
2100
|
+
], _YGOProMsgAnnounceCard.prototype, "opcodes", 2);
|
|
2101
|
+
var YGOProMsgAnnounceCard = _YGOProMsgAnnounceCard;
|
|
2030
2102
|
|
|
2031
2103
|
// src/protos/msg/index-response.ts
|
|
2032
2104
|
var INDEX_RESPONSE_SYMBOL = /* @__PURE__ */ Symbol("IndexResponse");
|
|
2033
|
-
var IndexResponse = (index) => ({
|
|
2105
|
+
var IndexResponse = /* @__PURE__ */ __name((index) => ({
|
|
2034
2106
|
[INDEX_RESPONSE_SYMBOL]: true,
|
|
2035
2107
|
index
|
|
2036
|
-
});
|
|
2037
|
-
var isIndexResponse = (obj) => {
|
|
2108
|
+
}), "IndexResponse");
|
|
2109
|
+
var isIndexResponse = /* @__PURE__ */ __name((obj) => {
|
|
2038
2110
|
return obj != null && obj[INDEX_RESPONSE_SYMBOL] === true;
|
|
2039
|
-
};
|
|
2111
|
+
}, "isIndexResponse");
|
|
2040
2112
|
|
|
2041
2113
|
// src/protos/msg/proto/announce-number.ts
|
|
2042
|
-
var
|
|
2114
|
+
var _YGOProMsgAnnounceNumber = class _YGOProMsgAnnounceNumber extends YGOProMsgResponseBase {
|
|
2043
2115
|
responsePlayer() {
|
|
2044
2116
|
return this.player;
|
|
2045
2117
|
}
|
|
@@ -2062,19 +2134,21 @@ var YGOProMsgAnnounceNumber = class extends YGOProMsgResponseBase {
|
|
|
2062
2134
|
return buffer;
|
|
2063
2135
|
}
|
|
2064
2136
|
};
|
|
2065
|
-
YGOProMsgAnnounceNumber
|
|
2137
|
+
__name(_YGOProMsgAnnounceNumber, "YGOProMsgAnnounceNumber");
|
|
2138
|
+
_YGOProMsgAnnounceNumber.identifier = OcgcoreCommonConstants.MSG_ANNOUNCE_NUMBER;
|
|
2066
2139
|
__decorateClass([
|
|
2067
2140
|
BinaryField("u8", 0)
|
|
2068
|
-
],
|
|
2141
|
+
], _YGOProMsgAnnounceNumber.prototype, "player", 2);
|
|
2069
2142
|
__decorateClass([
|
|
2070
2143
|
BinaryField("u8", 1)
|
|
2071
|
-
],
|
|
2144
|
+
], _YGOProMsgAnnounceNumber.prototype, "count", 2);
|
|
2072
2145
|
__decorateClass([
|
|
2073
2146
|
BinaryField("i32", 2, (obj) => obj.count)
|
|
2074
|
-
],
|
|
2147
|
+
], _YGOProMsgAnnounceNumber.prototype, "numbers", 2);
|
|
2148
|
+
var YGOProMsgAnnounceNumber = _YGOProMsgAnnounceNumber;
|
|
2075
2149
|
|
|
2076
2150
|
// src/protos/msg/proto/announce-race.ts
|
|
2077
|
-
var
|
|
2151
|
+
var _YGOProMsgAnnounceRace = class _YGOProMsgAnnounceRace extends YGOProMsgResponseBase {
|
|
2078
2152
|
responsePlayer() {
|
|
2079
2153
|
return this.player;
|
|
2080
2154
|
}
|
|
@@ -2085,254 +2159,296 @@ var YGOProMsgAnnounceRace = class extends YGOProMsgResponseBase {
|
|
|
2085
2159
|
return buffer;
|
|
2086
2160
|
}
|
|
2087
2161
|
};
|
|
2088
|
-
YGOProMsgAnnounceRace
|
|
2162
|
+
__name(_YGOProMsgAnnounceRace, "YGOProMsgAnnounceRace");
|
|
2163
|
+
_YGOProMsgAnnounceRace.identifier = OcgcoreCommonConstants.MSG_ANNOUNCE_RACE;
|
|
2089
2164
|
__decorateClass([
|
|
2090
2165
|
BinaryField("u8", 0)
|
|
2091
|
-
],
|
|
2166
|
+
], _YGOProMsgAnnounceRace.prototype, "player", 2);
|
|
2092
2167
|
__decorateClass([
|
|
2093
2168
|
BinaryField("u8", 1)
|
|
2094
|
-
],
|
|
2169
|
+
], _YGOProMsgAnnounceRace.prototype, "count", 2);
|
|
2095
2170
|
__decorateClass([
|
|
2096
2171
|
BinaryField("u32", 2)
|
|
2097
|
-
],
|
|
2172
|
+
], _YGOProMsgAnnounceRace.prototype, "availableRaces", 2);
|
|
2173
|
+
var YGOProMsgAnnounceRace = _YGOProMsgAnnounceRace;
|
|
2098
2174
|
|
|
2099
2175
|
// src/protos/msg/proto/attack.ts
|
|
2100
|
-
var
|
|
2176
|
+
var _YGOProMsgAttack_CardLocation = class _YGOProMsgAttack_CardLocation {
|
|
2101
2177
|
};
|
|
2178
|
+
__name(_YGOProMsgAttack_CardLocation, "YGOProMsgAttack_CardLocation");
|
|
2102
2179
|
__decorateClass([
|
|
2103
2180
|
BinaryField("u8", 0)
|
|
2104
|
-
],
|
|
2181
|
+
], _YGOProMsgAttack_CardLocation.prototype, "controller", 2);
|
|
2105
2182
|
__decorateClass([
|
|
2106
2183
|
BinaryField("u8", 1)
|
|
2107
|
-
],
|
|
2184
|
+
], _YGOProMsgAttack_CardLocation.prototype, "location", 2);
|
|
2108
2185
|
__decorateClass([
|
|
2109
2186
|
BinaryField("u8", 2)
|
|
2110
|
-
],
|
|
2187
|
+
], _YGOProMsgAttack_CardLocation.prototype, "sequence", 2);
|
|
2111
2188
|
__decorateClass([
|
|
2112
2189
|
BinaryField("u8", 3)
|
|
2113
|
-
],
|
|
2114
|
-
var
|
|
2190
|
+
], _YGOProMsgAttack_CardLocation.prototype, "position", 2);
|
|
2191
|
+
var YGOProMsgAttack_CardLocation = _YGOProMsgAttack_CardLocation;
|
|
2192
|
+
var _YGOProMsgAttack = class _YGOProMsgAttack extends YGOProMsgBase {
|
|
2115
2193
|
};
|
|
2116
|
-
YGOProMsgAttack
|
|
2194
|
+
__name(_YGOProMsgAttack, "YGOProMsgAttack");
|
|
2195
|
+
_YGOProMsgAttack.identifier = OcgcoreCommonConstants.MSG_ATTACK;
|
|
2117
2196
|
__decorateClass([
|
|
2118
2197
|
BinaryField(() => YGOProMsgAttack_CardLocation, 0)
|
|
2119
|
-
],
|
|
2198
|
+
], _YGOProMsgAttack.prototype, "attacker", 2);
|
|
2120
2199
|
__decorateClass([
|
|
2121
2200
|
BinaryField(() => YGOProMsgAttack_CardLocation, 4)
|
|
2122
|
-
],
|
|
2201
|
+
], _YGOProMsgAttack.prototype, "defender", 2);
|
|
2202
|
+
var YGOProMsgAttack = _YGOProMsgAttack;
|
|
2123
2203
|
|
|
2124
2204
|
// src/protos/msg/proto/attack-disabled.ts
|
|
2125
|
-
var
|
|
2205
|
+
var _YGOProMsgAttackDisabled = class _YGOProMsgAttackDisabled extends YGOProMsgBase {
|
|
2126
2206
|
};
|
|
2127
|
-
YGOProMsgAttackDisabled
|
|
2207
|
+
__name(_YGOProMsgAttackDisabled, "YGOProMsgAttackDisabled");
|
|
2208
|
+
_YGOProMsgAttackDisabled.identifier = OcgcoreCommonConstants.MSG_ATTACK_DISABLED;
|
|
2209
|
+
var YGOProMsgAttackDisabled = _YGOProMsgAttackDisabled;
|
|
2128
2210
|
|
|
2129
2211
|
// src/protos/msg/proto/battle.ts
|
|
2130
|
-
var
|
|
2212
|
+
var _YGOProMsgBattle_CardLocation = class _YGOProMsgBattle_CardLocation {
|
|
2131
2213
|
};
|
|
2214
|
+
__name(_YGOProMsgBattle_CardLocation, "YGOProMsgBattle_CardLocation");
|
|
2132
2215
|
__decorateClass([
|
|
2133
2216
|
BinaryField("u8", 0)
|
|
2134
|
-
],
|
|
2217
|
+
], _YGOProMsgBattle_CardLocation.prototype, "controller", 2);
|
|
2135
2218
|
__decorateClass([
|
|
2136
2219
|
BinaryField("u8", 1)
|
|
2137
|
-
],
|
|
2220
|
+
], _YGOProMsgBattle_CardLocation.prototype, "location", 2);
|
|
2138
2221
|
__decorateClass([
|
|
2139
2222
|
BinaryField("u8", 2)
|
|
2140
|
-
],
|
|
2223
|
+
], _YGOProMsgBattle_CardLocation.prototype, "sequence", 2);
|
|
2141
2224
|
__decorateClass([
|
|
2142
2225
|
BinaryField("u8", 3)
|
|
2143
|
-
],
|
|
2144
|
-
var
|
|
2226
|
+
], _YGOProMsgBattle_CardLocation.prototype, "position", 2);
|
|
2227
|
+
var YGOProMsgBattle_CardLocation = _YGOProMsgBattle_CardLocation;
|
|
2228
|
+
var _YGOProMsgBattle_CardStats = class _YGOProMsgBattle_CardStats {
|
|
2145
2229
|
};
|
|
2230
|
+
__name(_YGOProMsgBattle_CardStats, "YGOProMsgBattle_CardStats");
|
|
2146
2231
|
__decorateClass([
|
|
2147
2232
|
BinaryField(() => YGOProMsgBattle_CardLocation, 0)
|
|
2148
|
-
],
|
|
2233
|
+
], _YGOProMsgBattle_CardStats.prototype, "location", 2);
|
|
2149
2234
|
__decorateClass([
|
|
2150
2235
|
BinaryField("i32", 4)
|
|
2151
|
-
],
|
|
2236
|
+
], _YGOProMsgBattle_CardStats.prototype, "atk", 2);
|
|
2152
2237
|
__decorateClass([
|
|
2153
2238
|
BinaryField("i32", 8)
|
|
2154
|
-
],
|
|
2155
|
-
var
|
|
2239
|
+
], _YGOProMsgBattle_CardStats.prototype, "def", 2);
|
|
2240
|
+
var YGOProMsgBattle_CardStats = _YGOProMsgBattle_CardStats;
|
|
2241
|
+
var _YGOProMsgBattle = class _YGOProMsgBattle extends YGOProMsgBase {
|
|
2156
2242
|
};
|
|
2157
|
-
YGOProMsgBattle
|
|
2243
|
+
__name(_YGOProMsgBattle, "YGOProMsgBattle");
|
|
2244
|
+
_YGOProMsgBattle.identifier = OcgcoreCommonConstants.MSG_BATTLE;
|
|
2158
2245
|
__decorateClass([
|
|
2159
2246
|
BinaryField(() => YGOProMsgBattle_CardStats, 0)
|
|
2160
|
-
],
|
|
2247
|
+
], _YGOProMsgBattle.prototype, "attacker", 2);
|
|
2161
2248
|
__decorateClass([
|
|
2162
2249
|
BinaryField(() => YGOProMsgBattle_CardStats, 12)
|
|
2163
|
-
],
|
|
2250
|
+
], _YGOProMsgBattle.prototype, "defender", 2);
|
|
2164
2251
|
__decorateClass([
|
|
2165
2252
|
BinaryField("u8", 24)
|
|
2166
|
-
],
|
|
2253
|
+
], _YGOProMsgBattle.prototype, "battleDamageCalc", 2);
|
|
2254
|
+
var YGOProMsgBattle = _YGOProMsgBattle;
|
|
2167
2255
|
|
|
2168
2256
|
// src/protos/msg/proto/become-target.ts
|
|
2169
|
-
var
|
|
2257
|
+
var _YGOProMsgBecomeTarget = class _YGOProMsgBecomeTarget extends YGOProMsgBase {
|
|
2170
2258
|
};
|
|
2171
|
-
YGOProMsgBecomeTarget
|
|
2259
|
+
__name(_YGOProMsgBecomeTarget, "YGOProMsgBecomeTarget");
|
|
2260
|
+
_YGOProMsgBecomeTarget.identifier = OcgcoreCommonConstants.MSG_BECOME_TARGET;
|
|
2172
2261
|
__decorateClass([
|
|
2173
2262
|
BinaryField("u8", 0)
|
|
2174
|
-
],
|
|
2263
|
+
], _YGOProMsgBecomeTarget.prototype, "count", 2);
|
|
2175
2264
|
__decorateClass([
|
|
2176
2265
|
BinaryField("i32", 1, (obj) => obj.count)
|
|
2177
|
-
],
|
|
2266
|
+
], _YGOProMsgBecomeTarget.prototype, "targets", 2);
|
|
2267
|
+
var YGOProMsgBecomeTarget = _YGOProMsgBecomeTarget;
|
|
2178
2268
|
|
|
2179
2269
|
// src/protos/msg/proto/cancel-target.ts
|
|
2180
|
-
var
|
|
2270
|
+
var _YGOProMsgCancelTarget_CardLocation = class _YGOProMsgCancelTarget_CardLocation {
|
|
2181
2271
|
};
|
|
2272
|
+
__name(_YGOProMsgCancelTarget_CardLocation, "YGOProMsgCancelTarget_CardLocation");
|
|
2182
2273
|
__decorateClass([
|
|
2183
2274
|
BinaryField("u8", 0)
|
|
2184
|
-
],
|
|
2275
|
+
], _YGOProMsgCancelTarget_CardLocation.prototype, "controller", 2);
|
|
2185
2276
|
__decorateClass([
|
|
2186
2277
|
BinaryField("u8", 1)
|
|
2187
|
-
],
|
|
2278
|
+
], _YGOProMsgCancelTarget_CardLocation.prototype, "location", 2);
|
|
2188
2279
|
__decorateClass([
|
|
2189
2280
|
BinaryField("u8", 2)
|
|
2190
|
-
],
|
|
2191
|
-
var
|
|
2281
|
+
], _YGOProMsgCancelTarget_CardLocation.prototype, "sequence", 2);
|
|
2282
|
+
var YGOProMsgCancelTarget_CardLocation = _YGOProMsgCancelTarget_CardLocation;
|
|
2283
|
+
var _YGOProMsgCancelTarget = class _YGOProMsgCancelTarget extends YGOProMsgBase {
|
|
2192
2284
|
};
|
|
2193
|
-
YGOProMsgCancelTarget
|
|
2285
|
+
__name(_YGOProMsgCancelTarget, "YGOProMsgCancelTarget");
|
|
2286
|
+
_YGOProMsgCancelTarget.identifier = OcgcoreCommonConstants.MSG_CANCEL_TARGET;
|
|
2194
2287
|
__decorateClass([
|
|
2195
2288
|
BinaryField(() => YGOProMsgCancelTarget_CardLocation, 0)
|
|
2196
|
-
],
|
|
2289
|
+
], _YGOProMsgCancelTarget.prototype, "card1", 2);
|
|
2197
2290
|
__decorateClass([
|
|
2198
2291
|
BinaryField(() => YGOProMsgCancelTarget_CardLocation, 3)
|
|
2199
|
-
],
|
|
2292
|
+
], _YGOProMsgCancelTarget.prototype, "card2", 2);
|
|
2293
|
+
var YGOProMsgCancelTarget = _YGOProMsgCancelTarget;
|
|
2200
2294
|
|
|
2201
2295
|
// src/protos/msg/proto/card-hint.ts
|
|
2202
|
-
var
|
|
2296
|
+
var _YGOProMsgCardHint = class _YGOProMsgCardHint extends YGOProMsgBase {
|
|
2203
2297
|
};
|
|
2204
|
-
YGOProMsgCardHint
|
|
2298
|
+
__name(_YGOProMsgCardHint, "YGOProMsgCardHint");
|
|
2299
|
+
_YGOProMsgCardHint.identifier = OcgcoreCommonConstants.MSG_CARD_HINT;
|
|
2205
2300
|
__decorateClass([
|
|
2206
2301
|
BinaryField("u8", 0)
|
|
2207
|
-
],
|
|
2302
|
+
], _YGOProMsgCardHint.prototype, "controller", 2);
|
|
2208
2303
|
__decorateClass([
|
|
2209
2304
|
BinaryField("u8", 1)
|
|
2210
|
-
],
|
|
2305
|
+
], _YGOProMsgCardHint.prototype, "location", 2);
|
|
2211
2306
|
__decorateClass([
|
|
2212
2307
|
BinaryField("u8", 2)
|
|
2213
|
-
],
|
|
2308
|
+
], _YGOProMsgCardHint.prototype, "sequence", 2);
|
|
2214
2309
|
__decorateClass([
|
|
2215
2310
|
BinaryField("u8", 3)
|
|
2216
|
-
],
|
|
2311
|
+
], _YGOProMsgCardHint.prototype, "subsequence", 2);
|
|
2217
2312
|
__decorateClass([
|
|
2218
2313
|
BinaryField("u8", 4)
|
|
2219
|
-
],
|
|
2314
|
+
], _YGOProMsgCardHint.prototype, "type", 2);
|
|
2220
2315
|
__decorateClass([
|
|
2221
2316
|
BinaryField("i32", 5)
|
|
2222
|
-
],
|
|
2317
|
+
], _YGOProMsgCardHint.prototype, "value", 2);
|
|
2318
|
+
var YGOProMsgCardHint = _YGOProMsgCardHint;
|
|
2223
2319
|
|
|
2224
2320
|
// src/protos/msg/proto/card-target.ts
|
|
2225
|
-
var
|
|
2321
|
+
var _YGOProMsgCardTarget_CardLocation = class _YGOProMsgCardTarget_CardLocation {
|
|
2226
2322
|
};
|
|
2323
|
+
__name(_YGOProMsgCardTarget_CardLocation, "YGOProMsgCardTarget_CardLocation");
|
|
2227
2324
|
__decorateClass([
|
|
2228
2325
|
BinaryField("u8", 0)
|
|
2229
|
-
],
|
|
2326
|
+
], _YGOProMsgCardTarget_CardLocation.prototype, "controller", 2);
|
|
2230
2327
|
__decorateClass([
|
|
2231
2328
|
BinaryField("u8", 1)
|
|
2232
|
-
],
|
|
2329
|
+
], _YGOProMsgCardTarget_CardLocation.prototype, "location", 2);
|
|
2233
2330
|
__decorateClass([
|
|
2234
2331
|
BinaryField("u8", 2)
|
|
2235
|
-
],
|
|
2236
|
-
var
|
|
2332
|
+
], _YGOProMsgCardTarget_CardLocation.prototype, "sequence", 2);
|
|
2333
|
+
var YGOProMsgCardTarget_CardLocation = _YGOProMsgCardTarget_CardLocation;
|
|
2334
|
+
var _YGOProMsgCardTarget = class _YGOProMsgCardTarget extends YGOProMsgBase {
|
|
2237
2335
|
};
|
|
2238
|
-
YGOProMsgCardTarget
|
|
2336
|
+
__name(_YGOProMsgCardTarget, "YGOProMsgCardTarget");
|
|
2337
|
+
_YGOProMsgCardTarget.identifier = OcgcoreCommonConstants.MSG_CARD_TARGET;
|
|
2239
2338
|
__decorateClass([
|
|
2240
2339
|
BinaryField(() => YGOProMsgCardTarget_CardLocation, 0)
|
|
2241
|
-
],
|
|
2340
|
+
], _YGOProMsgCardTarget.prototype, "card1", 2);
|
|
2242
2341
|
__decorateClass([
|
|
2243
2342
|
BinaryField(() => YGOProMsgCardTarget_CardLocation, 3)
|
|
2244
|
-
],
|
|
2343
|
+
], _YGOProMsgCardTarget.prototype, "card2", 2);
|
|
2344
|
+
var YGOProMsgCardTarget = _YGOProMsgCardTarget;
|
|
2245
2345
|
|
|
2246
2346
|
// src/protos/msg/proto/chain-disabled.ts
|
|
2247
|
-
var
|
|
2347
|
+
var _YGOProMsgChainDisabled = class _YGOProMsgChainDisabled extends YGOProMsgBase {
|
|
2248
2348
|
};
|
|
2249
|
-
YGOProMsgChainDisabled
|
|
2349
|
+
__name(_YGOProMsgChainDisabled, "YGOProMsgChainDisabled");
|
|
2350
|
+
_YGOProMsgChainDisabled.identifier = OcgcoreCommonConstants.MSG_CHAIN_DISABLED;
|
|
2250
2351
|
__decorateClass([
|
|
2251
2352
|
BinaryField("u8", 0)
|
|
2252
|
-
],
|
|
2353
|
+
], _YGOProMsgChainDisabled.prototype, "chainCount", 2);
|
|
2354
|
+
var YGOProMsgChainDisabled = _YGOProMsgChainDisabled;
|
|
2253
2355
|
|
|
2254
2356
|
// src/protos/msg/proto/chain-end.ts
|
|
2255
|
-
var
|
|
2357
|
+
var _YGOProMsgChainEnd = class _YGOProMsgChainEnd extends YGOProMsgBase {
|
|
2256
2358
|
};
|
|
2257
|
-
YGOProMsgChainEnd
|
|
2359
|
+
__name(_YGOProMsgChainEnd, "YGOProMsgChainEnd");
|
|
2360
|
+
_YGOProMsgChainEnd.identifier = OcgcoreCommonConstants.MSG_CHAIN_END;
|
|
2361
|
+
var YGOProMsgChainEnd = _YGOProMsgChainEnd;
|
|
2258
2362
|
|
|
2259
2363
|
// src/protos/msg/proto/chain-negated.ts
|
|
2260
|
-
var
|
|
2364
|
+
var _YGOProMsgChainNegated = class _YGOProMsgChainNegated extends YGOProMsgBase {
|
|
2261
2365
|
};
|
|
2262
|
-
YGOProMsgChainNegated
|
|
2366
|
+
__name(_YGOProMsgChainNegated, "YGOProMsgChainNegated");
|
|
2367
|
+
_YGOProMsgChainNegated.identifier = OcgcoreCommonConstants.MSG_CHAIN_NEGATED;
|
|
2263
2368
|
__decorateClass([
|
|
2264
2369
|
BinaryField("u8", 0)
|
|
2265
|
-
],
|
|
2370
|
+
], _YGOProMsgChainNegated.prototype, "chainCount", 2);
|
|
2371
|
+
var YGOProMsgChainNegated = _YGOProMsgChainNegated;
|
|
2266
2372
|
|
|
2267
2373
|
// src/protos/msg/proto/chain-solved.ts
|
|
2268
|
-
var
|
|
2374
|
+
var _YGOProMsgChainSolved = class _YGOProMsgChainSolved extends YGOProMsgBase {
|
|
2269
2375
|
};
|
|
2270
|
-
YGOProMsgChainSolved
|
|
2376
|
+
__name(_YGOProMsgChainSolved, "YGOProMsgChainSolved");
|
|
2377
|
+
_YGOProMsgChainSolved.identifier = OcgcoreCommonConstants.MSG_CHAIN_SOLVED;
|
|
2271
2378
|
__decorateClass([
|
|
2272
2379
|
BinaryField("u8", 0)
|
|
2273
|
-
],
|
|
2380
|
+
], _YGOProMsgChainSolved.prototype, "chainCount", 2);
|
|
2381
|
+
var YGOProMsgChainSolved = _YGOProMsgChainSolved;
|
|
2274
2382
|
|
|
2275
2383
|
// src/protos/msg/proto/chain-solving.ts
|
|
2276
|
-
var
|
|
2384
|
+
var _YGOProMsgChainSolving = class _YGOProMsgChainSolving extends YGOProMsgBase {
|
|
2277
2385
|
};
|
|
2278
|
-
YGOProMsgChainSolving
|
|
2386
|
+
__name(_YGOProMsgChainSolving, "YGOProMsgChainSolving");
|
|
2387
|
+
_YGOProMsgChainSolving.identifier = OcgcoreCommonConstants.MSG_CHAIN_SOLVING;
|
|
2279
2388
|
__decorateClass([
|
|
2280
2389
|
BinaryField("u8", 0)
|
|
2281
|
-
],
|
|
2390
|
+
], _YGOProMsgChainSolving.prototype, "chainCount", 2);
|
|
2391
|
+
var YGOProMsgChainSolving = _YGOProMsgChainSolving;
|
|
2282
2392
|
|
|
2283
2393
|
// src/protos/msg/proto/chained.ts
|
|
2284
|
-
var
|
|
2394
|
+
var _YGOProMsgChained = class _YGOProMsgChained extends YGOProMsgBase {
|
|
2285
2395
|
};
|
|
2286
|
-
YGOProMsgChained
|
|
2396
|
+
__name(_YGOProMsgChained, "YGOProMsgChained");
|
|
2397
|
+
_YGOProMsgChained.identifier = OcgcoreCommonConstants.MSG_CHAINED;
|
|
2287
2398
|
__decorateClass([
|
|
2288
2399
|
BinaryField("u8", 0)
|
|
2289
|
-
],
|
|
2400
|
+
], _YGOProMsgChained.prototype, "chainCount", 2);
|
|
2401
|
+
var YGOProMsgChained = _YGOProMsgChained;
|
|
2290
2402
|
|
|
2291
2403
|
// src/protos/msg/proto/chaining.ts
|
|
2292
|
-
var
|
|
2404
|
+
var _YGOProMsgChaining = class _YGOProMsgChaining extends YGOProMsgBase {
|
|
2293
2405
|
};
|
|
2294
|
-
YGOProMsgChaining
|
|
2406
|
+
__name(_YGOProMsgChaining, "YGOProMsgChaining");
|
|
2407
|
+
_YGOProMsgChaining.identifier = OcgcoreCommonConstants.MSG_CHAINING;
|
|
2295
2408
|
__decorateClass([
|
|
2296
2409
|
BinaryField("i32", 0)
|
|
2297
|
-
],
|
|
2410
|
+
], _YGOProMsgChaining.prototype, "code", 2);
|
|
2298
2411
|
__decorateClass([
|
|
2299
2412
|
BinaryField("u8", 4)
|
|
2300
|
-
],
|
|
2413
|
+
], _YGOProMsgChaining.prototype, "controller", 2);
|
|
2301
2414
|
__decorateClass([
|
|
2302
2415
|
BinaryField("u8", 5)
|
|
2303
|
-
],
|
|
2416
|
+
], _YGOProMsgChaining.prototype, "location", 2);
|
|
2304
2417
|
__decorateClass([
|
|
2305
2418
|
BinaryField("u8", 6)
|
|
2306
|
-
],
|
|
2419
|
+
], _YGOProMsgChaining.prototype, "sequence", 2);
|
|
2307
2420
|
__decorateClass([
|
|
2308
2421
|
BinaryField("u8", 7)
|
|
2309
|
-
],
|
|
2422
|
+
], _YGOProMsgChaining.prototype, "subsequence", 2);
|
|
2310
2423
|
__decorateClass([
|
|
2311
2424
|
BinaryField("u8", 8)
|
|
2312
|
-
],
|
|
2425
|
+
], _YGOProMsgChaining.prototype, "chainCount", 2);
|
|
2313
2426
|
__decorateClass([
|
|
2314
2427
|
BinaryField("i32", 9)
|
|
2315
|
-
],
|
|
2428
|
+
], _YGOProMsgChaining.prototype, "desc", 2);
|
|
2316
2429
|
__decorateClass([
|
|
2317
2430
|
BinaryField("u8", 13)
|
|
2318
|
-
],
|
|
2431
|
+
], _YGOProMsgChaining.prototype, "chainPlayer", 2);
|
|
2432
|
+
var YGOProMsgChaining = _YGOProMsgChaining;
|
|
2319
2433
|
|
|
2320
2434
|
// src/protos/msg/proto/confirm-cards.ts
|
|
2321
|
-
var
|
|
2435
|
+
var _YGOProMsgConfirmCards_CardInfo = class _YGOProMsgConfirmCards_CardInfo {
|
|
2322
2436
|
};
|
|
2437
|
+
__name(_YGOProMsgConfirmCards_CardInfo, "YGOProMsgConfirmCards_CardInfo");
|
|
2323
2438
|
__decorateClass([
|
|
2324
2439
|
BinaryField("i32", 0)
|
|
2325
|
-
],
|
|
2440
|
+
], _YGOProMsgConfirmCards_CardInfo.prototype, "code", 2);
|
|
2326
2441
|
__decorateClass([
|
|
2327
2442
|
BinaryField("u8", 4)
|
|
2328
|
-
],
|
|
2443
|
+
], _YGOProMsgConfirmCards_CardInfo.prototype, "controller", 2);
|
|
2329
2444
|
__decorateClass([
|
|
2330
2445
|
BinaryField("u8", 5)
|
|
2331
|
-
],
|
|
2446
|
+
], _YGOProMsgConfirmCards_CardInfo.prototype, "location", 2);
|
|
2332
2447
|
__decorateClass([
|
|
2333
2448
|
BinaryField("u8", 6)
|
|
2334
|
-
],
|
|
2335
|
-
var
|
|
2449
|
+
], _YGOProMsgConfirmCards_CardInfo.prototype, "sequence", 2);
|
|
2450
|
+
var YGOProMsgConfirmCards_CardInfo = _YGOProMsgConfirmCards_CardInfo;
|
|
2451
|
+
var _YGOProMsgConfirmCards = class _YGOProMsgConfirmCards extends YGOProMsgBase {
|
|
2336
2452
|
// 对方视角可能需要隐藏卡片信息
|
|
2337
2453
|
opponentView() {
|
|
2338
2454
|
const view = this.copy();
|
|
@@ -2352,36 +2468,40 @@ var YGOProMsgConfirmCards = class extends YGOProMsgBase {
|
|
|
2352
2468
|
return SEND_TO_ALL;
|
|
2353
2469
|
}
|
|
2354
2470
|
};
|
|
2355
|
-
YGOProMsgConfirmCards
|
|
2471
|
+
__name(_YGOProMsgConfirmCards, "YGOProMsgConfirmCards");
|
|
2472
|
+
_YGOProMsgConfirmCards.identifier = OcgcoreCommonConstants.MSG_CONFIRM_CARDS;
|
|
2356
2473
|
__decorateClass([
|
|
2357
2474
|
BinaryField("u8", 0)
|
|
2358
|
-
],
|
|
2475
|
+
], _YGOProMsgConfirmCards.prototype, "player", 2);
|
|
2359
2476
|
__decorateClass([
|
|
2360
2477
|
BinaryField("u8", 1)
|
|
2361
|
-
],
|
|
2478
|
+
], _YGOProMsgConfirmCards.prototype, "skipPanel", 2);
|
|
2362
2479
|
__decorateClass([
|
|
2363
2480
|
BinaryField("u8", 2)
|
|
2364
|
-
],
|
|
2481
|
+
], _YGOProMsgConfirmCards.prototype, "count", 2);
|
|
2365
2482
|
__decorateClass([
|
|
2366
2483
|
BinaryField(() => YGOProMsgConfirmCards_CardInfo, 3, (obj) => obj.count)
|
|
2367
|
-
],
|
|
2484
|
+
], _YGOProMsgConfirmCards.prototype, "cards", 2);
|
|
2485
|
+
var YGOProMsgConfirmCards = _YGOProMsgConfirmCards;
|
|
2368
2486
|
|
|
2369
2487
|
// src/protos/msg/proto/confirm-decktop.ts
|
|
2370
|
-
var
|
|
2488
|
+
var _YGOProMsgConfirmDeckTop_CardInfo = class _YGOProMsgConfirmDeckTop_CardInfo {
|
|
2371
2489
|
};
|
|
2490
|
+
__name(_YGOProMsgConfirmDeckTop_CardInfo, "YGOProMsgConfirmDeckTop_CardInfo");
|
|
2372
2491
|
__decorateClass([
|
|
2373
2492
|
BinaryField("i32", 0)
|
|
2374
|
-
],
|
|
2493
|
+
], _YGOProMsgConfirmDeckTop_CardInfo.prototype, "code", 2);
|
|
2375
2494
|
__decorateClass([
|
|
2376
2495
|
BinaryField("u8", 4)
|
|
2377
|
-
],
|
|
2496
|
+
], _YGOProMsgConfirmDeckTop_CardInfo.prototype, "controller", 2);
|
|
2378
2497
|
__decorateClass([
|
|
2379
2498
|
BinaryField("u8", 5)
|
|
2380
|
-
],
|
|
2499
|
+
], _YGOProMsgConfirmDeckTop_CardInfo.prototype, "location", 2);
|
|
2381
2500
|
__decorateClass([
|
|
2382
2501
|
BinaryField("u8", 6)
|
|
2383
|
-
],
|
|
2384
|
-
var
|
|
2502
|
+
], _YGOProMsgConfirmDeckTop_CardInfo.prototype, "sequence", 2);
|
|
2503
|
+
var YGOProMsgConfirmDeckTop_CardInfo = _YGOProMsgConfirmDeckTop_CardInfo;
|
|
2504
|
+
var _YGOProMsgConfirmDeckTop = class _YGOProMsgConfirmDeckTop extends YGOProMsgBase {
|
|
2385
2505
|
// 对方视角可能需要隐藏卡片信息
|
|
2386
2506
|
opponentView() {
|
|
2387
2507
|
const view = this.copy();
|
|
@@ -2396,33 +2516,37 @@ var YGOProMsgConfirmDeckTop = class extends YGOProMsgBase {
|
|
|
2396
2516
|
}
|
|
2397
2517
|
// confirm-decktop 使用基类的 playerView (基于 player 字段)
|
|
2398
2518
|
};
|
|
2399
|
-
YGOProMsgConfirmDeckTop
|
|
2519
|
+
__name(_YGOProMsgConfirmDeckTop, "YGOProMsgConfirmDeckTop");
|
|
2520
|
+
_YGOProMsgConfirmDeckTop.identifier = OcgcoreCommonConstants.MSG_CONFIRM_DECKTOP;
|
|
2400
2521
|
__decorateClass([
|
|
2401
2522
|
BinaryField("u8", 0)
|
|
2402
|
-
],
|
|
2523
|
+
], _YGOProMsgConfirmDeckTop.prototype, "player", 2);
|
|
2403
2524
|
__decorateClass([
|
|
2404
2525
|
BinaryField("u8", 1)
|
|
2405
|
-
],
|
|
2526
|
+
], _YGOProMsgConfirmDeckTop.prototype, "count", 2);
|
|
2406
2527
|
__decorateClass([
|
|
2407
2528
|
BinaryField(() => YGOProMsgConfirmDeckTop_CardInfo, 2, (obj) => obj.count)
|
|
2408
|
-
],
|
|
2529
|
+
], _YGOProMsgConfirmDeckTop.prototype, "cards", 2);
|
|
2530
|
+
var YGOProMsgConfirmDeckTop = _YGOProMsgConfirmDeckTop;
|
|
2409
2531
|
|
|
2410
2532
|
// src/protos/msg/proto/confirm-extratop.ts
|
|
2411
|
-
var
|
|
2533
|
+
var _YGOProMsgConfirmExtraTop_CardInfo = class _YGOProMsgConfirmExtraTop_CardInfo {
|
|
2412
2534
|
};
|
|
2535
|
+
__name(_YGOProMsgConfirmExtraTop_CardInfo, "YGOProMsgConfirmExtraTop_CardInfo");
|
|
2413
2536
|
__decorateClass([
|
|
2414
2537
|
BinaryField("i32", 0)
|
|
2415
|
-
],
|
|
2538
|
+
], _YGOProMsgConfirmExtraTop_CardInfo.prototype, "code", 2);
|
|
2416
2539
|
__decorateClass([
|
|
2417
2540
|
BinaryField("u8", 4)
|
|
2418
|
-
],
|
|
2541
|
+
], _YGOProMsgConfirmExtraTop_CardInfo.prototype, "controller", 2);
|
|
2419
2542
|
__decorateClass([
|
|
2420
2543
|
BinaryField("u8", 5)
|
|
2421
|
-
],
|
|
2544
|
+
], _YGOProMsgConfirmExtraTop_CardInfo.prototype, "location", 2);
|
|
2422
2545
|
__decorateClass([
|
|
2423
2546
|
BinaryField("u8", 6)
|
|
2424
|
-
],
|
|
2425
|
-
var
|
|
2547
|
+
], _YGOProMsgConfirmExtraTop_CardInfo.prototype, "sequence", 2);
|
|
2548
|
+
var YGOProMsgConfirmExtraTop_CardInfo = _YGOProMsgConfirmExtraTop_CardInfo;
|
|
2549
|
+
var _YGOProMsgConfirmExtraTop = class _YGOProMsgConfirmExtraTop extends YGOProMsgBase {
|
|
2426
2550
|
// 对方视角可能需要隐藏卡片信息
|
|
2427
2551
|
opponentView() {
|
|
2428
2552
|
const view = this.copy();
|
|
@@ -2437,40 +2561,48 @@ var YGOProMsgConfirmExtraTop = class extends YGOProMsgBase {
|
|
|
2437
2561
|
}
|
|
2438
2562
|
// confirm-extratop 使用基类的 playerView (基于 player 字段)
|
|
2439
2563
|
};
|
|
2440
|
-
YGOProMsgConfirmExtraTop
|
|
2564
|
+
__name(_YGOProMsgConfirmExtraTop, "YGOProMsgConfirmExtraTop");
|
|
2565
|
+
_YGOProMsgConfirmExtraTop.identifier = OcgcoreCommonConstants.MSG_CONFIRM_EXTRATOP;
|
|
2441
2566
|
__decorateClass([
|
|
2442
2567
|
BinaryField("u8", 0)
|
|
2443
|
-
],
|
|
2568
|
+
], _YGOProMsgConfirmExtraTop.prototype, "player", 2);
|
|
2444
2569
|
__decorateClass([
|
|
2445
2570
|
BinaryField("u8", 1)
|
|
2446
|
-
],
|
|
2571
|
+
], _YGOProMsgConfirmExtraTop.prototype, "count", 2);
|
|
2447
2572
|
__decorateClass([
|
|
2448
2573
|
BinaryField(() => YGOProMsgConfirmExtraTop_CardInfo, 2, (obj) => obj.count)
|
|
2449
|
-
],
|
|
2574
|
+
], _YGOProMsgConfirmExtraTop.prototype, "cards", 2);
|
|
2575
|
+
var YGOProMsgConfirmExtraTop = _YGOProMsgConfirmExtraTop;
|
|
2450
2576
|
|
|
2451
2577
|
// src/protos/msg/proto/damage.ts
|
|
2452
|
-
var
|
|
2578
|
+
var _YGOProMsgDamage = class _YGOProMsgDamage extends YGOProMsgBase {
|
|
2453
2579
|
};
|
|
2454
|
-
YGOProMsgDamage
|
|
2580
|
+
__name(_YGOProMsgDamage, "YGOProMsgDamage");
|
|
2581
|
+
_YGOProMsgDamage.identifier = OcgcoreCommonConstants.MSG_DAMAGE;
|
|
2455
2582
|
__decorateClass([
|
|
2456
2583
|
BinaryField("u8", 0)
|
|
2457
|
-
],
|
|
2584
|
+
], _YGOProMsgDamage.prototype, "player", 2);
|
|
2458
2585
|
__decorateClass([
|
|
2459
2586
|
BinaryField("i32", 1)
|
|
2460
|
-
],
|
|
2587
|
+
], _YGOProMsgDamage.prototype, "value", 2);
|
|
2588
|
+
var YGOProMsgDamage = _YGOProMsgDamage;
|
|
2461
2589
|
|
|
2462
2590
|
// src/protos/msg/proto/damage-step-end.ts
|
|
2463
|
-
var
|
|
2591
|
+
var _YGOProMsgDamageStepEnd = class _YGOProMsgDamageStepEnd extends YGOProMsgBase {
|
|
2464
2592
|
};
|
|
2465
|
-
YGOProMsgDamageStepEnd
|
|
2593
|
+
__name(_YGOProMsgDamageStepEnd, "YGOProMsgDamageStepEnd");
|
|
2594
|
+
_YGOProMsgDamageStepEnd.identifier = OcgcoreCommonConstants.MSG_DAMAGE_STEP_END;
|
|
2595
|
+
var YGOProMsgDamageStepEnd = _YGOProMsgDamageStepEnd;
|
|
2466
2596
|
|
|
2467
2597
|
// src/protos/msg/proto/damage-step-start.ts
|
|
2468
|
-
var
|
|
2598
|
+
var _YGOProMsgDamageStepStart = class _YGOProMsgDamageStepStart extends YGOProMsgBase {
|
|
2469
2599
|
};
|
|
2470
|
-
YGOProMsgDamageStepStart
|
|
2600
|
+
__name(_YGOProMsgDamageStepStart, "YGOProMsgDamageStepStart");
|
|
2601
|
+
_YGOProMsgDamageStepStart.identifier = OcgcoreCommonConstants.MSG_DAMAGE_STEP_START;
|
|
2602
|
+
var YGOProMsgDamageStepStart = _YGOProMsgDamageStepStart;
|
|
2471
2603
|
|
|
2472
2604
|
// src/protos/msg/proto/deck-top.ts
|
|
2473
|
-
var
|
|
2605
|
+
var _YGOProMsgDeckTop = class _YGOProMsgDeckTop extends YGOProMsgBase {
|
|
2474
2606
|
// 对方视角可能需要隐藏卡片信息
|
|
2475
2607
|
opponentView() {
|
|
2476
2608
|
const view = this.copy();
|
|
@@ -2481,19 +2613,21 @@ var YGOProMsgDeckTop = class extends YGOProMsgBase {
|
|
|
2481
2613
|
}
|
|
2482
2614
|
// deck-top 使用基类的 playerView (基于 player 字段)
|
|
2483
2615
|
};
|
|
2484
|
-
YGOProMsgDeckTop
|
|
2616
|
+
__name(_YGOProMsgDeckTop, "YGOProMsgDeckTop");
|
|
2617
|
+
_YGOProMsgDeckTop.identifier = OcgcoreCommonConstants.MSG_DECK_TOP;
|
|
2485
2618
|
__decorateClass([
|
|
2486
2619
|
BinaryField("u8", 0)
|
|
2487
|
-
],
|
|
2620
|
+
], _YGOProMsgDeckTop.prototype, "player", 2);
|
|
2488
2621
|
__decorateClass([
|
|
2489
2622
|
BinaryField("u8", 1)
|
|
2490
|
-
],
|
|
2623
|
+
], _YGOProMsgDeckTop.prototype, "sequence", 2);
|
|
2491
2624
|
__decorateClass([
|
|
2492
2625
|
BinaryField("i32", 2)
|
|
2493
|
-
],
|
|
2626
|
+
], _YGOProMsgDeckTop.prototype, "code", 2);
|
|
2627
|
+
var YGOProMsgDeckTop = _YGOProMsgDeckTop;
|
|
2494
2628
|
|
|
2495
2629
|
// src/protos/msg/proto/draw.ts
|
|
2496
|
-
var
|
|
2630
|
+
var _YGOProMsgDraw = class _YGOProMsgDraw extends YGOProMsgBase {
|
|
2497
2631
|
// 对方视角需要隐藏抽到的卡(如果卡片标志位 0x80 未设置)
|
|
2498
2632
|
opponentView() {
|
|
2499
2633
|
const view = this.copy();
|
|
@@ -2506,87 +2640,101 @@ var YGOProMsgDraw = class extends YGOProMsgBase {
|
|
|
2506
2640
|
return view;
|
|
2507
2641
|
}
|
|
2508
2642
|
};
|
|
2509
|
-
YGOProMsgDraw
|
|
2643
|
+
__name(_YGOProMsgDraw, "YGOProMsgDraw");
|
|
2644
|
+
_YGOProMsgDraw.identifier = OcgcoreCommonConstants.MSG_DRAW;
|
|
2510
2645
|
__decorateClass([
|
|
2511
2646
|
BinaryField("u8", 0)
|
|
2512
|
-
],
|
|
2647
|
+
], _YGOProMsgDraw.prototype, "player", 2);
|
|
2513
2648
|
__decorateClass([
|
|
2514
2649
|
BinaryField("u8", 1)
|
|
2515
|
-
],
|
|
2650
|
+
], _YGOProMsgDraw.prototype, "count", 2);
|
|
2516
2651
|
__decorateClass([
|
|
2517
2652
|
BinaryField("i32", 2, (obj) => obj.count)
|
|
2518
|
-
],
|
|
2653
|
+
], _YGOProMsgDraw.prototype, "cards", 2);
|
|
2654
|
+
var YGOProMsgDraw = _YGOProMsgDraw;
|
|
2519
2655
|
|
|
2520
2656
|
// src/protos/msg/proto/equip.ts
|
|
2521
|
-
var
|
|
2657
|
+
var _YGOProMsgEquip_CardLocation = class _YGOProMsgEquip_CardLocation {
|
|
2522
2658
|
};
|
|
2659
|
+
__name(_YGOProMsgEquip_CardLocation, "YGOProMsgEquip_CardLocation");
|
|
2523
2660
|
__decorateClass([
|
|
2524
2661
|
BinaryField("u8", 0)
|
|
2525
|
-
],
|
|
2662
|
+
], _YGOProMsgEquip_CardLocation.prototype, "controller", 2);
|
|
2526
2663
|
__decorateClass([
|
|
2527
2664
|
BinaryField("u8", 1)
|
|
2528
|
-
],
|
|
2665
|
+
], _YGOProMsgEquip_CardLocation.prototype, "location", 2);
|
|
2529
2666
|
__decorateClass([
|
|
2530
2667
|
BinaryField("u8", 2)
|
|
2531
|
-
],
|
|
2532
|
-
var
|
|
2668
|
+
], _YGOProMsgEquip_CardLocation.prototype, "sequence", 2);
|
|
2669
|
+
var YGOProMsgEquip_CardLocation = _YGOProMsgEquip_CardLocation;
|
|
2670
|
+
var _YGOProMsgEquip = class _YGOProMsgEquip extends YGOProMsgBase {
|
|
2533
2671
|
};
|
|
2534
|
-
YGOProMsgEquip
|
|
2672
|
+
__name(_YGOProMsgEquip, "YGOProMsgEquip");
|
|
2673
|
+
_YGOProMsgEquip.identifier = OcgcoreCommonConstants.MSG_EQUIP;
|
|
2535
2674
|
__decorateClass([
|
|
2536
2675
|
BinaryField(() => YGOProMsgEquip_CardLocation, 0)
|
|
2537
|
-
],
|
|
2676
|
+
], _YGOProMsgEquip.prototype, "equip", 2);
|
|
2538
2677
|
__decorateClass([
|
|
2539
2678
|
BinaryField(() => YGOProMsgEquip_CardLocation, 3)
|
|
2540
|
-
],
|
|
2679
|
+
], _YGOProMsgEquip.prototype, "target", 2);
|
|
2541
2680
|
__decorateClass([
|
|
2542
2681
|
BinaryField("u8", 6)
|
|
2543
|
-
],
|
|
2682
|
+
], _YGOProMsgEquip.prototype, "position", 2);
|
|
2683
|
+
var YGOProMsgEquip = _YGOProMsgEquip;
|
|
2544
2684
|
|
|
2545
2685
|
// src/protos/msg/proto/field-disabled.ts
|
|
2546
|
-
var
|
|
2686
|
+
var _YGOProMsgFieldDisabled = class _YGOProMsgFieldDisabled extends YGOProMsgBase {
|
|
2547
2687
|
};
|
|
2548
|
-
YGOProMsgFieldDisabled
|
|
2688
|
+
__name(_YGOProMsgFieldDisabled, "YGOProMsgFieldDisabled");
|
|
2689
|
+
_YGOProMsgFieldDisabled.identifier = OcgcoreCommonConstants.MSG_FIELD_DISABLED;
|
|
2549
2690
|
__decorateClass([
|
|
2550
2691
|
BinaryField("u32", 0)
|
|
2551
|
-
],
|
|
2692
|
+
], _YGOProMsgFieldDisabled.prototype, "disabledField", 2);
|
|
2693
|
+
var YGOProMsgFieldDisabled = _YGOProMsgFieldDisabled;
|
|
2552
2694
|
|
|
2553
2695
|
// src/protos/msg/proto/flipsummoned.ts
|
|
2554
|
-
var
|
|
2696
|
+
var _YGOProMsgFlipSummoned = class _YGOProMsgFlipSummoned extends YGOProMsgBase {
|
|
2555
2697
|
};
|
|
2556
|
-
YGOProMsgFlipSummoned
|
|
2698
|
+
__name(_YGOProMsgFlipSummoned, "YGOProMsgFlipSummoned");
|
|
2699
|
+
_YGOProMsgFlipSummoned.identifier = OcgcoreCommonConstants.MSG_FLIPSUMMONED;
|
|
2700
|
+
var YGOProMsgFlipSummoned = _YGOProMsgFlipSummoned;
|
|
2557
2701
|
|
|
2558
2702
|
// src/protos/msg/proto/flipsummoning.ts
|
|
2559
|
-
var
|
|
2703
|
+
var _YGOProMsgFlipSummoning = class _YGOProMsgFlipSummoning extends YGOProMsgBase {
|
|
2560
2704
|
};
|
|
2561
|
-
YGOProMsgFlipSummoning
|
|
2705
|
+
__name(_YGOProMsgFlipSummoning, "YGOProMsgFlipSummoning");
|
|
2706
|
+
_YGOProMsgFlipSummoning.identifier = OcgcoreCommonConstants.MSG_FLIPSUMMONING;
|
|
2562
2707
|
__decorateClass([
|
|
2563
2708
|
BinaryField("i32", 0)
|
|
2564
|
-
],
|
|
2709
|
+
], _YGOProMsgFlipSummoning.prototype, "code", 2);
|
|
2565
2710
|
__decorateClass([
|
|
2566
2711
|
BinaryField("u8", 4)
|
|
2567
|
-
],
|
|
2712
|
+
], _YGOProMsgFlipSummoning.prototype, "controller", 2);
|
|
2568
2713
|
__decorateClass([
|
|
2569
2714
|
BinaryField("u8", 5)
|
|
2570
|
-
],
|
|
2715
|
+
], _YGOProMsgFlipSummoning.prototype, "location", 2);
|
|
2571
2716
|
__decorateClass([
|
|
2572
2717
|
BinaryField("u8", 6)
|
|
2573
|
-
],
|
|
2718
|
+
], _YGOProMsgFlipSummoning.prototype, "sequence", 2);
|
|
2574
2719
|
__decorateClass([
|
|
2575
2720
|
BinaryField("u8", 7)
|
|
2576
|
-
],
|
|
2721
|
+
], _YGOProMsgFlipSummoning.prototype, "position", 2);
|
|
2722
|
+
var YGOProMsgFlipSummoning = _YGOProMsgFlipSummoning;
|
|
2577
2723
|
|
|
2578
2724
|
// src/protos/msg/proto/hand-res.ts
|
|
2579
|
-
var
|
|
2725
|
+
var _YGOProMsgHandRes = class _YGOProMsgHandRes extends YGOProMsgBase {
|
|
2580
2726
|
};
|
|
2581
|
-
YGOProMsgHandRes
|
|
2727
|
+
__name(_YGOProMsgHandRes, "YGOProMsgHandRes");
|
|
2728
|
+
_YGOProMsgHandRes.identifier = OcgcoreCommonConstants.MSG_HAND_RES;
|
|
2582
2729
|
__decorateClass([
|
|
2583
2730
|
BinaryField("u8", 0)
|
|
2584
|
-
],
|
|
2731
|
+
], _YGOProMsgHandRes.prototype, "result", 2);
|
|
2732
|
+
var YGOProMsgHandRes = _YGOProMsgHandRes;
|
|
2585
2733
|
|
|
2586
2734
|
// src/protos/msg/proto/hint.ts
|
|
2587
2735
|
var HINT_TYPES_SEND_TO_SELF = /* @__PURE__ */ new Set([1, 2, 3, 5]);
|
|
2588
2736
|
var HINT_TYPES_SEND_TO_OPPONENT = /* @__PURE__ */ new Set([4, 6, 7, 8, 9, 11]);
|
|
2589
|
-
var
|
|
2737
|
+
var _YGOProMsgHint = class _YGOProMsgHint extends YGOProMsgBase {
|
|
2590
2738
|
getSendTargets() {
|
|
2591
2739
|
if (HINT_TYPES_SEND_TO_SELF.has(this.type)) {
|
|
2592
2740
|
return [this.player];
|
|
@@ -2597,52 +2745,57 @@ var YGOProMsgHint = class extends YGOProMsgBase {
|
|
|
2597
2745
|
return SEND_TO_ALL;
|
|
2598
2746
|
}
|
|
2599
2747
|
};
|
|
2600
|
-
YGOProMsgHint
|
|
2748
|
+
__name(_YGOProMsgHint, "YGOProMsgHint");
|
|
2749
|
+
_YGOProMsgHint.identifier = OcgcoreCommonConstants.MSG_HINT;
|
|
2601
2750
|
__decorateClass([
|
|
2602
2751
|
BinaryField("u8", 0)
|
|
2603
|
-
],
|
|
2752
|
+
], _YGOProMsgHint.prototype, "type", 2);
|
|
2604
2753
|
__decorateClass([
|
|
2605
2754
|
BinaryField("u8", 1)
|
|
2606
|
-
],
|
|
2755
|
+
], _YGOProMsgHint.prototype, "player", 2);
|
|
2607
2756
|
__decorateClass([
|
|
2608
2757
|
BinaryField("i32", 2)
|
|
2609
|
-
],
|
|
2758
|
+
], _YGOProMsgHint.prototype, "desc", 2);
|
|
2759
|
+
var YGOProMsgHint = _YGOProMsgHint;
|
|
2610
2760
|
|
|
2611
2761
|
// src/protos/msg/proto/lpupdate.ts
|
|
2612
|
-
var
|
|
2762
|
+
var _YGOProMsgLpUpdate = class _YGOProMsgLpUpdate extends YGOProMsgBase {
|
|
2613
2763
|
};
|
|
2614
|
-
YGOProMsgLpUpdate
|
|
2764
|
+
__name(_YGOProMsgLpUpdate, "YGOProMsgLpUpdate");
|
|
2765
|
+
_YGOProMsgLpUpdate.identifier = OcgcoreCommonConstants.MSG_LPUPDATE;
|
|
2615
2766
|
__decorateClass([
|
|
2616
2767
|
BinaryField("u8", 0)
|
|
2617
|
-
],
|
|
2768
|
+
], _YGOProMsgLpUpdate.prototype, "player", 2);
|
|
2618
2769
|
__decorateClass([
|
|
2619
2770
|
BinaryField("i32", 1)
|
|
2620
|
-
],
|
|
2771
|
+
], _YGOProMsgLpUpdate.prototype, "lp", 2);
|
|
2772
|
+
var YGOProMsgLpUpdate = _YGOProMsgLpUpdate;
|
|
2621
2773
|
|
|
2622
2774
|
// src/protos/msg/proto/match-kill.ts
|
|
2623
|
-
var
|
|
2775
|
+
var _YGOProMsgMatchKill = class _YGOProMsgMatchKill extends YGOProMsgBase {
|
|
2624
2776
|
};
|
|
2625
|
-
YGOProMsgMatchKill
|
|
2777
|
+
__name(_YGOProMsgMatchKill, "YGOProMsgMatchKill");
|
|
2778
|
+
_YGOProMsgMatchKill.identifier = OcgcoreCommonConstants.MSG_MATCH_KILL;
|
|
2626
2779
|
__decorateClass([
|
|
2627
2780
|
BinaryField("i32", 0)
|
|
2628
|
-
],
|
|
2781
|
+
], _YGOProMsgMatchKill.prototype, "code", 2);
|
|
2782
|
+
var YGOProMsgMatchKill = _YGOProMsgMatchKill;
|
|
2629
2783
|
|
|
2630
2784
|
// src/protos/msg/proto/missed-effect.ts
|
|
2631
|
-
var
|
|
2785
|
+
var _YGOProMsgMissedEffect = class _YGOProMsgMissedEffect extends YGOProMsgBase {
|
|
2632
2786
|
getSendTargets() {
|
|
2633
|
-
return [
|
|
2787
|
+
return [0, 1];
|
|
2634
2788
|
}
|
|
2635
2789
|
};
|
|
2636
|
-
YGOProMsgMissedEffect
|
|
2637
|
-
|
|
2638
|
-
BinaryField("u8", 0)
|
|
2639
|
-
], YGOProMsgMissedEffect.prototype, "player", 2);
|
|
2790
|
+
__name(_YGOProMsgMissedEffect, "YGOProMsgMissedEffect");
|
|
2791
|
+
_YGOProMsgMissedEffect.identifier = OcgcoreCommonConstants.MSG_MISSED_EFFECT;
|
|
2640
2792
|
__decorateClass([
|
|
2641
|
-
BinaryField("
|
|
2642
|
-
],
|
|
2793
|
+
BinaryField("u32", 0)
|
|
2794
|
+
], _YGOProMsgMissedEffect.prototype, "location", 2);
|
|
2643
2795
|
__decorateClass([
|
|
2644
|
-
BinaryField("
|
|
2645
|
-
],
|
|
2796
|
+
BinaryField("u32", 4)
|
|
2797
|
+
], _YGOProMsgMissedEffect.prototype, "code", 2);
|
|
2798
|
+
var YGOProMsgMissedEffect = _YGOProMsgMissedEffect;
|
|
2646
2799
|
|
|
2647
2800
|
// src/vendor/script-constants.ts
|
|
2648
2801
|
var OcgcoreScriptConstants = {
|
|
@@ -3483,21 +3636,23 @@ var OcgcoreScriptConstants = {
|
|
|
3483
3636
|
};
|
|
3484
3637
|
|
|
3485
3638
|
// src/protos/msg/proto/move.ts
|
|
3486
|
-
var
|
|
3639
|
+
var _YGOProMsgMove_CardLocation = class _YGOProMsgMove_CardLocation {
|
|
3487
3640
|
};
|
|
3641
|
+
__name(_YGOProMsgMove_CardLocation, "YGOProMsgMove_CardLocation");
|
|
3488
3642
|
__decorateClass([
|
|
3489
3643
|
BinaryField("u8", 0)
|
|
3490
|
-
],
|
|
3644
|
+
], _YGOProMsgMove_CardLocation.prototype, "controller", 2);
|
|
3491
3645
|
__decorateClass([
|
|
3492
3646
|
BinaryField("u8", 1)
|
|
3493
|
-
],
|
|
3647
|
+
], _YGOProMsgMove_CardLocation.prototype, "location", 2);
|
|
3494
3648
|
__decorateClass([
|
|
3495
3649
|
BinaryField("u8", 2)
|
|
3496
|
-
],
|
|
3650
|
+
], _YGOProMsgMove_CardLocation.prototype, "sequence", 2);
|
|
3497
3651
|
__decorateClass([
|
|
3498
3652
|
BinaryField("u8", 3)
|
|
3499
|
-
],
|
|
3500
|
-
var
|
|
3653
|
+
], _YGOProMsgMove_CardLocation.prototype, "position", 2);
|
|
3654
|
+
var YGOProMsgMove_CardLocation = _YGOProMsgMove_CardLocation;
|
|
3655
|
+
var _YGOProMsgMove = class _YGOProMsgMove extends YGOProMsgBase {
|
|
3501
3656
|
opponentView() {
|
|
3502
3657
|
const view = this.copy();
|
|
3503
3658
|
const cl = view.current.location;
|
|
@@ -3532,119 +3687,143 @@ var YGOProMsgMove = class extends YGOProMsgBase {
|
|
|
3532
3687
|
return this.opponentView();
|
|
3533
3688
|
}
|
|
3534
3689
|
};
|
|
3535
|
-
YGOProMsgMove
|
|
3690
|
+
__name(_YGOProMsgMove, "YGOProMsgMove");
|
|
3691
|
+
_YGOProMsgMove.identifier = OcgcoreCommonConstants.MSG_MOVE;
|
|
3536
3692
|
__decorateClass([
|
|
3537
3693
|
BinaryField("i32", 0)
|
|
3538
|
-
],
|
|
3694
|
+
], _YGOProMsgMove.prototype, "code", 2);
|
|
3539
3695
|
__decorateClass([
|
|
3540
3696
|
BinaryField(() => YGOProMsgMove_CardLocation, 4)
|
|
3541
|
-
],
|
|
3697
|
+
], _YGOProMsgMove.prototype, "previous", 2);
|
|
3542
3698
|
__decorateClass([
|
|
3543
3699
|
BinaryField(() => YGOProMsgMove_CardLocation, 8)
|
|
3544
|
-
],
|
|
3700
|
+
], _YGOProMsgMove.prototype, "current", 2);
|
|
3545
3701
|
__decorateClass([
|
|
3546
3702
|
BinaryField("i32", 12)
|
|
3547
|
-
],
|
|
3703
|
+
], _YGOProMsgMove.prototype, "reason", 2);
|
|
3704
|
+
var YGOProMsgMove = _YGOProMsgMove;
|
|
3548
3705
|
|
|
3549
3706
|
// src/protos/msg/proto/new-phase.ts
|
|
3550
|
-
var
|
|
3707
|
+
var _YGOProMsgNewPhase = class _YGOProMsgNewPhase extends YGOProMsgBase {
|
|
3551
3708
|
};
|
|
3552
|
-
YGOProMsgNewPhase
|
|
3709
|
+
__name(_YGOProMsgNewPhase, "YGOProMsgNewPhase");
|
|
3710
|
+
_YGOProMsgNewPhase.identifier = OcgcoreCommonConstants.MSG_NEW_PHASE;
|
|
3553
3711
|
__decorateClass([
|
|
3554
3712
|
BinaryField("u16", 0)
|
|
3555
|
-
],
|
|
3713
|
+
], _YGOProMsgNewPhase.prototype, "phase", 2);
|
|
3714
|
+
var YGOProMsgNewPhase = _YGOProMsgNewPhase;
|
|
3556
3715
|
|
|
3557
3716
|
// src/protos/msg/proto/new-turn.ts
|
|
3558
|
-
var
|
|
3717
|
+
var _YGOProMsgNewTurn = class _YGOProMsgNewTurn extends YGOProMsgBase {
|
|
3559
3718
|
};
|
|
3560
|
-
YGOProMsgNewTurn
|
|
3719
|
+
__name(_YGOProMsgNewTurn, "YGOProMsgNewTurn");
|
|
3720
|
+
_YGOProMsgNewTurn.identifier = OcgcoreCommonConstants.MSG_NEW_TURN;
|
|
3561
3721
|
__decorateClass([
|
|
3562
3722
|
BinaryField("u8", 0)
|
|
3563
|
-
],
|
|
3723
|
+
], _YGOProMsgNewTurn.prototype, "player", 2);
|
|
3724
|
+
var YGOProMsgNewTurn = _YGOProMsgNewTurn;
|
|
3564
3725
|
|
|
3565
3726
|
// src/protos/msg/proto/pay-lpcost.ts
|
|
3566
|
-
var
|
|
3727
|
+
var _YGOProMsgPayLpCost = class _YGOProMsgPayLpCost extends YGOProMsgBase {
|
|
3567
3728
|
};
|
|
3568
|
-
YGOProMsgPayLpCost
|
|
3729
|
+
__name(_YGOProMsgPayLpCost, "YGOProMsgPayLpCost");
|
|
3730
|
+
_YGOProMsgPayLpCost.identifier = OcgcoreCommonConstants.MSG_PAY_LPCOST;
|
|
3569
3731
|
__decorateClass([
|
|
3570
3732
|
BinaryField("u8", 0)
|
|
3571
|
-
],
|
|
3733
|
+
], _YGOProMsgPayLpCost.prototype, "player", 2);
|
|
3572
3734
|
__decorateClass([
|
|
3573
3735
|
BinaryField("i32", 1)
|
|
3574
|
-
],
|
|
3736
|
+
], _YGOProMsgPayLpCost.prototype, "cost", 2);
|
|
3737
|
+
var YGOProMsgPayLpCost = _YGOProMsgPayLpCost;
|
|
3575
3738
|
|
|
3576
3739
|
// src/protos/msg/proto/player-hint.ts
|
|
3577
|
-
var
|
|
3740
|
+
var _YGOProMsgPlayerHint = class _YGOProMsgPlayerHint extends YGOProMsgBase {
|
|
3578
3741
|
};
|
|
3579
|
-
YGOProMsgPlayerHint
|
|
3742
|
+
__name(_YGOProMsgPlayerHint, "YGOProMsgPlayerHint");
|
|
3743
|
+
_YGOProMsgPlayerHint.identifier = OcgcoreCommonConstants.MSG_PLAYER_HINT;
|
|
3580
3744
|
__decorateClass([
|
|
3581
3745
|
BinaryField("u8", 0)
|
|
3582
|
-
],
|
|
3746
|
+
], _YGOProMsgPlayerHint.prototype, "player", 2);
|
|
3583
3747
|
__decorateClass([
|
|
3584
3748
|
BinaryField("u8", 1)
|
|
3585
|
-
],
|
|
3749
|
+
], _YGOProMsgPlayerHint.prototype, "type", 2);
|
|
3586
3750
|
__decorateClass([
|
|
3587
3751
|
BinaryField("i32", 2)
|
|
3588
|
-
],
|
|
3752
|
+
], _YGOProMsgPlayerHint.prototype, "value", 2);
|
|
3753
|
+
var YGOProMsgPlayerHint = _YGOProMsgPlayerHint;
|
|
3589
3754
|
|
|
3590
3755
|
// src/protos/msg/proto/pos-change.ts
|
|
3591
|
-
var
|
|
3756
|
+
var _YGOProMsgPosChange_CardLocation = class _YGOProMsgPosChange_CardLocation {
|
|
3592
3757
|
};
|
|
3758
|
+
__name(_YGOProMsgPosChange_CardLocation, "YGOProMsgPosChange_CardLocation");
|
|
3593
3759
|
__decorateClass([
|
|
3594
3760
|
BinaryField("u8", 0)
|
|
3595
|
-
],
|
|
3761
|
+
], _YGOProMsgPosChange_CardLocation.prototype, "controller", 2);
|
|
3596
3762
|
__decorateClass([
|
|
3597
3763
|
BinaryField("u8", 1)
|
|
3598
|
-
],
|
|
3764
|
+
], _YGOProMsgPosChange_CardLocation.prototype, "location", 2);
|
|
3599
3765
|
__decorateClass([
|
|
3600
3766
|
BinaryField("u8", 2)
|
|
3601
|
-
],
|
|
3602
|
-
var
|
|
3767
|
+
], _YGOProMsgPosChange_CardLocation.prototype, "sequence", 2);
|
|
3768
|
+
var YGOProMsgPosChange_CardLocation = _YGOProMsgPosChange_CardLocation;
|
|
3769
|
+
var _YGOProMsgPosChange = class _YGOProMsgPosChange extends YGOProMsgBase {
|
|
3603
3770
|
};
|
|
3604
|
-
YGOProMsgPosChange
|
|
3771
|
+
__name(_YGOProMsgPosChange, "YGOProMsgPosChange");
|
|
3772
|
+
_YGOProMsgPosChange.identifier = OcgcoreCommonConstants.MSG_POS_CHANGE;
|
|
3605
3773
|
__decorateClass([
|
|
3606
3774
|
BinaryField(() => YGOProMsgPosChange_CardLocation, 0)
|
|
3607
|
-
],
|
|
3775
|
+
], _YGOProMsgPosChange.prototype, "card", 2);
|
|
3608
3776
|
__decorateClass([
|
|
3609
3777
|
BinaryField("u8", 3)
|
|
3610
|
-
],
|
|
3778
|
+
], _YGOProMsgPosChange.prototype, "previousPosition", 2);
|
|
3611
3779
|
__decorateClass([
|
|
3612
3780
|
BinaryField("u8", 4)
|
|
3613
|
-
],
|
|
3781
|
+
], _YGOProMsgPosChange.prototype, "currentPosition", 2);
|
|
3782
|
+
var YGOProMsgPosChange = _YGOProMsgPosChange;
|
|
3614
3783
|
|
|
3615
3784
|
// src/protos/msg/proto/random-selected.ts
|
|
3616
|
-
var
|
|
3785
|
+
var _YGOProMsgRandomSelected = class _YGOProMsgRandomSelected extends YGOProMsgBase {
|
|
3617
3786
|
};
|
|
3618
|
-
YGOProMsgRandomSelected
|
|
3787
|
+
__name(_YGOProMsgRandomSelected, "YGOProMsgRandomSelected");
|
|
3788
|
+
_YGOProMsgRandomSelected.identifier = OcgcoreCommonConstants.MSG_RANDOM_SELECTED;
|
|
3619
3789
|
__decorateClass([
|
|
3620
3790
|
BinaryField("u8", 0)
|
|
3621
|
-
],
|
|
3791
|
+
], _YGOProMsgRandomSelected.prototype, "player", 2);
|
|
3622
3792
|
__decorateClass([
|
|
3623
3793
|
BinaryField("u8", 1)
|
|
3624
|
-
],
|
|
3794
|
+
], _YGOProMsgRandomSelected.prototype, "count", 2);
|
|
3625
3795
|
__decorateClass([
|
|
3626
3796
|
BinaryField("i32", 2, (obj) => obj.count)
|
|
3627
|
-
],
|
|
3797
|
+
], _YGOProMsgRandomSelected.prototype, "cards", 2);
|
|
3798
|
+
var YGOProMsgRandomSelected = _YGOProMsgRandomSelected;
|
|
3628
3799
|
|
|
3629
3800
|
// src/protos/msg/proto/recover.ts
|
|
3630
|
-
var
|
|
3801
|
+
var _YGOProMsgRecover = class _YGOProMsgRecover extends YGOProMsgBase {
|
|
3631
3802
|
};
|
|
3632
|
-
YGOProMsgRecover
|
|
3803
|
+
__name(_YGOProMsgRecover, "YGOProMsgRecover");
|
|
3804
|
+
_YGOProMsgRecover.identifier = OcgcoreCommonConstants.MSG_RECOVER;
|
|
3633
3805
|
__decorateClass([
|
|
3634
3806
|
BinaryField("u8", 0)
|
|
3635
|
-
],
|
|
3807
|
+
], _YGOProMsgRecover.prototype, "player", 2);
|
|
3636
3808
|
__decorateClass([
|
|
3637
3809
|
BinaryField("i32", 1)
|
|
3638
|
-
],
|
|
3810
|
+
], _YGOProMsgRecover.prototype, "value", 2);
|
|
3811
|
+
var YGOProMsgRecover = _YGOProMsgRecover;
|
|
3639
3812
|
|
|
3640
3813
|
// src/protos/msg/proto/reload-field.ts
|
|
3641
|
-
var
|
|
3814
|
+
var _YGOProMsgReloadField_ZoneCard = class _YGOProMsgReloadField_ZoneCard {
|
|
3642
3815
|
};
|
|
3643
|
-
|
|
3816
|
+
__name(_YGOProMsgReloadField_ZoneCard, "YGOProMsgReloadField_ZoneCard");
|
|
3817
|
+
var YGOProMsgReloadField_ZoneCard = _YGOProMsgReloadField_ZoneCard;
|
|
3818
|
+
var _YGOProMsgReloadField_PlayerInfo = class _YGOProMsgReloadField_PlayerInfo {
|
|
3644
3819
|
};
|
|
3645
|
-
|
|
3820
|
+
__name(_YGOProMsgReloadField_PlayerInfo, "YGOProMsgReloadField_PlayerInfo");
|
|
3821
|
+
var YGOProMsgReloadField_PlayerInfo = _YGOProMsgReloadField_PlayerInfo;
|
|
3822
|
+
var _YGOProMsgReloadField_ChainInfo = class _YGOProMsgReloadField_ChainInfo {
|
|
3646
3823
|
};
|
|
3647
|
-
|
|
3824
|
+
__name(_YGOProMsgReloadField_ChainInfo, "YGOProMsgReloadField_ChainInfo");
|
|
3825
|
+
var YGOProMsgReloadField_ChainInfo = _YGOProMsgReloadField_ChainInfo;
|
|
3826
|
+
var _YGOProMsgReloadField = class _YGOProMsgReloadField extends YGOProMsgBase {
|
|
3648
3827
|
fromPayload(data) {
|
|
3649
3828
|
if (data.length < 1) {
|
|
3650
3829
|
throw new Error("MSG data too short");
|
|
@@ -3780,57 +3959,67 @@ var YGOProMsgReloadField = class extends YGOProMsgBase {
|
|
|
3780
3959
|
return result;
|
|
3781
3960
|
}
|
|
3782
3961
|
};
|
|
3783
|
-
YGOProMsgReloadField
|
|
3962
|
+
__name(_YGOProMsgReloadField, "YGOProMsgReloadField");
|
|
3963
|
+
_YGOProMsgReloadField.identifier = 162;
|
|
3964
|
+
var YGOProMsgReloadField = _YGOProMsgReloadField;
|
|
3784
3965
|
|
|
3785
3966
|
// src/protos/msg/proto/remove-counter.ts
|
|
3786
|
-
var
|
|
3967
|
+
var _YGOProMsgRemoveCounter = class _YGOProMsgRemoveCounter extends YGOProMsgBase {
|
|
3787
3968
|
};
|
|
3788
|
-
YGOProMsgRemoveCounter
|
|
3969
|
+
__name(_YGOProMsgRemoveCounter, "YGOProMsgRemoveCounter");
|
|
3970
|
+
_YGOProMsgRemoveCounter.identifier = OcgcoreCommonConstants.MSG_REMOVE_COUNTER;
|
|
3789
3971
|
__decorateClass([
|
|
3790
3972
|
BinaryField("u16", 0)
|
|
3791
|
-
],
|
|
3973
|
+
], _YGOProMsgRemoveCounter.prototype, "counterType", 2);
|
|
3792
3974
|
__decorateClass([
|
|
3793
3975
|
BinaryField("u8", 2)
|
|
3794
|
-
],
|
|
3976
|
+
], _YGOProMsgRemoveCounter.prototype, "controller", 2);
|
|
3795
3977
|
__decorateClass([
|
|
3796
3978
|
BinaryField("u8", 3)
|
|
3797
|
-
],
|
|
3979
|
+
], _YGOProMsgRemoveCounter.prototype, "location", 2);
|
|
3798
3980
|
__decorateClass([
|
|
3799
3981
|
BinaryField("u8", 4)
|
|
3800
|
-
],
|
|
3982
|
+
], _YGOProMsgRemoveCounter.prototype, "sequence", 2);
|
|
3801
3983
|
__decorateClass([
|
|
3802
3984
|
BinaryField("u16", 5)
|
|
3803
|
-
],
|
|
3985
|
+
], _YGOProMsgRemoveCounter.prototype, "count", 2);
|
|
3986
|
+
var YGOProMsgRemoveCounter = _YGOProMsgRemoveCounter;
|
|
3804
3987
|
|
|
3805
3988
|
// src/protos/msg/proto/reset-time.ts
|
|
3806
|
-
var
|
|
3989
|
+
var _YGOProMsgResetTime = class _YGOProMsgResetTime extends YGOProMsgBase {
|
|
3807
3990
|
getSendTargets() {
|
|
3808
3991
|
return [];
|
|
3809
3992
|
}
|
|
3810
3993
|
};
|
|
3811
|
-
YGOProMsgResetTime
|
|
3994
|
+
__name(_YGOProMsgResetTime, "YGOProMsgResetTime");
|
|
3995
|
+
_YGOProMsgResetTime.identifier = OcgcoreCommonConstants.MSG_RESET_TIME;
|
|
3812
3996
|
__decorateClass([
|
|
3813
3997
|
BinaryField("i8", 0)
|
|
3814
|
-
],
|
|
3998
|
+
], _YGOProMsgResetTime.prototype, "player", 2);
|
|
3815
3999
|
__decorateClass([
|
|
3816
4000
|
BinaryField("i16", 1)
|
|
3817
|
-
],
|
|
4001
|
+
], _YGOProMsgResetTime.prototype, "time", 2);
|
|
4002
|
+
var YGOProMsgResetTime = _YGOProMsgResetTime;
|
|
3818
4003
|
|
|
3819
4004
|
// src/protos/msg/proto/retry.ts
|
|
3820
|
-
var
|
|
4005
|
+
var _YGOProMsgRetry = class _YGOProMsgRetry extends YGOProMsgBase {
|
|
3821
4006
|
getSendTargets() {
|
|
3822
4007
|
return [];
|
|
3823
4008
|
}
|
|
3824
4009
|
};
|
|
3825
|
-
YGOProMsgRetry
|
|
4010
|
+
__name(_YGOProMsgRetry, "YGOProMsgRetry");
|
|
4011
|
+
_YGOProMsgRetry.identifier = OcgcoreCommonConstants.MSG_RETRY;
|
|
4012
|
+
var YGOProMsgRetry = _YGOProMsgRetry;
|
|
3826
4013
|
|
|
3827
4014
|
// src/protos/msg/proto/reverse-deck.ts
|
|
3828
|
-
var
|
|
4015
|
+
var _YGOProMsgReverseDeck = class _YGOProMsgReverseDeck extends YGOProMsgBase {
|
|
3829
4016
|
};
|
|
3830
|
-
YGOProMsgReverseDeck
|
|
4017
|
+
__name(_YGOProMsgReverseDeck, "YGOProMsgReverseDeck");
|
|
4018
|
+
_YGOProMsgReverseDeck.identifier = OcgcoreCommonConstants.MSG_REVERSE_DECK;
|
|
4019
|
+
var YGOProMsgReverseDeck = _YGOProMsgReverseDeck;
|
|
3831
4020
|
|
|
3832
4021
|
// src/protos/msg/proto/rock-paper-scissors.ts
|
|
3833
|
-
var
|
|
4022
|
+
var _YGOProMsgRockPaperScissors = class _YGOProMsgRockPaperScissors extends YGOProMsgResponseBase {
|
|
3834
4023
|
responsePlayer() {
|
|
3835
4024
|
return this.player;
|
|
3836
4025
|
}
|
|
@@ -3845,10 +4034,12 @@ var YGOProMsgRockPaperScissors = class extends YGOProMsgResponseBase {
|
|
|
3845
4034
|
return buffer;
|
|
3846
4035
|
}
|
|
3847
4036
|
};
|
|
3848
|
-
YGOProMsgRockPaperScissors
|
|
4037
|
+
__name(_YGOProMsgRockPaperScissors, "YGOProMsgRockPaperScissors");
|
|
4038
|
+
_YGOProMsgRockPaperScissors.identifier = OcgcoreCommonConstants.MSG_ROCK_PAPER_SCISSORS;
|
|
3849
4039
|
__decorateClass([
|
|
3850
4040
|
BinaryField("u8", 0)
|
|
3851
|
-
],
|
|
4041
|
+
], _YGOProMsgRockPaperScissors.prototype, "player", 2);
|
|
4042
|
+
var YGOProMsgRockPaperScissors = _YGOProMsgRockPaperScissors;
|
|
3852
4043
|
|
|
3853
4044
|
// src/protos/msg/proto/select-battlecmd.ts
|
|
3854
4045
|
var BattleCmdType = /* @__PURE__ */ ((BattleCmdType2) => {
|
|
@@ -3858,41 +4049,45 @@ var BattleCmdType = /* @__PURE__ */ ((BattleCmdType2) => {
|
|
|
3858
4049
|
BattleCmdType2[BattleCmdType2["TO_EP"] = 3] = "TO_EP";
|
|
3859
4050
|
return BattleCmdType2;
|
|
3860
4051
|
})(BattleCmdType || {});
|
|
3861
|
-
var
|
|
4052
|
+
var _YGOProMsgSelectBattleCmd_ActivatableInfo = class _YGOProMsgSelectBattleCmd_ActivatableInfo {
|
|
3862
4053
|
};
|
|
4054
|
+
__name(_YGOProMsgSelectBattleCmd_ActivatableInfo, "YGOProMsgSelectBattleCmd_ActivatableInfo");
|
|
3863
4055
|
__decorateClass([
|
|
3864
4056
|
BinaryField("i32", 0)
|
|
3865
|
-
],
|
|
4057
|
+
], _YGOProMsgSelectBattleCmd_ActivatableInfo.prototype, "code", 2);
|
|
3866
4058
|
__decorateClass([
|
|
3867
4059
|
BinaryField("u8", 4)
|
|
3868
|
-
],
|
|
4060
|
+
], _YGOProMsgSelectBattleCmd_ActivatableInfo.prototype, "controller", 2);
|
|
3869
4061
|
__decorateClass([
|
|
3870
4062
|
BinaryField("u8", 5)
|
|
3871
|
-
],
|
|
4063
|
+
], _YGOProMsgSelectBattleCmd_ActivatableInfo.prototype, "location", 2);
|
|
3872
4064
|
__decorateClass([
|
|
3873
4065
|
BinaryField("u8", 6)
|
|
3874
|
-
],
|
|
4066
|
+
], _YGOProMsgSelectBattleCmd_ActivatableInfo.prototype, "sequence", 2);
|
|
3875
4067
|
__decorateClass([
|
|
3876
4068
|
BinaryField("i32", 7)
|
|
3877
|
-
],
|
|
3878
|
-
var
|
|
4069
|
+
], _YGOProMsgSelectBattleCmd_ActivatableInfo.prototype, "desc", 2);
|
|
4070
|
+
var YGOProMsgSelectBattleCmd_ActivatableInfo = _YGOProMsgSelectBattleCmd_ActivatableInfo;
|
|
4071
|
+
var _YGOProMsgSelectBattleCmd_AttackableInfo = class _YGOProMsgSelectBattleCmd_AttackableInfo {
|
|
3879
4072
|
};
|
|
4073
|
+
__name(_YGOProMsgSelectBattleCmd_AttackableInfo, "YGOProMsgSelectBattleCmd_AttackableInfo");
|
|
3880
4074
|
__decorateClass([
|
|
3881
4075
|
BinaryField("i32", 0)
|
|
3882
|
-
],
|
|
4076
|
+
], _YGOProMsgSelectBattleCmd_AttackableInfo.prototype, "code", 2);
|
|
3883
4077
|
__decorateClass([
|
|
3884
4078
|
BinaryField("u8", 4)
|
|
3885
|
-
],
|
|
4079
|
+
], _YGOProMsgSelectBattleCmd_AttackableInfo.prototype, "controller", 2);
|
|
3886
4080
|
__decorateClass([
|
|
3887
4081
|
BinaryField("u8", 5)
|
|
3888
|
-
],
|
|
4082
|
+
], _YGOProMsgSelectBattleCmd_AttackableInfo.prototype, "location", 2);
|
|
3889
4083
|
__decorateClass([
|
|
3890
4084
|
BinaryField("u8", 6)
|
|
3891
|
-
],
|
|
4085
|
+
], _YGOProMsgSelectBattleCmd_AttackableInfo.prototype, "sequence", 2);
|
|
3892
4086
|
__decorateClass([
|
|
3893
4087
|
BinaryField("u8", 7)
|
|
3894
|
-
],
|
|
3895
|
-
var
|
|
4088
|
+
], _YGOProMsgSelectBattleCmd_AttackableInfo.prototype, "directAttack", 2);
|
|
4089
|
+
var YGOProMsgSelectBattleCmd_AttackableInfo = _YGOProMsgSelectBattleCmd_AttackableInfo;
|
|
4090
|
+
var _YGOProMsgSelectBattleCmd = class _YGOProMsgSelectBattleCmd extends YGOProMsgResponseBase {
|
|
3896
4091
|
responsePlayer() {
|
|
3897
4092
|
return this.player;
|
|
3898
4093
|
}
|
|
@@ -3953,25 +4148,26 @@ var YGOProMsgSelectBattleCmd = class extends YGOProMsgResponseBase {
|
|
|
3953
4148
|
return buffer;
|
|
3954
4149
|
}
|
|
3955
4150
|
};
|
|
3956
|
-
YGOProMsgSelectBattleCmd
|
|
4151
|
+
__name(_YGOProMsgSelectBattleCmd, "YGOProMsgSelectBattleCmd");
|
|
4152
|
+
_YGOProMsgSelectBattleCmd.identifier = OcgcoreCommonConstants.MSG_SELECT_BATTLECMD;
|
|
3957
4153
|
__decorateClass([
|
|
3958
4154
|
BinaryField("u8", 0)
|
|
3959
|
-
],
|
|
4155
|
+
], _YGOProMsgSelectBattleCmd.prototype, "player", 2);
|
|
3960
4156
|
__decorateClass([
|
|
3961
4157
|
BinaryField("u8", 1)
|
|
3962
|
-
],
|
|
4158
|
+
], _YGOProMsgSelectBattleCmd.prototype, "activatableCount", 2);
|
|
3963
4159
|
__decorateClass([
|
|
3964
4160
|
BinaryField(
|
|
3965
4161
|
() => YGOProMsgSelectBattleCmd_ActivatableInfo,
|
|
3966
4162
|
2,
|
|
3967
4163
|
(obj) => obj.activatableCount
|
|
3968
4164
|
)
|
|
3969
|
-
],
|
|
4165
|
+
], _YGOProMsgSelectBattleCmd.prototype, "activatableCards", 2);
|
|
3970
4166
|
__decorateClass([
|
|
3971
4167
|
BinaryField("u8", (obj) => {
|
|
3972
4168
|
return 2 + obj.activatableCount * 11;
|
|
3973
4169
|
})
|
|
3974
|
-
],
|
|
4170
|
+
], _YGOProMsgSelectBattleCmd.prototype, "attackableCount", 2);
|
|
3975
4171
|
__decorateClass([
|
|
3976
4172
|
BinaryField(
|
|
3977
4173
|
() => YGOProMsgSelectBattleCmd_AttackableInfo,
|
|
@@ -3980,37 +4176,40 @@ __decorateClass([
|
|
|
3980
4176
|
},
|
|
3981
4177
|
(obj) => obj.attackableCount
|
|
3982
4178
|
)
|
|
3983
|
-
],
|
|
4179
|
+
], _YGOProMsgSelectBattleCmd.prototype, "attackableCards", 2);
|
|
3984
4180
|
__decorateClass([
|
|
3985
4181
|
BinaryField("u8", (obj) => {
|
|
3986
4182
|
return 3 + obj.activatableCount * 11 + obj.attackableCount * 8;
|
|
3987
4183
|
})
|
|
3988
|
-
],
|
|
4184
|
+
], _YGOProMsgSelectBattleCmd.prototype, "canM2", 2);
|
|
3989
4185
|
__decorateClass([
|
|
3990
4186
|
BinaryField("u8", (obj) => {
|
|
3991
4187
|
return 4 + obj.activatableCount * 11 + obj.attackableCount * 8;
|
|
3992
4188
|
})
|
|
3993
|
-
],
|
|
4189
|
+
], _YGOProMsgSelectBattleCmd.prototype, "canEp", 2);
|
|
4190
|
+
var YGOProMsgSelectBattleCmd = _YGOProMsgSelectBattleCmd;
|
|
3994
4191
|
|
|
3995
4192
|
// src/protos/msg/proto/select-card.ts
|
|
3996
|
-
var
|
|
4193
|
+
var _YGOProMsgSelectCard_CardInfo = class _YGOProMsgSelectCard_CardInfo {
|
|
3997
4194
|
};
|
|
4195
|
+
__name(_YGOProMsgSelectCard_CardInfo, "YGOProMsgSelectCard_CardInfo");
|
|
3998
4196
|
__decorateClass([
|
|
3999
4197
|
BinaryField("i32", 0)
|
|
4000
|
-
],
|
|
4198
|
+
], _YGOProMsgSelectCard_CardInfo.prototype, "code", 2);
|
|
4001
4199
|
__decorateClass([
|
|
4002
4200
|
BinaryField("u8", 4)
|
|
4003
|
-
],
|
|
4201
|
+
], _YGOProMsgSelectCard_CardInfo.prototype, "controller", 2);
|
|
4004
4202
|
__decorateClass([
|
|
4005
4203
|
BinaryField("u8", 5)
|
|
4006
|
-
],
|
|
4204
|
+
], _YGOProMsgSelectCard_CardInfo.prototype, "location", 2);
|
|
4007
4205
|
__decorateClass([
|
|
4008
4206
|
BinaryField("u8", 6)
|
|
4009
|
-
],
|
|
4207
|
+
], _YGOProMsgSelectCard_CardInfo.prototype, "sequence", 2);
|
|
4010
4208
|
__decorateClass([
|
|
4011
4209
|
BinaryField("u8", 7)
|
|
4012
|
-
],
|
|
4013
|
-
var
|
|
4210
|
+
], _YGOProMsgSelectCard_CardInfo.prototype, "subsequence", 2);
|
|
4211
|
+
var YGOProMsgSelectCard_CardInfo = _YGOProMsgSelectCard_CardInfo;
|
|
4212
|
+
var _YGOProMsgSelectCard = class _YGOProMsgSelectCard extends YGOProMsgResponseBase {
|
|
4014
4213
|
responsePlayer() {
|
|
4015
4214
|
return this.player;
|
|
4016
4215
|
}
|
|
@@ -4055,54 +4254,58 @@ var YGOProMsgSelectCard = class extends YGOProMsgResponseBase {
|
|
|
4055
4254
|
return buffer;
|
|
4056
4255
|
}
|
|
4057
4256
|
};
|
|
4058
|
-
YGOProMsgSelectCard
|
|
4257
|
+
__name(_YGOProMsgSelectCard, "YGOProMsgSelectCard");
|
|
4258
|
+
_YGOProMsgSelectCard.identifier = OcgcoreCommonConstants.MSG_SELECT_CARD;
|
|
4059
4259
|
__decorateClass([
|
|
4060
4260
|
BinaryField("u8", 0)
|
|
4061
|
-
],
|
|
4261
|
+
], _YGOProMsgSelectCard.prototype, "player", 2);
|
|
4062
4262
|
__decorateClass([
|
|
4063
4263
|
BinaryField("u8", 1)
|
|
4064
|
-
],
|
|
4264
|
+
], _YGOProMsgSelectCard.prototype, "cancelable", 2);
|
|
4065
4265
|
__decorateClass([
|
|
4066
4266
|
BinaryField("u8", 2)
|
|
4067
|
-
],
|
|
4267
|
+
], _YGOProMsgSelectCard.prototype, "min", 2);
|
|
4068
4268
|
__decorateClass([
|
|
4069
4269
|
BinaryField("u8", 3)
|
|
4070
|
-
],
|
|
4270
|
+
], _YGOProMsgSelectCard.prototype, "max", 2);
|
|
4071
4271
|
__decorateClass([
|
|
4072
4272
|
BinaryField("u8", 4)
|
|
4073
|
-
],
|
|
4273
|
+
], _YGOProMsgSelectCard.prototype, "count", 2);
|
|
4074
4274
|
__decorateClass([
|
|
4075
4275
|
BinaryField(() => YGOProMsgSelectCard_CardInfo, 5, (obj) => obj.count)
|
|
4076
|
-
],
|
|
4276
|
+
], _YGOProMsgSelectCard.prototype, "cards", 2);
|
|
4277
|
+
var YGOProMsgSelectCard = _YGOProMsgSelectCard;
|
|
4077
4278
|
|
|
4078
4279
|
// src/protos/msg/proto/select-chain.ts
|
|
4079
|
-
var
|
|
4280
|
+
var _YGOProMsgSelectChain_ChainInfo = class _YGOProMsgSelectChain_ChainInfo {
|
|
4080
4281
|
};
|
|
4282
|
+
__name(_YGOProMsgSelectChain_ChainInfo, "YGOProMsgSelectChain_ChainInfo");
|
|
4081
4283
|
__decorateClass([
|
|
4082
4284
|
BinaryField("u8", 0)
|
|
4083
|
-
],
|
|
4285
|
+
], _YGOProMsgSelectChain_ChainInfo.prototype, "edesc", 2);
|
|
4084
4286
|
__decorateClass([
|
|
4085
4287
|
BinaryField("u8", 1)
|
|
4086
|
-
],
|
|
4288
|
+
], _YGOProMsgSelectChain_ChainInfo.prototype, "forced", 2);
|
|
4087
4289
|
__decorateClass([
|
|
4088
4290
|
BinaryField("i32", 2)
|
|
4089
|
-
],
|
|
4291
|
+
], _YGOProMsgSelectChain_ChainInfo.prototype, "code", 2);
|
|
4090
4292
|
__decorateClass([
|
|
4091
4293
|
BinaryField("u8", 6)
|
|
4092
|
-
],
|
|
4294
|
+
], _YGOProMsgSelectChain_ChainInfo.prototype, "controller", 2);
|
|
4093
4295
|
__decorateClass([
|
|
4094
4296
|
BinaryField("u8", 7)
|
|
4095
|
-
],
|
|
4297
|
+
], _YGOProMsgSelectChain_ChainInfo.prototype, "location", 2);
|
|
4096
4298
|
__decorateClass([
|
|
4097
4299
|
BinaryField("u8", 8)
|
|
4098
|
-
],
|
|
4300
|
+
], _YGOProMsgSelectChain_ChainInfo.prototype, "sequence", 2);
|
|
4099
4301
|
__decorateClass([
|
|
4100
4302
|
BinaryField("u8", 9)
|
|
4101
|
-
],
|
|
4303
|
+
], _YGOProMsgSelectChain_ChainInfo.prototype, "subsequence", 2);
|
|
4102
4304
|
__decorateClass([
|
|
4103
4305
|
BinaryField("i32", 10)
|
|
4104
|
-
],
|
|
4105
|
-
var
|
|
4306
|
+
], _YGOProMsgSelectChain_ChainInfo.prototype, "desc", 2);
|
|
4307
|
+
var YGOProMsgSelectChain_ChainInfo = _YGOProMsgSelectChain_ChainInfo;
|
|
4308
|
+
var _YGOProMsgSelectChain = class _YGOProMsgSelectChain extends YGOProMsgResponseBase {
|
|
4106
4309
|
responsePlayer() {
|
|
4107
4310
|
return this.player;
|
|
4108
4311
|
}
|
|
@@ -4136,45 +4339,49 @@ var YGOProMsgSelectChain = class extends YGOProMsgResponseBase {
|
|
|
4136
4339
|
return buffer;
|
|
4137
4340
|
}
|
|
4138
4341
|
};
|
|
4139
|
-
YGOProMsgSelectChain
|
|
4342
|
+
__name(_YGOProMsgSelectChain, "YGOProMsgSelectChain");
|
|
4343
|
+
_YGOProMsgSelectChain.identifier = OcgcoreCommonConstants.MSG_SELECT_CHAIN;
|
|
4140
4344
|
__decorateClass([
|
|
4141
4345
|
BinaryField("u8", 0)
|
|
4142
|
-
],
|
|
4346
|
+
], _YGOProMsgSelectChain.prototype, "player", 2);
|
|
4143
4347
|
__decorateClass([
|
|
4144
4348
|
BinaryField("u8", 1)
|
|
4145
|
-
],
|
|
4349
|
+
], _YGOProMsgSelectChain.prototype, "count", 2);
|
|
4146
4350
|
__decorateClass([
|
|
4147
4351
|
BinaryField("u8", 2)
|
|
4148
|
-
],
|
|
4352
|
+
], _YGOProMsgSelectChain.prototype, "specialCount", 2);
|
|
4149
4353
|
__decorateClass([
|
|
4150
4354
|
BinaryField("i32", 3)
|
|
4151
|
-
],
|
|
4355
|
+
], _YGOProMsgSelectChain.prototype, "hint0", 2);
|
|
4152
4356
|
__decorateClass([
|
|
4153
4357
|
BinaryField("i32", 7)
|
|
4154
|
-
],
|
|
4358
|
+
], _YGOProMsgSelectChain.prototype, "hint1", 2);
|
|
4155
4359
|
__decorateClass([
|
|
4156
4360
|
BinaryField(() => YGOProMsgSelectChain_ChainInfo, 11, (obj) => obj.count)
|
|
4157
|
-
],
|
|
4361
|
+
], _YGOProMsgSelectChain.prototype, "chains", 2);
|
|
4362
|
+
var YGOProMsgSelectChain = _YGOProMsgSelectChain;
|
|
4158
4363
|
|
|
4159
4364
|
// src/protos/msg/proto/select-counter.ts
|
|
4160
|
-
var
|
|
4365
|
+
var _YGOProMsgSelectCounter_CardInfo = class _YGOProMsgSelectCounter_CardInfo {
|
|
4161
4366
|
};
|
|
4367
|
+
__name(_YGOProMsgSelectCounter_CardInfo, "YGOProMsgSelectCounter_CardInfo");
|
|
4162
4368
|
__decorateClass([
|
|
4163
4369
|
BinaryField("i32", 0)
|
|
4164
|
-
],
|
|
4370
|
+
], _YGOProMsgSelectCounter_CardInfo.prototype, "code", 2);
|
|
4165
4371
|
__decorateClass([
|
|
4166
4372
|
BinaryField("u8", 4)
|
|
4167
|
-
],
|
|
4373
|
+
], _YGOProMsgSelectCounter_CardInfo.prototype, "controller", 2);
|
|
4168
4374
|
__decorateClass([
|
|
4169
4375
|
BinaryField("u8", 5)
|
|
4170
|
-
],
|
|
4376
|
+
], _YGOProMsgSelectCounter_CardInfo.prototype, "location", 2);
|
|
4171
4377
|
__decorateClass([
|
|
4172
4378
|
BinaryField("u8", 6)
|
|
4173
|
-
],
|
|
4379
|
+
], _YGOProMsgSelectCounter_CardInfo.prototype, "sequence", 2);
|
|
4174
4380
|
__decorateClass([
|
|
4175
4381
|
BinaryField("u16", 7)
|
|
4176
|
-
],
|
|
4177
|
-
var
|
|
4382
|
+
], _YGOProMsgSelectCounter_CardInfo.prototype, "counterCount", 2);
|
|
4383
|
+
var YGOProMsgSelectCounter_CardInfo = _YGOProMsgSelectCounter_CardInfo;
|
|
4384
|
+
var _YGOProMsgSelectCounter = class _YGOProMsgSelectCounter extends YGOProMsgResponseBase {
|
|
4178
4385
|
responsePlayer() {
|
|
4179
4386
|
return this.player;
|
|
4180
4387
|
}
|
|
@@ -4206,25 +4413,27 @@ var YGOProMsgSelectCounter = class extends YGOProMsgResponseBase {
|
|
|
4206
4413
|
return buffer;
|
|
4207
4414
|
}
|
|
4208
4415
|
};
|
|
4209
|
-
YGOProMsgSelectCounter
|
|
4416
|
+
__name(_YGOProMsgSelectCounter, "YGOProMsgSelectCounter");
|
|
4417
|
+
_YGOProMsgSelectCounter.identifier = OcgcoreCommonConstants.MSG_SELECT_COUNTER;
|
|
4210
4418
|
__decorateClass([
|
|
4211
4419
|
BinaryField("u8", 0)
|
|
4212
|
-
],
|
|
4420
|
+
], _YGOProMsgSelectCounter.prototype, "player", 2);
|
|
4213
4421
|
__decorateClass([
|
|
4214
4422
|
BinaryField("u16", 1)
|
|
4215
|
-
],
|
|
4423
|
+
], _YGOProMsgSelectCounter.prototype, "counterType", 2);
|
|
4216
4424
|
__decorateClass([
|
|
4217
4425
|
BinaryField("u16", 3)
|
|
4218
|
-
],
|
|
4426
|
+
], _YGOProMsgSelectCounter.prototype, "counterCount", 2);
|
|
4219
4427
|
__decorateClass([
|
|
4220
4428
|
BinaryField("u8", 5)
|
|
4221
|
-
],
|
|
4429
|
+
], _YGOProMsgSelectCounter.prototype, "count", 2);
|
|
4222
4430
|
__decorateClass([
|
|
4223
4431
|
BinaryField(() => YGOProMsgSelectCounter_CardInfo, 6, (obj) => obj.count)
|
|
4224
|
-
],
|
|
4432
|
+
], _YGOProMsgSelectCounter.prototype, "cards", 2);
|
|
4433
|
+
var YGOProMsgSelectCounter = _YGOProMsgSelectCounter;
|
|
4225
4434
|
|
|
4226
4435
|
// src/protos/msg/proto/select-place-common.ts
|
|
4227
|
-
var
|
|
4436
|
+
var _YGOProMsgSelectPlaceCommon = class _YGOProMsgSelectPlaceCommon extends YGOProMsgResponseBase {
|
|
4228
4437
|
getSelectablePlaces() {
|
|
4229
4438
|
const places = [];
|
|
4230
4439
|
const mask = this.flag >>> 0;
|
|
@@ -4260,23 +4469,27 @@ var YGOProMsgSelectPlaceCommon = class extends YGOProMsgResponseBase {
|
|
|
4260
4469
|
return buffer;
|
|
4261
4470
|
}
|
|
4262
4471
|
};
|
|
4472
|
+
__name(_YGOProMsgSelectPlaceCommon, "YGOProMsgSelectPlaceCommon");
|
|
4263
4473
|
__decorateClass([
|
|
4264
4474
|
BinaryField("u8", 0)
|
|
4265
|
-
],
|
|
4475
|
+
], _YGOProMsgSelectPlaceCommon.prototype, "player", 2);
|
|
4266
4476
|
__decorateClass([
|
|
4267
4477
|
BinaryField("u8", 1)
|
|
4268
|
-
],
|
|
4478
|
+
], _YGOProMsgSelectPlaceCommon.prototype, "count", 2);
|
|
4269
4479
|
__decorateClass([
|
|
4270
4480
|
BinaryField("u32", 2)
|
|
4271
|
-
],
|
|
4481
|
+
], _YGOProMsgSelectPlaceCommon.prototype, "flag", 2);
|
|
4482
|
+
var YGOProMsgSelectPlaceCommon = _YGOProMsgSelectPlaceCommon;
|
|
4272
4483
|
|
|
4273
4484
|
// src/protos/msg/proto/select-disfield.ts
|
|
4274
|
-
var
|
|
4485
|
+
var _YGOProMsgSelectDisField = class _YGOProMsgSelectDisField extends YGOProMsgSelectPlaceCommon {
|
|
4275
4486
|
};
|
|
4276
|
-
YGOProMsgSelectDisField
|
|
4487
|
+
__name(_YGOProMsgSelectDisField, "YGOProMsgSelectDisField");
|
|
4488
|
+
_YGOProMsgSelectDisField.identifier = OcgcoreCommonConstants.MSG_SELECT_DISFIELD;
|
|
4489
|
+
var YGOProMsgSelectDisField = _YGOProMsgSelectDisField;
|
|
4277
4490
|
|
|
4278
4491
|
// src/protos/msg/proto/select-effectyn.ts
|
|
4279
|
-
var
|
|
4492
|
+
var _YGOProMsgSelectEffectYn = class _YGOProMsgSelectEffectYn extends YGOProMsgResponseBase {
|
|
4280
4493
|
responsePlayer() {
|
|
4281
4494
|
return this.player;
|
|
4282
4495
|
}
|
|
@@ -4290,28 +4503,30 @@ var YGOProMsgSelectEffectYn = class extends YGOProMsgResponseBase {
|
|
|
4290
4503
|
return buffer;
|
|
4291
4504
|
}
|
|
4292
4505
|
};
|
|
4293
|
-
YGOProMsgSelectEffectYn
|
|
4506
|
+
__name(_YGOProMsgSelectEffectYn, "YGOProMsgSelectEffectYn");
|
|
4507
|
+
_YGOProMsgSelectEffectYn.identifier = OcgcoreCommonConstants.MSG_SELECT_EFFECTYN;
|
|
4294
4508
|
__decorateClass([
|
|
4295
4509
|
BinaryField("u8", 0)
|
|
4296
|
-
],
|
|
4510
|
+
], _YGOProMsgSelectEffectYn.prototype, "player", 2);
|
|
4297
4511
|
__decorateClass([
|
|
4298
4512
|
BinaryField("i32", 1)
|
|
4299
|
-
],
|
|
4513
|
+
], _YGOProMsgSelectEffectYn.prototype, "code", 2);
|
|
4300
4514
|
__decorateClass([
|
|
4301
4515
|
BinaryField("u8", 5)
|
|
4302
|
-
],
|
|
4516
|
+
], _YGOProMsgSelectEffectYn.prototype, "controller", 2);
|
|
4303
4517
|
__decorateClass([
|
|
4304
4518
|
BinaryField("u8", 6)
|
|
4305
|
-
],
|
|
4519
|
+
], _YGOProMsgSelectEffectYn.prototype, "location", 2);
|
|
4306
4520
|
__decorateClass([
|
|
4307
4521
|
BinaryField("u8", 7)
|
|
4308
|
-
],
|
|
4522
|
+
], _YGOProMsgSelectEffectYn.prototype, "sequence", 2);
|
|
4309
4523
|
__decorateClass([
|
|
4310
4524
|
BinaryField("u8", 8)
|
|
4311
|
-
],
|
|
4525
|
+
], _YGOProMsgSelectEffectYn.prototype, "position", 2);
|
|
4312
4526
|
__decorateClass([
|
|
4313
4527
|
BinaryField("i32", 9)
|
|
4314
|
-
],
|
|
4528
|
+
], _YGOProMsgSelectEffectYn.prototype, "desc", 2);
|
|
4529
|
+
var YGOProMsgSelectEffectYn = _YGOProMsgSelectEffectYn;
|
|
4315
4530
|
|
|
4316
4531
|
// src/protos/msg/proto/select-idlecmd.ts
|
|
4317
4532
|
var IdleCmdType = /* @__PURE__ */ ((IdleCmdType2) => {
|
|
@@ -4326,38 +4541,42 @@ var IdleCmdType = /* @__PURE__ */ ((IdleCmdType2) => {
|
|
|
4326
4541
|
IdleCmdType2[IdleCmdType2["SHUFFLE"] = 8] = "SHUFFLE";
|
|
4327
4542
|
return IdleCmdType2;
|
|
4328
4543
|
})(IdleCmdType || {});
|
|
4329
|
-
var
|
|
4544
|
+
var _YGOProMsgSelectIdleCmd_SimpleCardInfo = class _YGOProMsgSelectIdleCmd_SimpleCardInfo {
|
|
4330
4545
|
};
|
|
4546
|
+
__name(_YGOProMsgSelectIdleCmd_SimpleCardInfo, "YGOProMsgSelectIdleCmd_SimpleCardInfo");
|
|
4331
4547
|
__decorateClass([
|
|
4332
4548
|
BinaryField("i32", 0)
|
|
4333
|
-
],
|
|
4549
|
+
], _YGOProMsgSelectIdleCmd_SimpleCardInfo.prototype, "code", 2);
|
|
4334
4550
|
__decorateClass([
|
|
4335
4551
|
BinaryField("u8", 4)
|
|
4336
|
-
],
|
|
4552
|
+
], _YGOProMsgSelectIdleCmd_SimpleCardInfo.prototype, "controller", 2);
|
|
4337
4553
|
__decorateClass([
|
|
4338
4554
|
BinaryField("u8", 5)
|
|
4339
|
-
],
|
|
4555
|
+
], _YGOProMsgSelectIdleCmd_SimpleCardInfo.prototype, "location", 2);
|
|
4340
4556
|
__decorateClass([
|
|
4341
4557
|
BinaryField("u8", 6)
|
|
4342
|
-
],
|
|
4343
|
-
var
|
|
4558
|
+
], _YGOProMsgSelectIdleCmd_SimpleCardInfo.prototype, "sequence", 2);
|
|
4559
|
+
var YGOProMsgSelectIdleCmd_SimpleCardInfo = _YGOProMsgSelectIdleCmd_SimpleCardInfo;
|
|
4560
|
+
var _YGOProMsgSelectIdleCmd_ActivatableInfo = class _YGOProMsgSelectIdleCmd_ActivatableInfo {
|
|
4344
4561
|
};
|
|
4562
|
+
__name(_YGOProMsgSelectIdleCmd_ActivatableInfo, "YGOProMsgSelectIdleCmd_ActivatableInfo");
|
|
4345
4563
|
__decorateClass([
|
|
4346
4564
|
BinaryField("i32", 0)
|
|
4347
|
-
],
|
|
4565
|
+
], _YGOProMsgSelectIdleCmd_ActivatableInfo.prototype, "code", 2);
|
|
4348
4566
|
__decorateClass([
|
|
4349
4567
|
BinaryField("u8", 4)
|
|
4350
|
-
],
|
|
4568
|
+
], _YGOProMsgSelectIdleCmd_ActivatableInfo.prototype, "controller", 2);
|
|
4351
4569
|
__decorateClass([
|
|
4352
4570
|
BinaryField("u8", 5)
|
|
4353
|
-
],
|
|
4571
|
+
], _YGOProMsgSelectIdleCmd_ActivatableInfo.prototype, "location", 2);
|
|
4354
4572
|
__decorateClass([
|
|
4355
4573
|
BinaryField("u8", 6)
|
|
4356
|
-
],
|
|
4574
|
+
], _YGOProMsgSelectIdleCmd_ActivatableInfo.prototype, "sequence", 2);
|
|
4357
4575
|
__decorateClass([
|
|
4358
4576
|
BinaryField("i32", 7)
|
|
4359
|
-
],
|
|
4360
|
-
var
|
|
4577
|
+
], _YGOProMsgSelectIdleCmd_ActivatableInfo.prototype, "desc", 2);
|
|
4578
|
+
var YGOProMsgSelectIdleCmd_ActivatableInfo = _YGOProMsgSelectIdleCmd_ActivatableInfo;
|
|
4579
|
+
var _YGOProMsgSelectIdleCmd = class _YGOProMsgSelectIdleCmd extends YGOProMsgResponseBase {
|
|
4361
4580
|
responsePlayer() {
|
|
4362
4581
|
return this.player;
|
|
4363
4582
|
}
|
|
@@ -4433,103 +4652,105 @@ var YGOProMsgSelectIdleCmd = class extends YGOProMsgResponseBase {
|
|
|
4433
4652
|
return buffer;
|
|
4434
4653
|
}
|
|
4435
4654
|
};
|
|
4436
|
-
YGOProMsgSelectIdleCmd
|
|
4655
|
+
__name(_YGOProMsgSelectIdleCmd, "YGOProMsgSelectIdleCmd");
|
|
4656
|
+
_YGOProMsgSelectIdleCmd.identifier = OcgcoreCommonConstants.MSG_SELECT_IDLECMD;
|
|
4437
4657
|
__decorateClass([
|
|
4438
4658
|
BinaryField("u8", 0)
|
|
4439
|
-
],
|
|
4659
|
+
], _YGOProMsgSelectIdleCmd.prototype, "player", 2);
|
|
4440
4660
|
__decorateClass([
|
|
4441
4661
|
BinaryField("u8", 1)
|
|
4442
|
-
],
|
|
4662
|
+
], _YGOProMsgSelectIdleCmd.prototype, "summonableCount", 2);
|
|
4443
4663
|
__decorateClass([
|
|
4444
4664
|
BinaryField(
|
|
4445
4665
|
() => YGOProMsgSelectIdleCmd_SimpleCardInfo,
|
|
4446
4666
|
2,
|
|
4447
4667
|
(obj) => obj.summonableCount
|
|
4448
4668
|
)
|
|
4449
|
-
],
|
|
4669
|
+
], _YGOProMsgSelectIdleCmd.prototype, "summonableCards", 2);
|
|
4450
4670
|
__decorateClass([
|
|
4451
4671
|
BinaryField("u8", (obj) => 2 + obj.summonableCount * 7)
|
|
4452
|
-
],
|
|
4672
|
+
], _YGOProMsgSelectIdleCmd.prototype, "spSummonableCount", 2);
|
|
4453
4673
|
__decorateClass([
|
|
4454
4674
|
BinaryField(
|
|
4455
4675
|
() => YGOProMsgSelectIdleCmd_SimpleCardInfo,
|
|
4456
4676
|
(obj) => 3 + obj.summonableCount * 7,
|
|
4457
4677
|
(obj) => obj.spSummonableCount
|
|
4458
4678
|
)
|
|
4459
|
-
],
|
|
4679
|
+
], _YGOProMsgSelectIdleCmd.prototype, "spSummonableCards", 2);
|
|
4460
4680
|
__decorateClass([
|
|
4461
4681
|
BinaryField(
|
|
4462
4682
|
"u8",
|
|
4463
4683
|
(obj) => 3 + obj.summonableCount * 7 + obj.spSummonableCount * 7
|
|
4464
4684
|
)
|
|
4465
|
-
],
|
|
4685
|
+
], _YGOProMsgSelectIdleCmd.prototype, "reposableCount", 2);
|
|
4466
4686
|
__decorateClass([
|
|
4467
4687
|
BinaryField(
|
|
4468
4688
|
() => YGOProMsgSelectIdleCmd_SimpleCardInfo,
|
|
4469
4689
|
(obj) => 4 + obj.summonableCount * 7 + obj.spSummonableCount * 7,
|
|
4470
4690
|
(obj) => obj.reposableCount
|
|
4471
4691
|
)
|
|
4472
|
-
],
|
|
4692
|
+
], _YGOProMsgSelectIdleCmd.prototype, "reposableCards", 2);
|
|
4473
4693
|
__decorateClass([
|
|
4474
4694
|
BinaryField(
|
|
4475
4695
|
"u8",
|
|
4476
4696
|
(obj) => 4 + obj.summonableCount * 7 + obj.spSummonableCount * 7 + obj.reposableCount * 7
|
|
4477
4697
|
)
|
|
4478
|
-
],
|
|
4698
|
+
], _YGOProMsgSelectIdleCmd.prototype, "msetableCount", 2);
|
|
4479
4699
|
__decorateClass([
|
|
4480
4700
|
BinaryField(
|
|
4481
4701
|
() => YGOProMsgSelectIdleCmd_SimpleCardInfo,
|
|
4482
4702
|
(obj) => 5 + obj.summonableCount * 7 + obj.spSummonableCount * 7 + obj.reposableCount * 7,
|
|
4483
4703
|
(obj) => obj.msetableCount
|
|
4484
4704
|
)
|
|
4485
|
-
],
|
|
4705
|
+
], _YGOProMsgSelectIdleCmd.prototype, "msetableCards", 2);
|
|
4486
4706
|
__decorateClass([
|
|
4487
4707
|
BinaryField(
|
|
4488
4708
|
"u8",
|
|
4489
4709
|
(obj) => 5 + obj.summonableCount * 7 + obj.spSummonableCount * 7 + obj.reposableCount * 7 + obj.msetableCount * 7
|
|
4490
4710
|
)
|
|
4491
|
-
],
|
|
4711
|
+
], _YGOProMsgSelectIdleCmd.prototype, "ssetableCount", 2);
|
|
4492
4712
|
__decorateClass([
|
|
4493
4713
|
BinaryField(
|
|
4494
4714
|
() => YGOProMsgSelectIdleCmd_SimpleCardInfo,
|
|
4495
4715
|
(obj) => 6 + obj.summonableCount * 7 + obj.spSummonableCount * 7 + obj.reposableCount * 7 + obj.msetableCount * 7,
|
|
4496
4716
|
(obj) => obj.ssetableCount
|
|
4497
4717
|
)
|
|
4498
|
-
],
|
|
4718
|
+
], _YGOProMsgSelectIdleCmd.prototype, "ssetableCards", 2);
|
|
4499
4719
|
__decorateClass([
|
|
4500
4720
|
BinaryField(
|
|
4501
4721
|
"u8",
|
|
4502
4722
|
(obj) => 6 + obj.summonableCount * 7 + obj.spSummonableCount * 7 + obj.reposableCount * 7 + obj.msetableCount * 7 + obj.ssetableCount * 7
|
|
4503
4723
|
)
|
|
4504
|
-
],
|
|
4724
|
+
], _YGOProMsgSelectIdleCmd.prototype, "activatableCount", 2);
|
|
4505
4725
|
__decorateClass([
|
|
4506
4726
|
BinaryField(
|
|
4507
4727
|
() => YGOProMsgSelectIdleCmd_ActivatableInfo,
|
|
4508
4728
|
(obj) => 7 + obj.summonableCount * 7 + obj.spSummonableCount * 7 + obj.reposableCount * 7 + obj.msetableCount * 7 + obj.ssetableCount * 7,
|
|
4509
4729
|
(obj) => obj.activatableCount
|
|
4510
4730
|
)
|
|
4511
|
-
],
|
|
4731
|
+
], _YGOProMsgSelectIdleCmd.prototype, "activatableCards", 2);
|
|
4512
4732
|
__decorateClass([
|
|
4513
4733
|
BinaryField(
|
|
4514
4734
|
"u8",
|
|
4515
4735
|
(obj) => 7 + obj.summonableCount * 7 + obj.spSummonableCount * 7 + obj.reposableCount * 7 + obj.msetableCount * 7 + obj.ssetableCount * 7 + obj.activatableCount * 11
|
|
4516
4736
|
)
|
|
4517
|
-
],
|
|
4737
|
+
], _YGOProMsgSelectIdleCmd.prototype, "canBp", 2);
|
|
4518
4738
|
__decorateClass([
|
|
4519
4739
|
BinaryField(
|
|
4520
4740
|
"u8",
|
|
4521
4741
|
(obj) => 8 + obj.summonableCount * 7 + obj.spSummonableCount * 7 + obj.reposableCount * 7 + obj.msetableCount * 7 + obj.ssetableCount * 7 + obj.activatableCount * 11
|
|
4522
4742
|
)
|
|
4523
|
-
],
|
|
4743
|
+
], _YGOProMsgSelectIdleCmd.prototype, "canEp", 2);
|
|
4524
4744
|
__decorateClass([
|
|
4525
4745
|
BinaryField(
|
|
4526
4746
|
"u8",
|
|
4527
4747
|
(obj) => 9 + obj.summonableCount * 7 + obj.spSummonableCount * 7 + obj.reposableCount * 7 + obj.msetableCount * 7 + obj.ssetableCount * 7 + obj.activatableCount * 11
|
|
4528
4748
|
)
|
|
4529
|
-
],
|
|
4749
|
+
], _YGOProMsgSelectIdleCmd.prototype, "canShuffle", 2);
|
|
4750
|
+
var YGOProMsgSelectIdleCmd = _YGOProMsgSelectIdleCmd;
|
|
4530
4751
|
|
|
4531
4752
|
// src/protos/msg/proto/select-option.ts
|
|
4532
|
-
var
|
|
4753
|
+
var _YGOProMsgSelectOption = class _YGOProMsgSelectOption extends YGOProMsgResponseBase {
|
|
4533
4754
|
responsePlayer() {
|
|
4534
4755
|
return this.player;
|
|
4535
4756
|
}
|
|
@@ -4552,24 +4773,28 @@ var YGOProMsgSelectOption = class extends YGOProMsgResponseBase {
|
|
|
4552
4773
|
return buffer;
|
|
4553
4774
|
}
|
|
4554
4775
|
};
|
|
4555
|
-
YGOProMsgSelectOption
|
|
4776
|
+
__name(_YGOProMsgSelectOption, "YGOProMsgSelectOption");
|
|
4777
|
+
_YGOProMsgSelectOption.identifier = OcgcoreCommonConstants.MSG_SELECT_OPTION;
|
|
4556
4778
|
__decorateClass([
|
|
4557
4779
|
BinaryField("u8", 0)
|
|
4558
|
-
],
|
|
4780
|
+
], _YGOProMsgSelectOption.prototype, "player", 2);
|
|
4559
4781
|
__decorateClass([
|
|
4560
4782
|
BinaryField("u8", 1)
|
|
4561
|
-
],
|
|
4783
|
+
], _YGOProMsgSelectOption.prototype, "count", 2);
|
|
4562
4784
|
__decorateClass([
|
|
4563
4785
|
BinaryField("i32", 2, (obj) => obj.count)
|
|
4564
|
-
],
|
|
4786
|
+
], _YGOProMsgSelectOption.prototype, "options", 2);
|
|
4787
|
+
var YGOProMsgSelectOption = _YGOProMsgSelectOption;
|
|
4565
4788
|
|
|
4566
4789
|
// src/protos/msg/proto/select-place.ts
|
|
4567
|
-
var
|
|
4790
|
+
var _YGOProMsgSelectPlace = class _YGOProMsgSelectPlace extends YGOProMsgSelectPlaceCommon {
|
|
4568
4791
|
};
|
|
4569
|
-
YGOProMsgSelectPlace
|
|
4792
|
+
__name(_YGOProMsgSelectPlace, "YGOProMsgSelectPlace");
|
|
4793
|
+
_YGOProMsgSelectPlace.identifier = OcgcoreCommonConstants.MSG_SELECT_PLACE;
|
|
4794
|
+
var YGOProMsgSelectPlace = _YGOProMsgSelectPlace;
|
|
4570
4795
|
|
|
4571
4796
|
// src/protos/msg/proto/select-position.ts
|
|
4572
|
-
var
|
|
4797
|
+
var _YGOProMsgSelectPosition = class _YGOProMsgSelectPosition extends YGOProMsgResponseBase {
|
|
4573
4798
|
responsePlayer() {
|
|
4574
4799
|
return this.player;
|
|
4575
4800
|
}
|
|
@@ -4580,36 +4805,40 @@ var YGOProMsgSelectPosition = class extends YGOProMsgResponseBase {
|
|
|
4580
4805
|
return buffer;
|
|
4581
4806
|
}
|
|
4582
4807
|
};
|
|
4583
|
-
YGOProMsgSelectPosition
|
|
4808
|
+
__name(_YGOProMsgSelectPosition, "YGOProMsgSelectPosition");
|
|
4809
|
+
_YGOProMsgSelectPosition.identifier = OcgcoreCommonConstants.MSG_SELECT_POSITION;
|
|
4584
4810
|
__decorateClass([
|
|
4585
4811
|
BinaryField("u8", 0)
|
|
4586
|
-
],
|
|
4812
|
+
], _YGOProMsgSelectPosition.prototype, "player", 2);
|
|
4587
4813
|
__decorateClass([
|
|
4588
4814
|
BinaryField("i32", 1)
|
|
4589
|
-
],
|
|
4815
|
+
], _YGOProMsgSelectPosition.prototype, "code", 2);
|
|
4590
4816
|
__decorateClass([
|
|
4591
4817
|
BinaryField("u8", 5)
|
|
4592
|
-
],
|
|
4818
|
+
], _YGOProMsgSelectPosition.prototype, "positions", 2);
|
|
4819
|
+
var YGOProMsgSelectPosition = _YGOProMsgSelectPosition;
|
|
4593
4820
|
|
|
4594
4821
|
// src/protos/msg/proto/select-sum.ts
|
|
4595
|
-
var
|
|
4822
|
+
var _YGOProMsgSelectSum_CardInfo = class _YGOProMsgSelectSum_CardInfo {
|
|
4596
4823
|
};
|
|
4824
|
+
__name(_YGOProMsgSelectSum_CardInfo, "YGOProMsgSelectSum_CardInfo");
|
|
4597
4825
|
__decorateClass([
|
|
4598
4826
|
BinaryField("i32", 0)
|
|
4599
|
-
],
|
|
4827
|
+
], _YGOProMsgSelectSum_CardInfo.prototype, "code", 2);
|
|
4600
4828
|
__decorateClass([
|
|
4601
4829
|
BinaryField("u8", 4)
|
|
4602
|
-
],
|
|
4830
|
+
], _YGOProMsgSelectSum_CardInfo.prototype, "controller", 2);
|
|
4603
4831
|
__decorateClass([
|
|
4604
4832
|
BinaryField("u8", 5)
|
|
4605
|
-
],
|
|
4833
|
+
], _YGOProMsgSelectSum_CardInfo.prototype, "location", 2);
|
|
4606
4834
|
__decorateClass([
|
|
4607
4835
|
BinaryField("u8", 6)
|
|
4608
|
-
],
|
|
4836
|
+
], _YGOProMsgSelectSum_CardInfo.prototype, "sequence", 2);
|
|
4609
4837
|
__decorateClass([
|
|
4610
4838
|
BinaryField("i32", 7)
|
|
4611
|
-
],
|
|
4612
|
-
var
|
|
4839
|
+
], _YGOProMsgSelectSum_CardInfo.prototype, "opParam", 2);
|
|
4840
|
+
var YGOProMsgSelectSum_CardInfo = _YGOProMsgSelectSum_CardInfo;
|
|
4841
|
+
var _YGOProMsgSelectSum = class _YGOProMsgSelectSum extends YGOProMsgResponseBase {
|
|
4613
4842
|
responsePlayer() {
|
|
4614
4843
|
return this.player;
|
|
4615
4844
|
}
|
|
@@ -4640,37 +4869,38 @@ var YGOProMsgSelectSum = class extends YGOProMsgResponseBase {
|
|
|
4640
4869
|
return buffer;
|
|
4641
4870
|
}
|
|
4642
4871
|
};
|
|
4643
|
-
YGOProMsgSelectSum
|
|
4872
|
+
__name(_YGOProMsgSelectSum, "YGOProMsgSelectSum");
|
|
4873
|
+
_YGOProMsgSelectSum.identifier = OcgcoreCommonConstants.MSG_SELECT_SUM;
|
|
4644
4874
|
__decorateClass([
|
|
4645
4875
|
BinaryField("u8", 0)
|
|
4646
|
-
],
|
|
4876
|
+
], _YGOProMsgSelectSum.prototype, "mode", 2);
|
|
4647
4877
|
__decorateClass([
|
|
4648
4878
|
BinaryField("u8", 1)
|
|
4649
|
-
],
|
|
4879
|
+
], _YGOProMsgSelectSum.prototype, "player", 2);
|
|
4650
4880
|
__decorateClass([
|
|
4651
4881
|
BinaryField("i32", 2)
|
|
4652
|
-
],
|
|
4882
|
+
], _YGOProMsgSelectSum.prototype, "sumVal", 2);
|
|
4653
4883
|
__decorateClass([
|
|
4654
4884
|
BinaryField("u8", 6)
|
|
4655
|
-
],
|
|
4885
|
+
], _YGOProMsgSelectSum.prototype, "min", 2);
|
|
4656
4886
|
__decorateClass([
|
|
4657
4887
|
BinaryField("u8", 7)
|
|
4658
|
-
],
|
|
4888
|
+
], _YGOProMsgSelectSum.prototype, "max", 2);
|
|
4659
4889
|
__decorateClass([
|
|
4660
4890
|
BinaryField("u8", 8)
|
|
4661
|
-
],
|
|
4891
|
+
], _YGOProMsgSelectSum.prototype, "mustSelectCount", 2);
|
|
4662
4892
|
__decorateClass([
|
|
4663
4893
|
BinaryField(
|
|
4664
4894
|
() => YGOProMsgSelectSum_CardInfo,
|
|
4665
4895
|
9,
|
|
4666
4896
|
(obj) => obj.mustSelectCount
|
|
4667
4897
|
)
|
|
4668
|
-
],
|
|
4898
|
+
], _YGOProMsgSelectSum.prototype, "mustSelectCards", 2);
|
|
4669
4899
|
__decorateClass([
|
|
4670
4900
|
BinaryField("u8", (obj) => {
|
|
4671
4901
|
return 9 + obj.mustSelectCount * 11;
|
|
4672
4902
|
})
|
|
4673
|
-
],
|
|
4903
|
+
], _YGOProMsgSelectSum.prototype, "count", 2);
|
|
4674
4904
|
__decorateClass([
|
|
4675
4905
|
BinaryField(
|
|
4676
4906
|
() => YGOProMsgSelectSum_CardInfo,
|
|
@@ -4679,27 +4909,30 @@ __decorateClass([
|
|
|
4679
4909
|
},
|
|
4680
4910
|
(obj) => obj.count
|
|
4681
4911
|
)
|
|
4682
|
-
],
|
|
4912
|
+
], _YGOProMsgSelectSum.prototype, "cards", 2);
|
|
4913
|
+
var YGOProMsgSelectSum = _YGOProMsgSelectSum;
|
|
4683
4914
|
|
|
4684
4915
|
// src/protos/msg/proto/select-tribute.ts
|
|
4685
|
-
var
|
|
4916
|
+
var _YGOProMsgSelectTribute_CardInfo = class _YGOProMsgSelectTribute_CardInfo {
|
|
4686
4917
|
};
|
|
4918
|
+
__name(_YGOProMsgSelectTribute_CardInfo, "YGOProMsgSelectTribute_CardInfo");
|
|
4687
4919
|
__decorateClass([
|
|
4688
4920
|
BinaryField("i32", 0)
|
|
4689
|
-
],
|
|
4921
|
+
], _YGOProMsgSelectTribute_CardInfo.prototype, "code", 2);
|
|
4690
4922
|
__decorateClass([
|
|
4691
4923
|
BinaryField("u8", 4)
|
|
4692
|
-
],
|
|
4924
|
+
], _YGOProMsgSelectTribute_CardInfo.prototype, "controller", 2);
|
|
4693
4925
|
__decorateClass([
|
|
4694
4926
|
BinaryField("u8", 5)
|
|
4695
|
-
],
|
|
4927
|
+
], _YGOProMsgSelectTribute_CardInfo.prototype, "location", 2);
|
|
4696
4928
|
__decorateClass([
|
|
4697
4929
|
BinaryField("u8", 6)
|
|
4698
|
-
],
|
|
4930
|
+
], _YGOProMsgSelectTribute_CardInfo.prototype, "sequence", 2);
|
|
4699
4931
|
__decorateClass([
|
|
4700
4932
|
BinaryField("u8", 7)
|
|
4701
|
-
],
|
|
4702
|
-
var
|
|
4933
|
+
], _YGOProMsgSelectTribute_CardInfo.prototype, "releaseParam", 2);
|
|
4934
|
+
var YGOProMsgSelectTribute_CardInfo = _YGOProMsgSelectTribute_CardInfo;
|
|
4935
|
+
var _YGOProMsgSelectTribute = class _YGOProMsgSelectTribute extends YGOProMsgResponseBase {
|
|
4703
4936
|
responsePlayer() {
|
|
4704
4937
|
return this.player;
|
|
4705
4938
|
}
|
|
@@ -4744,45 +4977,49 @@ var YGOProMsgSelectTribute = class extends YGOProMsgResponseBase {
|
|
|
4744
4977
|
return buffer;
|
|
4745
4978
|
}
|
|
4746
4979
|
};
|
|
4747
|
-
YGOProMsgSelectTribute
|
|
4980
|
+
__name(_YGOProMsgSelectTribute, "YGOProMsgSelectTribute");
|
|
4981
|
+
_YGOProMsgSelectTribute.identifier = OcgcoreCommonConstants.MSG_SELECT_TRIBUTE;
|
|
4748
4982
|
__decorateClass([
|
|
4749
4983
|
BinaryField("u8", 0)
|
|
4750
|
-
],
|
|
4984
|
+
], _YGOProMsgSelectTribute.prototype, "player", 2);
|
|
4751
4985
|
__decorateClass([
|
|
4752
4986
|
BinaryField("u8", 1)
|
|
4753
|
-
],
|
|
4987
|
+
], _YGOProMsgSelectTribute.prototype, "cancelable", 2);
|
|
4754
4988
|
__decorateClass([
|
|
4755
4989
|
BinaryField("u8", 2)
|
|
4756
|
-
],
|
|
4990
|
+
], _YGOProMsgSelectTribute.prototype, "min", 2);
|
|
4757
4991
|
__decorateClass([
|
|
4758
4992
|
BinaryField("u8", 3)
|
|
4759
|
-
],
|
|
4993
|
+
], _YGOProMsgSelectTribute.prototype, "max", 2);
|
|
4760
4994
|
__decorateClass([
|
|
4761
4995
|
BinaryField("u8", 4)
|
|
4762
|
-
],
|
|
4996
|
+
], _YGOProMsgSelectTribute.prototype, "count", 2);
|
|
4763
4997
|
__decorateClass([
|
|
4764
4998
|
BinaryField(() => YGOProMsgSelectTribute_CardInfo, 5, (obj) => obj.count)
|
|
4765
|
-
],
|
|
4999
|
+
], _YGOProMsgSelectTribute.prototype, "cards", 2);
|
|
5000
|
+
var YGOProMsgSelectTribute = _YGOProMsgSelectTribute;
|
|
4766
5001
|
|
|
4767
5002
|
// src/protos/msg/proto/select-unselect-card.ts
|
|
4768
|
-
var
|
|
5003
|
+
var _YGOProMsgSelectUnselectCard_CardInfo = class _YGOProMsgSelectUnselectCard_CardInfo {
|
|
4769
5004
|
};
|
|
5005
|
+
__name(_YGOProMsgSelectUnselectCard_CardInfo, "YGOProMsgSelectUnselectCard_CardInfo");
|
|
4770
5006
|
__decorateClass([
|
|
4771
5007
|
BinaryField("i32", 0)
|
|
4772
|
-
],
|
|
5008
|
+
], _YGOProMsgSelectUnselectCard_CardInfo.prototype, "code", 2);
|
|
4773
5009
|
__decorateClass([
|
|
4774
5010
|
BinaryField("u8", 4)
|
|
4775
|
-
],
|
|
5011
|
+
], _YGOProMsgSelectUnselectCard_CardInfo.prototype, "controller", 2);
|
|
4776
5012
|
__decorateClass([
|
|
4777
5013
|
BinaryField("u8", 5)
|
|
4778
|
-
],
|
|
5014
|
+
], _YGOProMsgSelectUnselectCard_CardInfo.prototype, "location", 2);
|
|
4779
5015
|
__decorateClass([
|
|
4780
5016
|
BinaryField("u8", 6)
|
|
4781
|
-
],
|
|
5017
|
+
], _YGOProMsgSelectUnselectCard_CardInfo.prototype, "sequence", 2);
|
|
4782
5018
|
__decorateClass([
|
|
4783
5019
|
BinaryField("u8", 7)
|
|
4784
|
-
],
|
|
4785
|
-
var
|
|
5020
|
+
], _YGOProMsgSelectUnselectCard_CardInfo.prototype, "subsequence", 2);
|
|
5021
|
+
var YGOProMsgSelectUnselectCard_CardInfo = _YGOProMsgSelectUnselectCard_CardInfo;
|
|
5022
|
+
var _YGOProMsgSelectUnselectCard = class _YGOProMsgSelectUnselectCard extends YGOProMsgResponseBase {
|
|
4786
5023
|
responsePlayer() {
|
|
4787
5024
|
return this.player;
|
|
4788
5025
|
}
|
|
@@ -4826,37 +5063,38 @@ var YGOProMsgSelectUnselectCard = class extends YGOProMsgResponseBase {
|
|
|
4826
5063
|
return buffer;
|
|
4827
5064
|
}
|
|
4828
5065
|
};
|
|
4829
|
-
YGOProMsgSelectUnselectCard
|
|
5066
|
+
__name(_YGOProMsgSelectUnselectCard, "YGOProMsgSelectUnselectCard");
|
|
5067
|
+
_YGOProMsgSelectUnselectCard.identifier = OcgcoreCommonConstants.MSG_SELECT_UNSELECT_CARD;
|
|
4830
5068
|
__decorateClass([
|
|
4831
5069
|
BinaryField("u8", 0)
|
|
4832
|
-
],
|
|
5070
|
+
], _YGOProMsgSelectUnselectCard.prototype, "player", 2);
|
|
4833
5071
|
__decorateClass([
|
|
4834
5072
|
BinaryField("u8", 1)
|
|
4835
|
-
],
|
|
5073
|
+
], _YGOProMsgSelectUnselectCard.prototype, "finishable", 2);
|
|
4836
5074
|
__decorateClass([
|
|
4837
5075
|
BinaryField("u8", 2)
|
|
4838
|
-
],
|
|
5076
|
+
], _YGOProMsgSelectUnselectCard.prototype, "cancelable", 2);
|
|
4839
5077
|
__decorateClass([
|
|
4840
5078
|
BinaryField("u8", 3)
|
|
4841
|
-
],
|
|
5079
|
+
], _YGOProMsgSelectUnselectCard.prototype, "min", 2);
|
|
4842
5080
|
__decorateClass([
|
|
4843
5081
|
BinaryField("u8", 4)
|
|
4844
|
-
],
|
|
5082
|
+
], _YGOProMsgSelectUnselectCard.prototype, "max", 2);
|
|
4845
5083
|
__decorateClass([
|
|
4846
5084
|
BinaryField("u8", 5)
|
|
4847
|
-
],
|
|
5085
|
+
], _YGOProMsgSelectUnselectCard.prototype, "selectableCount", 2);
|
|
4848
5086
|
__decorateClass([
|
|
4849
5087
|
BinaryField(
|
|
4850
5088
|
() => YGOProMsgSelectUnselectCard_CardInfo,
|
|
4851
5089
|
6,
|
|
4852
5090
|
(obj) => obj.selectableCount
|
|
4853
5091
|
)
|
|
4854
|
-
],
|
|
5092
|
+
], _YGOProMsgSelectUnselectCard.prototype, "selectableCards", 2);
|
|
4855
5093
|
__decorateClass([
|
|
4856
5094
|
BinaryField("u8", (obj) => {
|
|
4857
5095
|
return 6 + obj.selectableCount * 8;
|
|
4858
5096
|
})
|
|
4859
|
-
],
|
|
5097
|
+
], _YGOProMsgSelectUnselectCard.prototype, "unselectableCount", 2);
|
|
4860
5098
|
__decorateClass([
|
|
4861
5099
|
BinaryField(
|
|
4862
5100
|
() => YGOProMsgSelectUnselectCard_CardInfo,
|
|
@@ -4865,10 +5103,11 @@ __decorateClass([
|
|
|
4865
5103
|
},
|
|
4866
5104
|
(obj) => obj.unselectableCount
|
|
4867
5105
|
)
|
|
4868
|
-
],
|
|
5106
|
+
], _YGOProMsgSelectUnselectCard.prototype, "unselectableCards", 2);
|
|
5107
|
+
var YGOProMsgSelectUnselectCard = _YGOProMsgSelectUnselectCard;
|
|
4869
5108
|
|
|
4870
5109
|
// src/protos/msg/proto/select-yesno.ts
|
|
4871
|
-
var
|
|
5110
|
+
var _YGOProMsgSelectYesNo = class _YGOProMsgSelectYesNo extends YGOProMsgResponseBase {
|
|
4872
5111
|
responsePlayer() {
|
|
4873
5112
|
return this.player;
|
|
4874
5113
|
}
|
|
@@ -4882,16 +5121,18 @@ var YGOProMsgSelectYesNo = class extends YGOProMsgResponseBase {
|
|
|
4882
5121
|
return buffer;
|
|
4883
5122
|
}
|
|
4884
5123
|
};
|
|
4885
|
-
YGOProMsgSelectYesNo
|
|
5124
|
+
__name(_YGOProMsgSelectYesNo, "YGOProMsgSelectYesNo");
|
|
5125
|
+
_YGOProMsgSelectYesNo.identifier = OcgcoreCommonConstants.MSG_SELECT_YESNO;
|
|
4886
5126
|
__decorateClass([
|
|
4887
5127
|
BinaryField("u8", 0)
|
|
4888
|
-
],
|
|
5128
|
+
], _YGOProMsgSelectYesNo.prototype, "player", 2);
|
|
4889
5129
|
__decorateClass([
|
|
4890
5130
|
BinaryField("i32", 1)
|
|
4891
|
-
],
|
|
5131
|
+
], _YGOProMsgSelectYesNo.prototype, "desc", 2);
|
|
5132
|
+
var YGOProMsgSelectYesNo = _YGOProMsgSelectYesNo;
|
|
4892
5133
|
|
|
4893
5134
|
// src/protos/msg/proto/set.ts
|
|
4894
|
-
var
|
|
5135
|
+
var _YGOProMsgSet = class _YGOProMsgSet extends YGOProMsgBase {
|
|
4895
5136
|
// MSG_SET 是盖放卡片,所有人都看不到 code(包括玩家自己)
|
|
4896
5137
|
// 服务器在发送前会将 code 清零
|
|
4897
5138
|
opponentView() {
|
|
@@ -4916,21 +5157,25 @@ var YGOProMsgSet = class extends YGOProMsgBase {
|
|
|
4916
5157
|
return view;
|
|
4917
5158
|
}
|
|
4918
5159
|
};
|
|
4919
|
-
YGOProMsgSet
|
|
5160
|
+
__name(_YGOProMsgSet, "YGOProMsgSet");
|
|
5161
|
+
_YGOProMsgSet.identifier = OcgcoreCommonConstants.MSG_SET;
|
|
4920
5162
|
__decorateClass([
|
|
4921
5163
|
BinaryField("i32", 0)
|
|
4922
|
-
],
|
|
5164
|
+
], _YGOProMsgSet.prototype, "code", 2);
|
|
5165
|
+
var YGOProMsgSet = _YGOProMsgSet;
|
|
4923
5166
|
|
|
4924
5167
|
// src/protos/msg/proto/shuffle-deck.ts
|
|
4925
|
-
var
|
|
5168
|
+
var _YGOProMsgShuffleDeck = class _YGOProMsgShuffleDeck extends YGOProMsgBase {
|
|
4926
5169
|
};
|
|
4927
|
-
YGOProMsgShuffleDeck
|
|
5170
|
+
__name(_YGOProMsgShuffleDeck, "YGOProMsgShuffleDeck");
|
|
5171
|
+
_YGOProMsgShuffleDeck.identifier = OcgcoreCommonConstants.MSG_SHUFFLE_DECK;
|
|
4928
5172
|
__decorateClass([
|
|
4929
5173
|
BinaryField("u8", 0)
|
|
4930
|
-
],
|
|
5174
|
+
], _YGOProMsgShuffleDeck.prototype, "player", 2);
|
|
5175
|
+
var YGOProMsgShuffleDeck = _YGOProMsgShuffleDeck;
|
|
4931
5176
|
|
|
4932
5177
|
// src/protos/msg/proto/shuffle-extra.ts
|
|
4933
|
-
var
|
|
5178
|
+
var _YGOProMsgShuffleExtra = class _YGOProMsgShuffleExtra extends YGOProMsgBase {
|
|
4934
5179
|
// 对方视角需要隐藏额外卡组信息
|
|
4935
5180
|
opponentView() {
|
|
4936
5181
|
const view = this.copy();
|
|
@@ -4943,19 +5188,21 @@ var YGOProMsgShuffleExtra = class extends YGOProMsgBase {
|
|
|
4943
5188
|
return view;
|
|
4944
5189
|
}
|
|
4945
5190
|
};
|
|
4946
|
-
YGOProMsgShuffleExtra
|
|
5191
|
+
__name(_YGOProMsgShuffleExtra, "YGOProMsgShuffleExtra");
|
|
5192
|
+
_YGOProMsgShuffleExtra.identifier = OcgcoreCommonConstants.MSG_SHUFFLE_EXTRA;
|
|
4947
5193
|
__decorateClass([
|
|
4948
5194
|
BinaryField("u8", 0)
|
|
4949
|
-
],
|
|
5195
|
+
], _YGOProMsgShuffleExtra.prototype, "player", 2);
|
|
4950
5196
|
__decorateClass([
|
|
4951
5197
|
BinaryField("u8", 1)
|
|
4952
|
-
],
|
|
5198
|
+
], _YGOProMsgShuffleExtra.prototype, "count", 2);
|
|
4953
5199
|
__decorateClass([
|
|
4954
5200
|
BinaryField("i32", 2, (obj) => obj.count)
|
|
4955
|
-
],
|
|
5201
|
+
], _YGOProMsgShuffleExtra.prototype, "cards", 2);
|
|
5202
|
+
var YGOProMsgShuffleExtra = _YGOProMsgShuffleExtra;
|
|
4956
5203
|
|
|
4957
5204
|
// src/protos/msg/proto/shuffle-hand.ts
|
|
4958
|
-
var
|
|
5205
|
+
var _YGOProMsgShuffleHand = class _YGOProMsgShuffleHand extends YGOProMsgBase {
|
|
4959
5206
|
// 对方视角需要隐藏手牌信息
|
|
4960
5207
|
opponentView() {
|
|
4961
5208
|
const view = this.copy();
|
|
@@ -4963,69 +5210,79 @@ var YGOProMsgShuffleHand = class extends YGOProMsgBase {
|
|
|
4963
5210
|
return view;
|
|
4964
5211
|
}
|
|
4965
5212
|
};
|
|
4966
|
-
YGOProMsgShuffleHand
|
|
5213
|
+
__name(_YGOProMsgShuffleHand, "YGOProMsgShuffleHand");
|
|
5214
|
+
_YGOProMsgShuffleHand.identifier = OcgcoreCommonConstants.MSG_SHUFFLE_HAND;
|
|
4967
5215
|
__decorateClass([
|
|
4968
5216
|
BinaryField("u8", 0)
|
|
4969
|
-
],
|
|
5217
|
+
], _YGOProMsgShuffleHand.prototype, "player", 2);
|
|
4970
5218
|
__decorateClass([
|
|
4971
5219
|
BinaryField("u8", 1)
|
|
4972
|
-
],
|
|
5220
|
+
], _YGOProMsgShuffleHand.prototype, "count", 2);
|
|
4973
5221
|
__decorateClass([
|
|
4974
5222
|
BinaryField("i32", 2, (obj) => obj.count)
|
|
4975
|
-
],
|
|
5223
|
+
], _YGOProMsgShuffleHand.prototype, "cards", 2);
|
|
5224
|
+
var YGOProMsgShuffleHand = _YGOProMsgShuffleHand;
|
|
4976
5225
|
|
|
4977
5226
|
// src/protos/msg/proto/shuffle-set-card.ts
|
|
4978
|
-
var
|
|
5227
|
+
var _YGOProMsgShuffleSetCard_CardLocation = class _YGOProMsgShuffleSetCard_CardLocation {
|
|
4979
5228
|
};
|
|
5229
|
+
__name(_YGOProMsgShuffleSetCard_CardLocation, "YGOProMsgShuffleSetCard_CardLocation");
|
|
4980
5230
|
__decorateClass([
|
|
4981
5231
|
BinaryField("u8", 0)
|
|
4982
|
-
],
|
|
5232
|
+
], _YGOProMsgShuffleSetCard_CardLocation.prototype, "controller", 2);
|
|
4983
5233
|
__decorateClass([
|
|
4984
5234
|
BinaryField("u8", 1)
|
|
4985
|
-
],
|
|
5235
|
+
], _YGOProMsgShuffleSetCard_CardLocation.prototype, "location", 2);
|
|
4986
5236
|
__decorateClass([
|
|
4987
5237
|
BinaryField("u8", 2)
|
|
4988
|
-
],
|
|
5238
|
+
], _YGOProMsgShuffleSetCard_CardLocation.prototype, "sequence", 2);
|
|
4989
5239
|
__decorateClass([
|
|
4990
5240
|
BinaryField("u8", 3)
|
|
4991
|
-
],
|
|
4992
|
-
var
|
|
5241
|
+
], _YGOProMsgShuffleSetCard_CardLocation.prototype, "position", 2);
|
|
5242
|
+
var YGOProMsgShuffleSetCard_CardLocation = _YGOProMsgShuffleSetCard_CardLocation;
|
|
5243
|
+
var _YGOProMsgShuffleSetCard_SetCardInfo = class _YGOProMsgShuffleSetCard_SetCardInfo {
|
|
4993
5244
|
};
|
|
5245
|
+
__name(_YGOProMsgShuffleSetCard_SetCardInfo, "YGOProMsgShuffleSetCard_SetCardInfo");
|
|
4994
5246
|
__decorateClass([
|
|
4995
5247
|
BinaryField(() => YGOProMsgShuffleSetCard_CardLocation, 0)
|
|
4996
|
-
],
|
|
5248
|
+
], _YGOProMsgShuffleSetCard_SetCardInfo.prototype, "oldLocation", 2);
|
|
4997
5249
|
__decorateClass([
|
|
4998
5250
|
BinaryField(() => YGOProMsgShuffleSetCard_CardLocation, 4)
|
|
4999
|
-
],
|
|
5000
|
-
var
|
|
5251
|
+
], _YGOProMsgShuffleSetCard_SetCardInfo.prototype, "newLocation", 2);
|
|
5252
|
+
var YGOProMsgShuffleSetCard_SetCardInfo = _YGOProMsgShuffleSetCard_SetCardInfo;
|
|
5253
|
+
var _YGOProMsgShuffleSetCard = class _YGOProMsgShuffleSetCard extends YGOProMsgBase {
|
|
5001
5254
|
};
|
|
5002
|
-
YGOProMsgShuffleSetCard
|
|
5255
|
+
__name(_YGOProMsgShuffleSetCard, "YGOProMsgShuffleSetCard");
|
|
5256
|
+
_YGOProMsgShuffleSetCard.identifier = OcgcoreCommonConstants.MSG_SHUFFLE_SET_CARD;
|
|
5003
5257
|
__decorateClass([
|
|
5004
5258
|
BinaryField("u8", 0)
|
|
5005
|
-
],
|
|
5259
|
+
], _YGOProMsgShuffleSetCard.prototype, "location", 2);
|
|
5006
5260
|
__decorateClass([
|
|
5007
5261
|
BinaryField("u8", 1)
|
|
5008
|
-
],
|
|
5262
|
+
], _YGOProMsgShuffleSetCard.prototype, "count", 2);
|
|
5009
5263
|
__decorateClass([
|
|
5010
5264
|
BinaryField(() => YGOProMsgShuffleSetCard_SetCardInfo, 2, (obj) => obj.count)
|
|
5011
|
-
],
|
|
5265
|
+
], _YGOProMsgShuffleSetCard.prototype, "cards", 2);
|
|
5266
|
+
var YGOProMsgShuffleSetCard = _YGOProMsgShuffleSetCard;
|
|
5012
5267
|
|
|
5013
5268
|
// src/protos/msg/proto/sort-card.ts
|
|
5014
|
-
var
|
|
5269
|
+
var _YGOProMsgSortCard_CardInfo = class _YGOProMsgSortCard_CardInfo {
|
|
5015
5270
|
};
|
|
5271
|
+
__name(_YGOProMsgSortCard_CardInfo, "YGOProMsgSortCard_CardInfo");
|
|
5016
5272
|
__decorateClass([
|
|
5017
5273
|
BinaryField("i32", 0)
|
|
5018
|
-
],
|
|
5274
|
+
], _YGOProMsgSortCard_CardInfo.prototype, "code", 2);
|
|
5019
5275
|
__decorateClass([
|
|
5020
5276
|
BinaryField("u8", 4)
|
|
5021
|
-
],
|
|
5277
|
+
], _YGOProMsgSortCard_CardInfo.prototype, "controller", 2);
|
|
5022
5278
|
__decorateClass([
|
|
5023
5279
|
BinaryField("u8", 5)
|
|
5024
|
-
],
|
|
5280
|
+
], _YGOProMsgSortCard_CardInfo.prototype, "location", 2);
|
|
5025
5281
|
__decorateClass([
|
|
5026
5282
|
BinaryField("u8", 6)
|
|
5027
|
-
],
|
|
5028
|
-
var
|
|
5283
|
+
], _YGOProMsgSortCard_CardInfo.prototype, "sequence", 2);
|
|
5284
|
+
var YGOProMsgSortCard_CardInfo = _YGOProMsgSortCard_CardInfo;
|
|
5285
|
+
var _YGOProMsgSortCard = class _YGOProMsgSortCard extends YGOProMsgResponseBase {
|
|
5029
5286
|
responsePlayer() {
|
|
5030
5287
|
return this.player;
|
|
5031
5288
|
}
|
|
@@ -5063,24 +5320,28 @@ var YGOProMsgSortCard = class extends YGOProMsgResponseBase {
|
|
|
5063
5320
|
return buffer;
|
|
5064
5321
|
}
|
|
5065
5322
|
};
|
|
5066
|
-
YGOProMsgSortCard
|
|
5323
|
+
__name(_YGOProMsgSortCard, "YGOProMsgSortCard");
|
|
5324
|
+
_YGOProMsgSortCard.identifier = OcgcoreCommonConstants.MSG_SORT_CARD;
|
|
5067
5325
|
__decorateClass([
|
|
5068
5326
|
BinaryField("u8", 0)
|
|
5069
|
-
],
|
|
5327
|
+
], _YGOProMsgSortCard.prototype, "player", 2);
|
|
5070
5328
|
__decorateClass([
|
|
5071
5329
|
BinaryField("u8", 1)
|
|
5072
|
-
],
|
|
5330
|
+
], _YGOProMsgSortCard.prototype, "count", 2);
|
|
5073
5331
|
__decorateClass([
|
|
5074
5332
|
BinaryField(() => YGOProMsgSortCard_CardInfo, 2, (obj) => obj.count)
|
|
5075
|
-
],
|
|
5333
|
+
], _YGOProMsgSortCard.prototype, "cards", 2);
|
|
5334
|
+
var YGOProMsgSortCard = _YGOProMsgSortCard;
|
|
5076
5335
|
|
|
5077
5336
|
// src/protos/msg/proto/spsummoned.ts
|
|
5078
|
-
var
|
|
5337
|
+
var _YGOProMsgSpSummoned = class _YGOProMsgSpSummoned extends YGOProMsgBase {
|
|
5079
5338
|
};
|
|
5080
|
-
YGOProMsgSpSummoned
|
|
5339
|
+
__name(_YGOProMsgSpSummoned, "YGOProMsgSpSummoned");
|
|
5340
|
+
_YGOProMsgSpSummoned.identifier = OcgcoreCommonConstants.MSG_SPSUMMONED;
|
|
5341
|
+
var YGOProMsgSpSummoned = _YGOProMsgSpSummoned;
|
|
5081
5342
|
|
|
5082
5343
|
// src/protos/msg/proto/spsummoning.ts
|
|
5083
|
-
var
|
|
5344
|
+
var _YGOProMsgSpSummoning = class _YGOProMsgSpSummoning extends YGOProMsgBase {
|
|
5084
5345
|
opponentView() {
|
|
5085
5346
|
const view = this.copy();
|
|
5086
5347
|
if (view.position & OcgcoreCommonConstants.POS_FACEDOWN) {
|
|
@@ -5101,33 +5362,37 @@ var YGOProMsgSpSummoning = class extends YGOProMsgBase {
|
|
|
5101
5362
|
return this.opponentView();
|
|
5102
5363
|
}
|
|
5103
5364
|
};
|
|
5104
|
-
YGOProMsgSpSummoning
|
|
5365
|
+
__name(_YGOProMsgSpSummoning, "YGOProMsgSpSummoning");
|
|
5366
|
+
_YGOProMsgSpSummoning.identifier = OcgcoreCommonConstants.MSG_SPSUMMONING;
|
|
5105
5367
|
__decorateClass([
|
|
5106
5368
|
BinaryField("i32", 0)
|
|
5107
|
-
],
|
|
5369
|
+
], _YGOProMsgSpSummoning.prototype, "code", 2);
|
|
5108
5370
|
__decorateClass([
|
|
5109
5371
|
BinaryField("u8", 4)
|
|
5110
|
-
],
|
|
5372
|
+
], _YGOProMsgSpSummoning.prototype, "controller", 2);
|
|
5111
5373
|
__decorateClass([
|
|
5112
5374
|
BinaryField("u8", 5)
|
|
5113
|
-
],
|
|
5375
|
+
], _YGOProMsgSpSummoning.prototype, "location", 2);
|
|
5114
5376
|
__decorateClass([
|
|
5115
5377
|
BinaryField("u8", 6)
|
|
5116
|
-
],
|
|
5378
|
+
], _YGOProMsgSpSummoning.prototype, "sequence", 2);
|
|
5117
5379
|
__decorateClass([
|
|
5118
5380
|
BinaryField("u8", 7)
|
|
5119
|
-
],
|
|
5381
|
+
], _YGOProMsgSpSummoning.prototype, "position", 2);
|
|
5382
|
+
var YGOProMsgSpSummoning = _YGOProMsgSpSummoning;
|
|
5120
5383
|
|
|
5121
5384
|
// src/protos/msg/proto/start.ts
|
|
5122
|
-
var
|
|
5385
|
+
var _YGOProMsgStart_PlayerInfo = class _YGOProMsgStart_PlayerInfo {
|
|
5123
5386
|
};
|
|
5387
|
+
__name(_YGOProMsgStart_PlayerInfo, "YGOProMsgStart_PlayerInfo");
|
|
5124
5388
|
__decorateClass([
|
|
5125
5389
|
BinaryField("u16", 0)
|
|
5126
|
-
],
|
|
5390
|
+
], _YGOProMsgStart_PlayerInfo.prototype, "deckCount", 2);
|
|
5127
5391
|
__decorateClass([
|
|
5128
5392
|
BinaryField("u16", 2)
|
|
5129
|
-
],
|
|
5130
|
-
var
|
|
5393
|
+
], _YGOProMsgStart_PlayerInfo.prototype, "extraCount", 2);
|
|
5394
|
+
var YGOProMsgStart_PlayerInfo = _YGOProMsgStart_PlayerInfo;
|
|
5395
|
+
var _YGOProMsgStart = class _YGOProMsgStart extends YGOProMsgBase {
|
|
5131
5396
|
/**
|
|
5132
5397
|
* Get/Set player number (low 4 bits, 0-3)
|
|
5133
5398
|
*/
|
|
@@ -5147,86 +5412,98 @@ var YGOProMsgStart = class extends YGOProMsgBase {
|
|
|
5147
5412
|
this.playerType = this.playerType & 15 | value & 240;
|
|
5148
5413
|
}
|
|
5149
5414
|
};
|
|
5150
|
-
YGOProMsgStart
|
|
5415
|
+
__name(_YGOProMsgStart, "YGOProMsgStart");
|
|
5416
|
+
_YGOProMsgStart.identifier = 4;
|
|
5151
5417
|
__decorateClass([
|
|
5152
5418
|
BinaryField("u8", 0)
|
|
5153
|
-
],
|
|
5419
|
+
], _YGOProMsgStart.prototype, "playerType", 2);
|
|
5154
5420
|
__decorateClass([
|
|
5155
5421
|
BinaryField("u8", 1)
|
|
5156
|
-
],
|
|
5422
|
+
], _YGOProMsgStart.prototype, "duelRule", 2);
|
|
5157
5423
|
__decorateClass([
|
|
5158
5424
|
BinaryField("i32", 2)
|
|
5159
|
-
],
|
|
5425
|
+
], _YGOProMsgStart.prototype, "startLp0", 2);
|
|
5160
5426
|
__decorateClass([
|
|
5161
5427
|
BinaryField("i32", 6)
|
|
5162
|
-
],
|
|
5428
|
+
], _YGOProMsgStart.prototype, "startLp1", 2);
|
|
5163
5429
|
__decorateClass([
|
|
5164
5430
|
BinaryField(() => YGOProMsgStart_PlayerInfo, 10)
|
|
5165
|
-
],
|
|
5431
|
+
], _YGOProMsgStart.prototype, "player0", 2);
|
|
5166
5432
|
__decorateClass([
|
|
5167
5433
|
BinaryField(() => YGOProMsgStart_PlayerInfo, 14)
|
|
5168
|
-
],
|
|
5434
|
+
], _YGOProMsgStart.prototype, "player1", 2);
|
|
5435
|
+
var YGOProMsgStart = _YGOProMsgStart;
|
|
5169
5436
|
|
|
5170
5437
|
// src/protos/msg/proto/summoned.ts
|
|
5171
|
-
var
|
|
5438
|
+
var _YGOProMsgSummoned = class _YGOProMsgSummoned extends YGOProMsgBase {
|
|
5172
5439
|
};
|
|
5173
|
-
YGOProMsgSummoned
|
|
5440
|
+
__name(_YGOProMsgSummoned, "YGOProMsgSummoned");
|
|
5441
|
+
_YGOProMsgSummoned.identifier = OcgcoreCommonConstants.MSG_SUMMONED;
|
|
5442
|
+
var YGOProMsgSummoned = _YGOProMsgSummoned;
|
|
5174
5443
|
|
|
5175
5444
|
// src/protos/msg/proto/summoning.ts
|
|
5176
|
-
var
|
|
5445
|
+
var _YGOProMsgSummoning = class _YGOProMsgSummoning extends YGOProMsgBase {
|
|
5177
5446
|
};
|
|
5178
|
-
YGOProMsgSummoning
|
|
5447
|
+
__name(_YGOProMsgSummoning, "YGOProMsgSummoning");
|
|
5448
|
+
_YGOProMsgSummoning.identifier = OcgcoreCommonConstants.MSG_SUMMONING;
|
|
5179
5449
|
__decorateClass([
|
|
5180
5450
|
BinaryField("i32", 0)
|
|
5181
|
-
],
|
|
5451
|
+
], _YGOProMsgSummoning.prototype, "code", 2);
|
|
5182
5452
|
__decorateClass([
|
|
5183
5453
|
BinaryField("u8", 4)
|
|
5184
|
-
],
|
|
5454
|
+
], _YGOProMsgSummoning.prototype, "controller", 2);
|
|
5185
5455
|
__decorateClass([
|
|
5186
5456
|
BinaryField("u8", 5)
|
|
5187
|
-
],
|
|
5457
|
+
], _YGOProMsgSummoning.prototype, "location", 2);
|
|
5188
5458
|
__decorateClass([
|
|
5189
5459
|
BinaryField("u8", 6)
|
|
5190
|
-
],
|
|
5460
|
+
], _YGOProMsgSummoning.prototype, "sequence", 2);
|
|
5191
5461
|
__decorateClass([
|
|
5192
5462
|
BinaryField("u8", 7)
|
|
5193
|
-
],
|
|
5463
|
+
], _YGOProMsgSummoning.prototype, "position", 2);
|
|
5464
|
+
var YGOProMsgSummoning = _YGOProMsgSummoning;
|
|
5194
5465
|
|
|
5195
5466
|
// src/protos/msg/proto/swap.ts
|
|
5196
|
-
var
|
|
5467
|
+
var _YGOProMsgSwap_CardLocation = class _YGOProMsgSwap_CardLocation {
|
|
5197
5468
|
};
|
|
5469
|
+
__name(_YGOProMsgSwap_CardLocation, "YGOProMsgSwap_CardLocation");
|
|
5198
5470
|
__decorateClass([
|
|
5199
5471
|
BinaryField("u8", 0)
|
|
5200
|
-
],
|
|
5472
|
+
], _YGOProMsgSwap_CardLocation.prototype, "controller", 2);
|
|
5201
5473
|
__decorateClass([
|
|
5202
5474
|
BinaryField("u8", 1)
|
|
5203
|
-
],
|
|
5475
|
+
], _YGOProMsgSwap_CardLocation.prototype, "location", 2);
|
|
5204
5476
|
__decorateClass([
|
|
5205
5477
|
BinaryField("u8", 2)
|
|
5206
|
-
],
|
|
5478
|
+
], _YGOProMsgSwap_CardLocation.prototype, "sequence", 2);
|
|
5207
5479
|
__decorateClass([
|
|
5208
5480
|
BinaryField("u8", 3)
|
|
5209
|
-
],
|
|
5210
|
-
var
|
|
5481
|
+
], _YGOProMsgSwap_CardLocation.prototype, "position", 2);
|
|
5482
|
+
var YGOProMsgSwap_CardLocation = _YGOProMsgSwap_CardLocation;
|
|
5483
|
+
var _YGOProMsgSwap = class _YGOProMsgSwap extends YGOProMsgBase {
|
|
5211
5484
|
};
|
|
5212
|
-
YGOProMsgSwap
|
|
5485
|
+
__name(_YGOProMsgSwap, "YGOProMsgSwap");
|
|
5486
|
+
_YGOProMsgSwap.identifier = OcgcoreCommonConstants.MSG_SWAP;
|
|
5213
5487
|
__decorateClass([
|
|
5214
5488
|
BinaryField(() => YGOProMsgSwap_CardLocation, 0)
|
|
5215
|
-
],
|
|
5489
|
+
], _YGOProMsgSwap.prototype, "card1", 2);
|
|
5216
5490
|
__decorateClass([
|
|
5217
5491
|
BinaryField(() => YGOProMsgSwap_CardLocation, 4)
|
|
5218
|
-
],
|
|
5492
|
+
], _YGOProMsgSwap.prototype, "card2", 2);
|
|
5493
|
+
var YGOProMsgSwap = _YGOProMsgSwap;
|
|
5219
5494
|
|
|
5220
5495
|
// src/protos/msg/proto/swap-grave-deck.ts
|
|
5221
|
-
var
|
|
5496
|
+
var _YGOProMsgSwapGraveDeck = class _YGOProMsgSwapGraveDeck extends YGOProMsgBase {
|
|
5222
5497
|
};
|
|
5223
|
-
YGOProMsgSwapGraveDeck
|
|
5498
|
+
__name(_YGOProMsgSwapGraveDeck, "YGOProMsgSwapGraveDeck");
|
|
5499
|
+
_YGOProMsgSwapGraveDeck.identifier = OcgcoreCommonConstants.MSG_SWAP_GRAVE_DECK;
|
|
5224
5500
|
__decorateClass([
|
|
5225
5501
|
BinaryField("u8", 0)
|
|
5226
|
-
],
|
|
5502
|
+
], _YGOProMsgSwapGraveDeck.prototype, "player", 2);
|
|
5503
|
+
var YGOProMsgSwapGraveDeck = _YGOProMsgSwapGraveDeck;
|
|
5227
5504
|
|
|
5228
5505
|
// src/protos/msg/proto/tag-swap.ts
|
|
5229
|
-
var
|
|
5506
|
+
var _YGOProMsgTagSwap = class _YGOProMsgTagSwap extends YGOProMsgBase {
|
|
5230
5507
|
// 对方和队友视角需要隐藏手牌和额外卡组信息
|
|
5231
5508
|
opponentView() {
|
|
5232
5509
|
const view = this.copy();
|
|
@@ -5243,62 +5520,68 @@ var YGOProMsgTagSwap = class extends YGOProMsgBase {
|
|
|
5243
5520
|
return this.opponentView();
|
|
5244
5521
|
}
|
|
5245
5522
|
};
|
|
5246
|
-
YGOProMsgTagSwap
|
|
5523
|
+
__name(_YGOProMsgTagSwap, "YGOProMsgTagSwap");
|
|
5524
|
+
_YGOProMsgTagSwap.identifier = OcgcoreCommonConstants.MSG_TAG_SWAP;
|
|
5247
5525
|
__decorateClass([
|
|
5248
5526
|
BinaryField("u8", 0)
|
|
5249
|
-
],
|
|
5527
|
+
], _YGOProMsgTagSwap.prototype, "player", 2);
|
|
5250
5528
|
__decorateClass([
|
|
5251
5529
|
BinaryField("u8", 1)
|
|
5252
|
-
],
|
|
5530
|
+
], _YGOProMsgTagSwap.prototype, "mzoneCount", 2);
|
|
5253
5531
|
__decorateClass([
|
|
5254
5532
|
BinaryField("u8", 2)
|
|
5255
|
-
],
|
|
5533
|
+
], _YGOProMsgTagSwap.prototype, "extraCount", 2);
|
|
5256
5534
|
__decorateClass([
|
|
5257
5535
|
BinaryField("u8", 3)
|
|
5258
|
-
],
|
|
5536
|
+
], _YGOProMsgTagSwap.prototype, "pzoneCount", 2);
|
|
5259
5537
|
__decorateClass([
|
|
5260
5538
|
BinaryField("u8", 4)
|
|
5261
|
-
],
|
|
5539
|
+
], _YGOProMsgTagSwap.prototype, "handCount", 2);
|
|
5262
5540
|
__decorateClass([
|
|
5263
5541
|
BinaryField("i32", 5, (obj) => obj.handCount)
|
|
5264
|
-
],
|
|
5542
|
+
], _YGOProMsgTagSwap.prototype, "handCards", 2);
|
|
5265
5543
|
__decorateClass([
|
|
5266
5544
|
BinaryField("i32", (obj) => 5 + obj.handCount * 4, (obj) => obj.extraCount)
|
|
5267
|
-
],
|
|
5545
|
+
], _YGOProMsgTagSwap.prototype, "extraCards", 2);
|
|
5268
5546
|
__decorateClass([
|
|
5269
5547
|
BinaryField("u32", (obj) => 5 + obj.handCount * 4 + obj.extraCount * 4)
|
|
5270
|
-
],
|
|
5548
|
+
], _YGOProMsgTagSwap.prototype, "mzoneFlags", 2);
|
|
5549
|
+
var YGOProMsgTagSwap = _YGOProMsgTagSwap;
|
|
5271
5550
|
|
|
5272
5551
|
// src/protos/msg/proto/toss-coin.ts
|
|
5273
|
-
var
|
|
5552
|
+
var _YGOProMsgTossCoin = class _YGOProMsgTossCoin extends YGOProMsgBase {
|
|
5274
5553
|
};
|
|
5275
|
-
YGOProMsgTossCoin
|
|
5554
|
+
__name(_YGOProMsgTossCoin, "YGOProMsgTossCoin");
|
|
5555
|
+
_YGOProMsgTossCoin.identifier = OcgcoreCommonConstants.MSG_TOSS_COIN;
|
|
5276
5556
|
__decorateClass([
|
|
5277
5557
|
BinaryField("u8", 0)
|
|
5278
|
-
],
|
|
5558
|
+
], _YGOProMsgTossCoin.prototype, "player", 2);
|
|
5279
5559
|
__decorateClass([
|
|
5280
5560
|
BinaryField("u8", 1)
|
|
5281
|
-
],
|
|
5561
|
+
], _YGOProMsgTossCoin.prototype, "count", 2);
|
|
5282
5562
|
__decorateClass([
|
|
5283
5563
|
BinaryField("u8", 2, (obj) => obj.count)
|
|
5284
|
-
],
|
|
5564
|
+
], _YGOProMsgTossCoin.prototype, "results", 2);
|
|
5565
|
+
var YGOProMsgTossCoin = _YGOProMsgTossCoin;
|
|
5285
5566
|
|
|
5286
5567
|
// src/protos/msg/proto/toss-dice.ts
|
|
5287
|
-
var
|
|
5568
|
+
var _YGOProMsgTossDice = class _YGOProMsgTossDice extends YGOProMsgBase {
|
|
5288
5569
|
};
|
|
5289
|
-
YGOProMsgTossDice
|
|
5570
|
+
__name(_YGOProMsgTossDice, "YGOProMsgTossDice");
|
|
5571
|
+
_YGOProMsgTossDice.identifier = OcgcoreCommonConstants.MSG_TOSS_DICE;
|
|
5290
5572
|
__decorateClass([
|
|
5291
5573
|
BinaryField("u8", 0)
|
|
5292
|
-
],
|
|
5574
|
+
], _YGOProMsgTossDice.prototype, "player", 2);
|
|
5293
5575
|
__decorateClass([
|
|
5294
5576
|
BinaryField("u8", 1)
|
|
5295
|
-
],
|
|
5577
|
+
], _YGOProMsgTossDice.prototype, "count", 2);
|
|
5296
5578
|
__decorateClass([
|
|
5297
5579
|
BinaryField("u8", 2, (obj) => obj.count)
|
|
5298
|
-
],
|
|
5580
|
+
], _YGOProMsgTossDice.prototype, "results", 2);
|
|
5581
|
+
var YGOProMsgTossDice = _YGOProMsgTossDice;
|
|
5299
5582
|
|
|
5300
5583
|
// src/protos/msg/proto/update-card.ts
|
|
5301
|
-
var
|
|
5584
|
+
var _YGOProMsgUpdateCard = class _YGOProMsgUpdateCard extends YGOProMsgBase {
|
|
5302
5585
|
opponentView() {
|
|
5303
5586
|
const copy = this.copy();
|
|
5304
5587
|
if (copy.card?.position && copy.card.position & OcgcoreCommonConstants.POS_FACEDOWN) {
|
|
@@ -5374,10 +5657,12 @@ var YGOProMsgUpdateCard = class extends YGOProMsgBase {
|
|
|
5374
5657
|
return [];
|
|
5375
5658
|
}
|
|
5376
5659
|
};
|
|
5377
|
-
YGOProMsgUpdateCard
|
|
5660
|
+
__name(_YGOProMsgUpdateCard, "YGOProMsgUpdateCard");
|
|
5661
|
+
_YGOProMsgUpdateCard.identifier = OcgcoreCommonConstants.MSG_UPDATE_CARD;
|
|
5662
|
+
var YGOProMsgUpdateCard = _YGOProMsgUpdateCard;
|
|
5378
5663
|
|
|
5379
5664
|
// src/protos/msg/proto/update-data.ts
|
|
5380
|
-
var
|
|
5665
|
+
var _YGOProMsgUpdateData = class _YGOProMsgUpdateData extends YGOProMsgBase {
|
|
5381
5666
|
opponentView() {
|
|
5382
5667
|
const copy = this.copy();
|
|
5383
5668
|
if (copy.cards) {
|
|
@@ -5480,27 +5765,33 @@ var YGOProMsgUpdateData = class extends YGOProMsgBase {
|
|
|
5480
5765
|
return [this.player, 1 - this.player, 7 /* OBSERVER */];
|
|
5481
5766
|
}
|
|
5482
5767
|
};
|
|
5483
|
-
YGOProMsgUpdateData
|
|
5768
|
+
__name(_YGOProMsgUpdateData, "YGOProMsgUpdateData");
|
|
5769
|
+
_YGOProMsgUpdateData.identifier = 6;
|
|
5770
|
+
var YGOProMsgUpdateData = _YGOProMsgUpdateData;
|
|
5484
5771
|
|
|
5485
5772
|
// src/protos/msg/proto/waiting.ts
|
|
5486
|
-
var
|
|
5773
|
+
var _YGOProMsgWaiting = class _YGOProMsgWaiting extends YGOProMsgBase {
|
|
5487
5774
|
// MSG_WAITING
|
|
5488
5775
|
getSendTargets() {
|
|
5489
5776
|
return [];
|
|
5490
5777
|
}
|
|
5491
5778
|
};
|
|
5492
|
-
YGOProMsgWaiting
|
|
5779
|
+
__name(_YGOProMsgWaiting, "YGOProMsgWaiting");
|
|
5780
|
+
_YGOProMsgWaiting.identifier = 3;
|
|
5781
|
+
var YGOProMsgWaiting = _YGOProMsgWaiting;
|
|
5493
5782
|
|
|
5494
5783
|
// src/protos/msg/proto/win.ts
|
|
5495
|
-
var
|
|
5784
|
+
var _YGOProMsgWin = class _YGOProMsgWin extends YGOProMsgBase {
|
|
5496
5785
|
};
|
|
5497
|
-
YGOProMsgWin
|
|
5786
|
+
__name(_YGOProMsgWin, "YGOProMsgWin");
|
|
5787
|
+
_YGOProMsgWin.identifier = OcgcoreCommonConstants.MSG_WIN;
|
|
5498
5788
|
__decorateClass([
|
|
5499
5789
|
BinaryField("u8", 0)
|
|
5500
|
-
],
|
|
5790
|
+
], _YGOProMsgWin.prototype, "player", 2);
|
|
5501
5791
|
__decorateClass([
|
|
5502
5792
|
BinaryField("u8", 1)
|
|
5503
|
-
],
|
|
5793
|
+
], _YGOProMsgWin.prototype, "type", 2);
|
|
5794
|
+
var YGOProMsgWin = _YGOProMsgWin;
|
|
5504
5795
|
|
|
5505
5796
|
// src/protos/msg/registry.ts
|
|
5506
5797
|
var YGOProMessages = new RegistryBase(YGOProMsgBase);
|
|
@@ -5590,7 +5881,7 @@ YGOProMessages.register(YGOProMsgUpdateData);
|
|
|
5590
5881
|
YGOProMessages.register(YGOProMsgReloadField);
|
|
5591
5882
|
|
|
5592
5883
|
// src/protos/stoc/proto/game-msg.ts
|
|
5593
|
-
var
|
|
5884
|
+
var _YGOProStocGameMsg = class _YGOProStocGameMsg extends YGOProStocBase {
|
|
5594
5885
|
fromPayload(data) {
|
|
5595
5886
|
this.msg = YGOProMessages.getInstanceFromPayload(data);
|
|
5596
5887
|
return this;
|
|
@@ -5608,95 +5899,119 @@ var YGOProStocGameMsg = class extends YGOProStocBase {
|
|
|
5608
5899
|
return this;
|
|
5609
5900
|
}
|
|
5610
5901
|
};
|
|
5611
|
-
YGOProStocGameMsg
|
|
5902
|
+
__name(_YGOProStocGameMsg, "YGOProStocGameMsg");
|
|
5903
|
+
_YGOProStocGameMsg.identifier = 1;
|
|
5904
|
+
var YGOProStocGameMsg = _YGOProStocGameMsg;
|
|
5612
5905
|
|
|
5613
5906
|
// src/protos/stoc/proto/error-msg.ts
|
|
5614
|
-
var
|
|
5907
|
+
var _YGOProStocErrorMsg = class _YGOProStocErrorMsg extends YGOProStocBase {
|
|
5615
5908
|
};
|
|
5616
|
-
YGOProStocErrorMsg
|
|
5909
|
+
__name(_YGOProStocErrorMsg, "YGOProStocErrorMsg");
|
|
5910
|
+
_YGOProStocErrorMsg.identifier = 2;
|
|
5617
5911
|
__decorateClass([
|
|
5618
5912
|
BinaryField("u8", 0)
|
|
5619
|
-
],
|
|
5913
|
+
], _YGOProStocErrorMsg.prototype, "msg", 2);
|
|
5620
5914
|
__decorateClass([
|
|
5621
5915
|
BinaryField("u32", 4)
|
|
5622
|
-
],
|
|
5916
|
+
], _YGOProStocErrorMsg.prototype, "code", 2);
|
|
5917
|
+
var YGOProStocErrorMsg = _YGOProStocErrorMsg;
|
|
5623
5918
|
|
|
5624
5919
|
// src/protos/stoc/proto/select-hand.ts
|
|
5625
|
-
var
|
|
5920
|
+
var _YGOProStocSelectHand = class _YGOProStocSelectHand extends YGOProStocBase {
|
|
5626
5921
|
};
|
|
5627
|
-
YGOProStocSelectHand
|
|
5922
|
+
__name(_YGOProStocSelectHand, "YGOProStocSelectHand");
|
|
5923
|
+
_YGOProStocSelectHand.identifier = 3;
|
|
5924
|
+
var YGOProStocSelectHand = _YGOProStocSelectHand;
|
|
5628
5925
|
|
|
5629
5926
|
// src/protos/stoc/proto/select-tp.ts
|
|
5630
|
-
var
|
|
5927
|
+
var _YGOProStocSelectTp = class _YGOProStocSelectTp extends YGOProStocBase {
|
|
5631
5928
|
};
|
|
5632
|
-
YGOProStocSelectTp
|
|
5929
|
+
__name(_YGOProStocSelectTp, "YGOProStocSelectTp");
|
|
5930
|
+
_YGOProStocSelectTp.identifier = 4;
|
|
5931
|
+
var YGOProStocSelectTp = _YGOProStocSelectTp;
|
|
5633
5932
|
|
|
5634
5933
|
// src/protos/stoc/proto/hand-result.ts
|
|
5635
|
-
var
|
|
5934
|
+
var _YGOProStocHandResult = class _YGOProStocHandResult extends YGOProStocBase {
|
|
5636
5935
|
};
|
|
5637
|
-
YGOProStocHandResult
|
|
5936
|
+
__name(_YGOProStocHandResult, "YGOProStocHandResult");
|
|
5937
|
+
_YGOProStocHandResult.identifier = 5;
|
|
5638
5938
|
__decorateClass([
|
|
5639
5939
|
BinaryField("u8", 0)
|
|
5640
|
-
],
|
|
5940
|
+
], _YGOProStocHandResult.prototype, "res1", 2);
|
|
5641
5941
|
__decorateClass([
|
|
5642
5942
|
BinaryField("u8", 1)
|
|
5643
|
-
],
|
|
5943
|
+
], _YGOProStocHandResult.prototype, "res2", 2);
|
|
5944
|
+
var YGOProStocHandResult = _YGOProStocHandResult;
|
|
5644
5945
|
|
|
5645
5946
|
// src/protos/stoc/proto/tp-result.ts
|
|
5646
|
-
var
|
|
5947
|
+
var _YGOProStocTpResult = class _YGOProStocTpResult extends YGOProStocBase {
|
|
5647
5948
|
};
|
|
5648
|
-
YGOProStocTpResult
|
|
5949
|
+
__name(_YGOProStocTpResult, "YGOProStocTpResult");
|
|
5950
|
+
_YGOProStocTpResult.identifier = 6;
|
|
5951
|
+
var YGOProStocTpResult = _YGOProStocTpResult;
|
|
5649
5952
|
|
|
5650
5953
|
// src/protos/stoc/proto/change-side.ts
|
|
5651
|
-
var
|
|
5954
|
+
var _YGOProStocChangeSide = class _YGOProStocChangeSide extends YGOProStocBase {
|
|
5652
5955
|
};
|
|
5653
|
-
YGOProStocChangeSide
|
|
5956
|
+
__name(_YGOProStocChangeSide, "YGOProStocChangeSide");
|
|
5957
|
+
_YGOProStocChangeSide.identifier = 7;
|
|
5958
|
+
var YGOProStocChangeSide = _YGOProStocChangeSide;
|
|
5654
5959
|
|
|
5655
5960
|
// src/protos/stoc/proto/waiting-side.ts
|
|
5656
|
-
var
|
|
5961
|
+
var _YGOProStocWaitingSide = class _YGOProStocWaitingSide extends YGOProStocBase {
|
|
5657
5962
|
};
|
|
5658
|
-
YGOProStocWaitingSide
|
|
5963
|
+
__name(_YGOProStocWaitingSide, "YGOProStocWaitingSide");
|
|
5964
|
+
_YGOProStocWaitingSide.identifier = 8;
|
|
5965
|
+
var YGOProStocWaitingSide = _YGOProStocWaitingSide;
|
|
5659
5966
|
|
|
5660
5967
|
// src/protos/stoc/proto/deck-count.ts
|
|
5661
|
-
var
|
|
5968
|
+
var _YGOProStocDeckCount_DeckInfo = class _YGOProStocDeckCount_DeckInfo {
|
|
5662
5969
|
};
|
|
5970
|
+
__name(_YGOProStocDeckCount_DeckInfo, "YGOProStocDeckCount_DeckInfo");
|
|
5663
5971
|
__decorateClass([
|
|
5664
5972
|
BinaryField("i16", 0)
|
|
5665
|
-
],
|
|
5973
|
+
], _YGOProStocDeckCount_DeckInfo.prototype, "main", 2);
|
|
5666
5974
|
__decorateClass([
|
|
5667
5975
|
BinaryField("i16", 2)
|
|
5668
|
-
],
|
|
5976
|
+
], _YGOProStocDeckCount_DeckInfo.prototype, "extra", 2);
|
|
5669
5977
|
__decorateClass([
|
|
5670
5978
|
BinaryField("i16", 4)
|
|
5671
|
-
],
|
|
5672
|
-
var
|
|
5979
|
+
], _YGOProStocDeckCount_DeckInfo.prototype, "side", 2);
|
|
5980
|
+
var YGOProStocDeckCount_DeckInfo = _YGOProStocDeckCount_DeckInfo;
|
|
5981
|
+
var _YGOProStocDeckCount = class _YGOProStocDeckCount extends YGOProStocBase {
|
|
5673
5982
|
};
|
|
5674
|
-
YGOProStocDeckCount
|
|
5983
|
+
__name(_YGOProStocDeckCount, "YGOProStocDeckCount");
|
|
5984
|
+
_YGOProStocDeckCount.identifier = 9;
|
|
5675
5985
|
__decorateClass([
|
|
5676
5986
|
BinaryField(() => YGOProStocDeckCount_DeckInfo, 0)
|
|
5677
|
-
],
|
|
5987
|
+
], _YGOProStocDeckCount.prototype, "player0DeckCount", 2);
|
|
5678
5988
|
__decorateClass([
|
|
5679
5989
|
BinaryField(() => YGOProStocDeckCount_DeckInfo, 6)
|
|
5680
|
-
],
|
|
5990
|
+
], _YGOProStocDeckCount.prototype, "player1DeckCount", 2);
|
|
5991
|
+
var YGOProStocDeckCount = _YGOProStocDeckCount;
|
|
5681
5992
|
|
|
5682
5993
|
// src/protos/stoc/proto/create-game.ts
|
|
5683
|
-
var
|
|
5994
|
+
var _YGOProStocCreateGame = class _YGOProStocCreateGame extends YGOProStocBase {
|
|
5684
5995
|
};
|
|
5685
|
-
YGOProStocCreateGame
|
|
5996
|
+
__name(_YGOProStocCreateGame, "YGOProStocCreateGame");
|
|
5997
|
+
_YGOProStocCreateGame.identifier = 17;
|
|
5686
5998
|
__decorateClass([
|
|
5687
5999
|
BinaryField("u32", 0)
|
|
5688
|
-
],
|
|
6000
|
+
], _YGOProStocCreateGame.prototype, "gameid", 2);
|
|
6001
|
+
var YGOProStocCreateGame = _YGOProStocCreateGame;
|
|
5689
6002
|
|
|
5690
6003
|
// src/protos/stoc/proto/join-game.ts
|
|
5691
|
-
var
|
|
6004
|
+
var _YGOProStocJoinGame = class _YGOProStocJoinGame extends YGOProStocBase {
|
|
5692
6005
|
};
|
|
5693
|
-
YGOProStocJoinGame
|
|
6006
|
+
__name(_YGOProStocJoinGame, "YGOProStocJoinGame");
|
|
6007
|
+
_YGOProStocJoinGame.identifier = 18;
|
|
5694
6008
|
__decorateClass([
|
|
5695
6009
|
BinaryField(() => HostInfo, 0)
|
|
5696
|
-
],
|
|
6010
|
+
], _YGOProStocJoinGame.prototype, "info", 2);
|
|
6011
|
+
var YGOProStocJoinGame = _YGOProStocJoinGame;
|
|
5697
6012
|
|
|
5698
6013
|
// src/protos/stoc/proto/type-change.ts
|
|
5699
|
-
var
|
|
6014
|
+
var _YGOProStocTypeChange = class _YGOProStocTypeChange extends YGOProStocBase {
|
|
5700
6015
|
/**
|
|
5701
6016
|
* Get/Set player position (low 4 bits, 0-7)
|
|
5702
6017
|
*/
|
|
@@ -5721,32 +6036,40 @@ var YGOProStocTypeChange = class extends YGOProStocBase {
|
|
|
5721
6036
|
}
|
|
5722
6037
|
}
|
|
5723
6038
|
};
|
|
5724
|
-
YGOProStocTypeChange
|
|
6039
|
+
__name(_YGOProStocTypeChange, "YGOProStocTypeChange");
|
|
6040
|
+
_YGOProStocTypeChange.identifier = 19;
|
|
5725
6041
|
__decorateClass([
|
|
5726
6042
|
BinaryField("u8", 0)
|
|
5727
|
-
],
|
|
6043
|
+
], _YGOProStocTypeChange.prototype, "type", 2);
|
|
6044
|
+
var YGOProStocTypeChange = _YGOProStocTypeChange;
|
|
5728
6045
|
|
|
5729
6046
|
// src/protos/stoc/proto/leave-game.ts
|
|
5730
|
-
var
|
|
6047
|
+
var _YGOProStocLeaveGame = class _YGOProStocLeaveGame extends YGOProStocBase {
|
|
5731
6048
|
};
|
|
5732
|
-
YGOProStocLeaveGame
|
|
6049
|
+
__name(_YGOProStocLeaveGame, "YGOProStocLeaveGame");
|
|
6050
|
+
_YGOProStocLeaveGame.identifier = 20;
|
|
5733
6051
|
__decorateClass([
|
|
5734
6052
|
BinaryField("u8", 0)
|
|
5735
|
-
],
|
|
6053
|
+
], _YGOProStocLeaveGame.prototype, "pos", 2);
|
|
6054
|
+
var YGOProStocLeaveGame = _YGOProStocLeaveGame;
|
|
5736
6055
|
|
|
5737
6056
|
// src/protos/stoc/proto/duel-start.ts
|
|
5738
|
-
var
|
|
6057
|
+
var _YGOProStocDuelStart = class _YGOProStocDuelStart extends YGOProStocBase {
|
|
5739
6058
|
};
|
|
5740
|
-
YGOProStocDuelStart
|
|
6059
|
+
__name(_YGOProStocDuelStart, "YGOProStocDuelStart");
|
|
6060
|
+
_YGOProStocDuelStart.identifier = 21;
|
|
6061
|
+
var YGOProStocDuelStart = _YGOProStocDuelStart;
|
|
5741
6062
|
|
|
5742
6063
|
// src/protos/stoc/proto/duel-end.ts
|
|
5743
|
-
var
|
|
6064
|
+
var _YGOProStocDuelEnd = class _YGOProStocDuelEnd extends YGOProStocBase {
|
|
5744
6065
|
};
|
|
5745
|
-
YGOProStocDuelEnd
|
|
6066
|
+
__name(_YGOProStocDuelEnd, "YGOProStocDuelEnd");
|
|
6067
|
+
_YGOProStocDuelEnd.identifier = 22;
|
|
6068
|
+
var YGOProStocDuelEnd = _YGOProStocDuelEnd;
|
|
5746
6069
|
|
|
5747
6070
|
// src/protos/stoc/proto/replay.ts
|
|
5748
6071
|
var import_ygopro_yrp_encode = require("ygopro-yrp-encode");
|
|
5749
|
-
var
|
|
6072
|
+
var _YGOProStocReplay = class _YGOProStocReplay extends YGOProStocBase {
|
|
5750
6073
|
constructor() {
|
|
5751
6074
|
super();
|
|
5752
6075
|
this.replay = new import_ygopro_yrp_encode.YGOProYrp();
|
|
@@ -5770,20 +6093,25 @@ var YGOProStocReplay = class extends YGOProStocBase {
|
|
|
5770
6093
|
return copied;
|
|
5771
6094
|
}
|
|
5772
6095
|
};
|
|
5773
|
-
YGOProStocReplay
|
|
6096
|
+
__name(_YGOProStocReplay, "YGOProStocReplay");
|
|
6097
|
+
_YGOProStocReplay.identifier = 23;
|
|
6098
|
+
var YGOProStocReplay = _YGOProStocReplay;
|
|
5774
6099
|
|
|
5775
6100
|
// src/protos/stoc/proto/time-limit.ts
|
|
5776
|
-
var
|
|
6101
|
+
var _YGOProStocTimeLimit = class _YGOProStocTimeLimit extends YGOProStocBase {
|
|
5777
6102
|
};
|
|
5778
|
-
YGOProStocTimeLimit
|
|
6103
|
+
__name(_YGOProStocTimeLimit, "YGOProStocTimeLimit");
|
|
6104
|
+
_YGOProStocTimeLimit.identifier = 24;
|
|
5779
6105
|
__decorateClass([
|
|
5780
6106
|
BinaryField("u8", 0)
|
|
5781
|
-
],
|
|
6107
|
+
], _YGOProStocTimeLimit.prototype, "player", 2);
|
|
5782
6108
|
__decorateClass([
|
|
5783
6109
|
BinaryField("u16", 2)
|
|
5784
|
-
],
|
|
6110
|
+
], _YGOProStocTimeLimit.prototype, "left_time", 2);
|
|
6111
|
+
var YGOProStocTimeLimit = _YGOProStocTimeLimit;
|
|
5785
6112
|
|
|
5786
6113
|
// src/protos/stoc/proto/chat.ts
|
|
6114
|
+
var STOC_CHAT_MAX_LENGTH = 256;
|
|
5787
6115
|
var _YGOProStocChat = class _YGOProStocChat extends YGOProStocBase {
|
|
5788
6116
|
constructor() {
|
|
5789
6117
|
super();
|
|
@@ -5804,7 +6132,7 @@ var _YGOProStocChat = class _YGOProStocChat extends YGOProStocBase {
|
|
|
5804
6132
|
return this;
|
|
5805
6133
|
}
|
|
5806
6134
|
toPayload() {
|
|
5807
|
-
const text = this.msg.length >
|
|
6135
|
+
const text = this.msg.length > STOC_CHAT_MAX_LENGTH ? this.msg.substring(0, STOC_CHAT_MAX_LENGTH) : this.msg;
|
|
5808
6136
|
const utf16 = new Uint16Array(text.length + 1);
|
|
5809
6137
|
for (let i = 0; i < text.length; i++) {
|
|
5810
6138
|
utf16[i] = text.charCodeAt(i);
|
|
@@ -5826,24 +6154,27 @@ var _YGOProStocChat = class _YGOProStocChat extends YGOProStocBase {
|
|
|
5826
6154
|
return this;
|
|
5827
6155
|
}
|
|
5828
6156
|
};
|
|
6157
|
+
__name(_YGOProStocChat, "YGOProStocChat");
|
|
5829
6158
|
_YGOProStocChat.identifier = 25;
|
|
5830
|
-
_YGOProStocChat.MAX_LENGTH =
|
|
6159
|
+
_YGOProStocChat.MAX_LENGTH = STOC_CHAT_MAX_LENGTH;
|
|
5831
6160
|
var YGOProStocChat = _YGOProStocChat;
|
|
5832
6161
|
|
|
5833
6162
|
// src/protos/stoc/proto/hs-player-enter.ts
|
|
5834
|
-
var
|
|
6163
|
+
var _YGOProStocHsPlayerEnter = class _YGOProStocHsPlayerEnter extends YGOProStocBase {
|
|
5835
6164
|
// 1 byte padding (note: actual size is 41 bytes, not 42 - workaround in original code)
|
|
5836
6165
|
};
|
|
5837
|
-
YGOProStocHsPlayerEnter
|
|
6166
|
+
__name(_YGOProStocHsPlayerEnter, "YGOProStocHsPlayerEnter");
|
|
6167
|
+
_YGOProStocHsPlayerEnter.identifier = 32;
|
|
5838
6168
|
__decorateClass([
|
|
5839
6169
|
BinaryField("utf16", 0, 20)
|
|
5840
|
-
],
|
|
6170
|
+
], _YGOProStocHsPlayerEnter.prototype, "name", 2);
|
|
5841
6171
|
__decorateClass([
|
|
5842
6172
|
BinaryField("u8", 40)
|
|
5843
|
-
],
|
|
6173
|
+
], _YGOProStocHsPlayerEnter.prototype, "pos", 2);
|
|
6174
|
+
var YGOProStocHsPlayerEnter = _YGOProStocHsPlayerEnter;
|
|
5844
6175
|
|
|
5845
6176
|
// src/protos/stoc/proto/hs-player-change.ts
|
|
5846
|
-
var
|
|
6177
|
+
var _YGOProStocHsPlayerChange = class _YGOProStocHsPlayerChange extends YGOProStocBase {
|
|
5847
6178
|
/**
|
|
5848
6179
|
* Get/Set player state (low 4 bits)
|
|
5849
6180
|
* Can be a PlayerChangeState enum value or a player position (0-7) for position changes
|
|
@@ -5864,71 +6195,83 @@ var YGOProStocHsPlayerChange = class extends YGOProStocBase {
|
|
|
5864
6195
|
this.status = this.status & 15 | (value & 15) << 4;
|
|
5865
6196
|
}
|
|
5866
6197
|
};
|
|
5867
|
-
YGOProStocHsPlayerChange
|
|
6198
|
+
__name(_YGOProStocHsPlayerChange, "YGOProStocHsPlayerChange");
|
|
6199
|
+
_YGOProStocHsPlayerChange.identifier = 33;
|
|
5868
6200
|
__decorateClass([
|
|
5869
6201
|
BinaryField("u8", 0)
|
|
5870
|
-
],
|
|
6202
|
+
], _YGOProStocHsPlayerChange.prototype, "status", 2);
|
|
6203
|
+
var YGOProStocHsPlayerChange = _YGOProStocHsPlayerChange;
|
|
5871
6204
|
|
|
5872
6205
|
// src/protos/stoc/proto/hs-watch-change.ts
|
|
5873
|
-
var
|
|
6206
|
+
var _YGOProStocHsWatchChange = class _YGOProStocHsWatchChange extends YGOProStocBase {
|
|
5874
6207
|
};
|
|
5875
|
-
YGOProStocHsWatchChange
|
|
6208
|
+
__name(_YGOProStocHsWatchChange, "YGOProStocHsWatchChange");
|
|
6209
|
+
_YGOProStocHsWatchChange.identifier = 34;
|
|
5876
6210
|
__decorateClass([
|
|
5877
6211
|
BinaryField("u16", 0)
|
|
5878
|
-
],
|
|
6212
|
+
], _YGOProStocHsWatchChange.prototype, "watch_count", 2);
|
|
6213
|
+
var YGOProStocHsWatchChange = _YGOProStocHsWatchChange;
|
|
5879
6214
|
|
|
5880
6215
|
// src/protos/stoc/proto/teammate-surrender.ts
|
|
5881
|
-
var
|
|
6216
|
+
var _YGOProStocTeammateSurrender = class _YGOProStocTeammateSurrender extends YGOProStocBase {
|
|
5882
6217
|
};
|
|
5883
|
-
YGOProStocTeammateSurrender
|
|
6218
|
+
__name(_YGOProStocTeammateSurrender, "YGOProStocTeammateSurrender");
|
|
6219
|
+
_YGOProStocTeammateSurrender.identifier = 35;
|
|
6220
|
+
var YGOProStocTeammateSurrender = _YGOProStocTeammateSurrender;
|
|
5884
6221
|
|
|
5885
6222
|
// src/protos/stoc/proto/field-finish.ts
|
|
5886
|
-
var
|
|
6223
|
+
var _YGOProStocFieldFinish = class _YGOProStocFieldFinish extends YGOProStocBase {
|
|
5887
6224
|
};
|
|
5888
|
-
YGOProStocFieldFinish
|
|
6225
|
+
__name(_YGOProStocFieldFinish, "YGOProStocFieldFinish");
|
|
6226
|
+
_YGOProStocFieldFinish.identifier = 48;
|
|
6227
|
+
var YGOProStocFieldFinish = _YGOProStocFieldFinish;
|
|
5889
6228
|
|
|
5890
6229
|
// src/protos/stoc/proto/srvpro-roomlist.ts
|
|
5891
|
-
var
|
|
6230
|
+
var _SrvproRoomInfo = class _SrvproRoomInfo {
|
|
5892
6231
|
};
|
|
6232
|
+
__name(_SrvproRoomInfo, "SrvproRoomInfo");
|
|
5893
6233
|
__decorateClass([
|
|
5894
6234
|
BinaryField("utf8", 0, 64)
|
|
5895
|
-
],
|
|
6235
|
+
], _SrvproRoomInfo.prototype, "roomname", 2);
|
|
5896
6236
|
__decorateClass([
|
|
5897
6237
|
BinaryField("u8", 64)
|
|
5898
|
-
],
|
|
6238
|
+
], _SrvproRoomInfo.prototype, "room_status", 2);
|
|
5899
6239
|
__decorateClass([
|
|
5900
6240
|
BinaryField("i8", 65)
|
|
5901
|
-
],
|
|
6241
|
+
], _SrvproRoomInfo.prototype, "room_duel_count", 2);
|
|
5902
6242
|
__decorateClass([
|
|
5903
6243
|
BinaryField("i8", 66)
|
|
5904
|
-
],
|
|
6244
|
+
], _SrvproRoomInfo.prototype, "room_turn_count", 2);
|
|
5905
6245
|
__decorateClass([
|
|
5906
6246
|
BinaryField("utf8", 67, 128)
|
|
5907
|
-
],
|
|
6247
|
+
], _SrvproRoomInfo.prototype, "player1", 2);
|
|
5908
6248
|
__decorateClass([
|
|
5909
6249
|
BinaryField("i8", 195)
|
|
5910
|
-
],
|
|
6250
|
+
], _SrvproRoomInfo.prototype, "player1_score", 2);
|
|
5911
6251
|
__decorateClass([
|
|
5912
6252
|
BinaryField("i32", 196)
|
|
5913
|
-
],
|
|
6253
|
+
], _SrvproRoomInfo.prototype, "player1_lp", 2);
|
|
5914
6254
|
__decorateClass([
|
|
5915
6255
|
BinaryField("utf8", 200, 128)
|
|
5916
|
-
],
|
|
6256
|
+
], _SrvproRoomInfo.prototype, "player2", 2);
|
|
5917
6257
|
__decorateClass([
|
|
5918
6258
|
BinaryField("i8", 328)
|
|
5919
|
-
],
|
|
6259
|
+
], _SrvproRoomInfo.prototype, "player2_score", 2);
|
|
5920
6260
|
__decorateClass([
|
|
5921
6261
|
BinaryField("i32", 329)
|
|
5922
|
-
],
|
|
5923
|
-
var
|
|
6262
|
+
], _SrvproRoomInfo.prototype, "player2_lp", 2);
|
|
6263
|
+
var SrvproRoomInfo = _SrvproRoomInfo;
|
|
6264
|
+
var _YGOProStocSrvproRoomlist = class _YGOProStocSrvproRoomlist extends YGOProStocBase {
|
|
5924
6265
|
};
|
|
5925
|
-
YGOProStocSrvproRoomlist
|
|
6266
|
+
__name(_YGOProStocSrvproRoomlist, "YGOProStocSrvproRoomlist");
|
|
6267
|
+
_YGOProStocSrvproRoomlist.identifier = 49;
|
|
5926
6268
|
__decorateClass([
|
|
5927
6269
|
BinaryField("u16", 0)
|
|
5928
|
-
],
|
|
6270
|
+
], _YGOProStocSrvproRoomlist.prototype, "count", 2);
|
|
5929
6271
|
__decorateClass([
|
|
5930
6272
|
BinaryField(() => SrvproRoomInfo, 2, (obj) => obj.count)
|
|
5931
|
-
],
|
|
6273
|
+
], _YGOProStocSrvproRoomlist.prototype, "rooms", 2);
|
|
6274
|
+
var YGOProStocSrvproRoomlist = _YGOProStocSrvproRoomlist;
|
|
5932
6275
|
|
|
5933
6276
|
// src/protos/stoc/registry.ts
|
|
5934
6277
|
var YGOProStoc = new RegistryBase(YGOProStocBase, {
|