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.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
4
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
5
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
6
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
@@ -15,7 +16,7 @@ var Metadata = new MetadataSetter();
|
|
|
15
16
|
var reflector = new Reflector();
|
|
16
17
|
|
|
17
18
|
// src/binary/binary-meta.ts
|
|
18
|
-
var BinaryField = (type, offset, length) => {
|
|
19
|
+
var BinaryField = /* @__PURE__ */ __name((type, offset, length) => {
|
|
19
20
|
if ((type === "utf8" || type === "utf16") && length == null) {
|
|
20
21
|
throw new Error(`String type ${type} requires length parameter`);
|
|
21
22
|
}
|
|
@@ -24,14 +25,14 @@ var BinaryField = (type, offset, length) => {
|
|
|
24
25
|
{ type, offset, length },
|
|
25
26
|
"binaryFieldKeys"
|
|
26
27
|
);
|
|
27
|
-
};
|
|
28
|
+
}, "BinaryField");
|
|
28
29
|
|
|
29
30
|
// src/binary/fill-binary-fields.ts
|
|
30
|
-
var isStaticInfo = (info) => typeof info.offset === "number" && (info.length == null || typeof info.length === "number");
|
|
31
|
-
var resolveLength = (obj, length, key) => {
|
|
31
|
+
var isStaticInfo = /* @__PURE__ */ __name((info) => typeof info.offset === "number" && (info.length == null || typeof info.length === "number"), "isStaticInfo");
|
|
32
|
+
var resolveLength = /* @__PURE__ */ __name((obj, length, key) => {
|
|
32
33
|
return typeof length === "number" ? length : length(obj, key);
|
|
33
|
-
};
|
|
34
|
-
var getTypeSize = (type) => {
|
|
34
|
+
}, "resolveLength");
|
|
35
|
+
var getTypeSize = /* @__PURE__ */ __name((type) => {
|
|
35
36
|
switch (type) {
|
|
36
37
|
case "i8":
|
|
37
38
|
case "u8":
|
|
@@ -45,8 +46,8 @@ var getTypeSize = (type) => {
|
|
|
45
46
|
default:
|
|
46
47
|
return 0;
|
|
47
48
|
}
|
|
48
|
-
};
|
|
49
|
-
var getFieldInfos = (objOrClass) => {
|
|
49
|
+
}, "getTypeSize");
|
|
50
|
+
var getFieldInfos = /* @__PURE__ */ __name((objOrClass) => {
|
|
50
51
|
const fields = reflector.getArray("binaryFieldKeys", objOrClass).map((key) => ({
|
|
51
52
|
key,
|
|
52
53
|
info: reflector.get("binaryField", objOrClass, key)
|
|
@@ -54,14 +55,14 @@ var getFieldInfos = (objOrClass) => {
|
|
|
54
55
|
const staticInfos = fields.filter((s) => isStaticInfo(s.info));
|
|
55
56
|
const dynamicInfos = fields.filter((s) => !isStaticInfo(s.info));
|
|
56
57
|
return { fields, staticInfos, dynamicInfos };
|
|
57
|
-
};
|
|
58
|
-
var fillBinaryFields = (obj, data, useClass) => {
|
|
58
|
+
}, "getFieldInfos");
|
|
59
|
+
var fillBinaryFields = /* @__PURE__ */ __name((obj, data, useClass) => {
|
|
59
60
|
const { staticInfos, dynamicInfos } = getFieldInfos(useClass || obj);
|
|
60
61
|
const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
|
|
61
62
|
const utf8Decoder = new TextDecoder("utf-8");
|
|
62
63
|
const utf16Decoder = new TextDecoder("utf-16le");
|
|
63
64
|
let totalSize = 0;
|
|
64
|
-
const readValue = (type, offset) => {
|
|
65
|
+
const readValue = /* @__PURE__ */ __name((type, offset) => {
|
|
65
66
|
const typeSize = getTypeSize(type);
|
|
66
67
|
if (offset + typeSize > data.length) {
|
|
67
68
|
throw new Error(
|
|
@@ -84,8 +85,8 @@ var fillBinaryFields = (obj, data, useClass) => {
|
|
|
84
85
|
default:
|
|
85
86
|
throw new Error(`Unknown type: ${type}`);
|
|
86
87
|
}
|
|
87
|
-
};
|
|
88
|
-
const readString = (type, offset, byteLength) => {
|
|
88
|
+
}, "readValue");
|
|
89
|
+
const readString = /* @__PURE__ */ __name((type, offset, byteLength) => {
|
|
89
90
|
if (offset + byteLength > data.length) {
|
|
90
91
|
throw new Error(
|
|
91
92
|
`Data too short: need ${offset + byteLength} bytes, got ${data.length} bytes`
|
|
@@ -110,8 +111,8 @@ var fillBinaryFields = (obj, data, useClass) => {
|
|
|
110
111
|
return utf16Decoder.decode(actualBytes);
|
|
111
112
|
}
|
|
112
113
|
throw new Error(`Unknown string type: ${type}`);
|
|
113
|
-
};
|
|
114
|
-
const parseField = (key, info) => {
|
|
114
|
+
}, "readString");
|
|
115
|
+
const parseField = /* @__PURE__ */ __name((key, info) => {
|
|
115
116
|
const offset = resolveLength(obj, info.offset, key);
|
|
116
117
|
const type = info.type;
|
|
117
118
|
if (typeof type === "function") {
|
|
@@ -169,7 +170,7 @@ var fillBinaryFields = (obj, data, useClass) => {
|
|
|
169
170
|
obj[key] = readValue(typeStr, offset);
|
|
170
171
|
totalSize = Math.max(totalSize, offset + typeSize);
|
|
171
172
|
}
|
|
172
|
-
};
|
|
173
|
+
}, "parseField");
|
|
173
174
|
for (const { key, info } of staticInfos) {
|
|
174
175
|
parseField(key, info);
|
|
175
176
|
}
|
|
@@ -177,8 +178,8 @@ var fillBinaryFields = (obj, data, useClass) => {
|
|
|
177
178
|
parseField(key, info);
|
|
178
179
|
}
|
|
179
180
|
return totalSize;
|
|
180
|
-
};
|
|
181
|
-
var toBinaryFields = (obj, useClass) => {
|
|
181
|
+
}, "fillBinaryFields");
|
|
182
|
+
var toBinaryFields = /* @__PURE__ */ __name((obj, useClass) => {
|
|
182
183
|
const { staticInfos, dynamicInfos } = getFieldInfos(useClass || obj);
|
|
183
184
|
if (staticInfos.length === 0 && dynamicInfos.length === 0) {
|
|
184
185
|
return new Uint8Array(0);
|
|
@@ -223,7 +224,7 @@ var toBinaryFields = (obj, useClass) => {
|
|
|
223
224
|
const data = new Uint8Array(totalSize);
|
|
224
225
|
const view = new DataView(data.buffer);
|
|
225
226
|
const utf8Encoder = new TextEncoder();
|
|
226
|
-
const writeValue = (type, offset, value) => {
|
|
227
|
+
const writeValue = /* @__PURE__ */ __name((type, offset, value) => {
|
|
227
228
|
switch (type) {
|
|
228
229
|
case "i8":
|
|
229
230
|
view.setInt8(offset, value);
|
|
@@ -244,8 +245,8 @@ var toBinaryFields = (obj, useClass) => {
|
|
|
244
245
|
view.setUint32(offset, value, true);
|
|
245
246
|
break;
|
|
246
247
|
}
|
|
247
|
-
};
|
|
248
|
-
const writeString = (type, offset, byteLength, value) => {
|
|
248
|
+
}, "writeValue");
|
|
249
|
+
const writeString = /* @__PURE__ */ __name((type, offset, byteLength, value) => {
|
|
249
250
|
if (type === "utf8") {
|
|
250
251
|
const encoded = utf8Encoder.encode(value);
|
|
251
252
|
const len = Math.min(encoded.length, byteLength);
|
|
@@ -255,8 +256,8 @@ var toBinaryFields = (obj, useClass) => {
|
|
|
255
256
|
view.setUint16(offset + i * 2, value.charCodeAt(i), true);
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
|
-
};
|
|
259
|
-
const writeField = (key, info) => {
|
|
259
|
+
}, "writeString");
|
|
260
|
+
const writeField = /* @__PURE__ */ __name((key, info) => {
|
|
260
261
|
const offset = resolveLength(obj, info.offset, key);
|
|
261
262
|
const type = info.type;
|
|
262
263
|
const value = obj[key];
|
|
@@ -303,7 +304,7 @@ var toBinaryFields = (obj, useClass) => {
|
|
|
303
304
|
} else {
|
|
304
305
|
writeValue(typeStr, offset, value);
|
|
305
306
|
}
|
|
306
|
-
};
|
|
307
|
+
}, "writeField");
|
|
307
308
|
for (const { key, info } of staticInfos) {
|
|
308
309
|
writeField(key, info);
|
|
309
310
|
}
|
|
@@ -311,10 +312,13 @@ var toBinaryFields = (obj, useClass) => {
|
|
|
311
312
|
writeField(key, info);
|
|
312
313
|
}
|
|
313
314
|
return data;
|
|
314
|
-
};
|
|
315
|
+
}, "toBinaryFields");
|
|
315
316
|
|
|
316
317
|
// src/protos/common/host-info.ts
|
|
317
318
|
var HostInfo = class {
|
|
319
|
+
static {
|
|
320
|
+
__name(this, "HostInfo");
|
|
321
|
+
}
|
|
318
322
|
};
|
|
319
323
|
__decorateClass([
|
|
320
324
|
BinaryField("u32", 0)
|
|
@@ -349,6 +353,9 @@ __decorateClass([
|
|
|
349
353
|
|
|
350
354
|
// src/proto-base/payload-base.ts
|
|
351
355
|
var PayloadBase = class {
|
|
356
|
+
static {
|
|
357
|
+
__name(this, "PayloadBase");
|
|
358
|
+
}
|
|
352
359
|
static {
|
|
353
360
|
this.identifier = 0;
|
|
354
361
|
}
|
|
@@ -744,13 +751,18 @@ function checkSetcode(setcode, value) {
|
|
|
744
751
|
const setsubtype = value & 61440;
|
|
745
752
|
return setcode && (setcode & 4095) === settype && (setcode & setsubtype) === setsubtype;
|
|
746
753
|
}
|
|
754
|
+
__name(checkSetcode, "checkSetcode");
|
|
747
755
|
function isAlternative(code, alias) {
|
|
748
756
|
if (code === CARD_BLACK_LUSTER_SOLDIER2) {
|
|
749
757
|
return false;
|
|
750
758
|
}
|
|
751
759
|
return alias && alias < code + CARD_ARTWORK_VERSIONS_OFFSET && code < alias + CARD_ARTWORK_VERSIONS_OFFSET;
|
|
752
760
|
}
|
|
761
|
+
__name(isAlternative, "isAlternative");
|
|
753
762
|
var CardData = class extends PayloadBase {
|
|
763
|
+
static {
|
|
764
|
+
__name(this, "CardData");
|
|
765
|
+
}
|
|
754
766
|
/**
|
|
755
767
|
* Check if this card belongs to a specific setcode
|
|
756
768
|
* @param value The setcode value to check against
|
|
@@ -932,13 +944,22 @@ __decorateClass([
|
|
|
932
944
|
|
|
933
945
|
// src/protos/common/card-query.ts
|
|
934
946
|
var CardQuery_CardLocation = class {
|
|
947
|
+
static {
|
|
948
|
+
__name(this, "CardQuery_CardLocation");
|
|
949
|
+
}
|
|
935
950
|
};
|
|
936
951
|
var CardQuery_Counter = class {
|
|
952
|
+
static {
|
|
953
|
+
__name(this, "CardQuery_Counter");
|
|
954
|
+
}
|
|
937
955
|
};
|
|
938
956
|
var CardQuery = class {
|
|
939
957
|
constructor() {
|
|
940
958
|
this.flags = 0;
|
|
941
959
|
}
|
|
960
|
+
static {
|
|
961
|
+
__name(this, "CardQuery");
|
|
962
|
+
}
|
|
942
963
|
fromPayload(data) {
|
|
943
964
|
const view = new DataView(data.buffer, data.byteOffset, data.byteLength);
|
|
944
965
|
let offset = 0;
|
|
@@ -1239,6 +1260,9 @@ var CardQuery = class {
|
|
|
1239
1260
|
|
|
1240
1261
|
// src/proto-base/ygopro-proto-base.ts
|
|
1241
1262
|
var YGOProProtoBase = class extends PayloadBase {
|
|
1263
|
+
static {
|
|
1264
|
+
__name(this, "YGOProProtoBase");
|
|
1265
|
+
}
|
|
1242
1266
|
static {
|
|
1243
1267
|
this.messageDirection = "";
|
|
1244
1268
|
}
|
|
@@ -1293,6 +1317,9 @@ var YGOProProtoBase = class extends PayloadBase {
|
|
|
1293
1317
|
|
|
1294
1318
|
// src/protos/ctos/base.ts
|
|
1295
1319
|
var YGOProCtosBase = class extends YGOProProtoBase {
|
|
1320
|
+
static {
|
|
1321
|
+
__name(this, "YGOProCtosBase");
|
|
1322
|
+
}
|
|
1296
1323
|
static {
|
|
1297
1324
|
this.messageDirection = "CTOS";
|
|
1298
1325
|
}
|
|
@@ -1305,6 +1332,9 @@ var RegistryBase = class {
|
|
|
1305
1332
|
this.options = options;
|
|
1306
1333
|
this.protos = /* @__PURE__ */ new Map();
|
|
1307
1334
|
}
|
|
1335
|
+
static {
|
|
1336
|
+
__name(this, "RegistryBase");
|
|
1337
|
+
}
|
|
1308
1338
|
register(proto) {
|
|
1309
1339
|
const identifier = proto.identifier;
|
|
1310
1340
|
this.protos.set(identifier, proto);
|
|
@@ -1326,6 +1356,9 @@ var RegistryBase = class {
|
|
|
1326
1356
|
|
|
1327
1357
|
// src/protos/ctos/proto/response.ts
|
|
1328
1358
|
var YGOProCtosResponse = class extends YGOProCtosBase {
|
|
1359
|
+
static {
|
|
1360
|
+
__name(this, "YGOProCtosResponse");
|
|
1361
|
+
}
|
|
1329
1362
|
static {
|
|
1330
1363
|
this.identifier = 1;
|
|
1331
1364
|
}
|
|
@@ -1341,6 +1374,9 @@ var YGOProCtosResponse = class extends YGOProCtosBase {
|
|
|
1341
1374
|
// src/protos/ctos/proto/update-deck.ts
|
|
1342
1375
|
import YGOProDeck from "ygopro-deck-encode";
|
|
1343
1376
|
var YGOProCtosUpdateDeck = class extends YGOProCtosBase {
|
|
1377
|
+
static {
|
|
1378
|
+
__name(this, "YGOProCtosUpdateDeck");
|
|
1379
|
+
}
|
|
1344
1380
|
static {
|
|
1345
1381
|
this.identifier = 2;
|
|
1346
1382
|
}
|
|
@@ -1370,6 +1406,9 @@ var YGOProCtosUpdateDeck = class extends YGOProCtosBase {
|
|
|
1370
1406
|
|
|
1371
1407
|
// src/protos/ctos/proto/hand-result.ts
|
|
1372
1408
|
var YGOProCtosHandResult = class extends YGOProCtosBase {
|
|
1409
|
+
static {
|
|
1410
|
+
__name(this, "YGOProCtosHandResult");
|
|
1411
|
+
}
|
|
1373
1412
|
static {
|
|
1374
1413
|
this.identifier = 3;
|
|
1375
1414
|
}
|
|
@@ -1380,6 +1419,9 @@ __decorateClass([
|
|
|
1380
1419
|
|
|
1381
1420
|
// src/protos/ctos/proto/tp-result.ts
|
|
1382
1421
|
var YGOProCtosTpResult = class extends YGOProCtosBase {
|
|
1422
|
+
static {
|
|
1423
|
+
__name(this, "YGOProCtosTpResult");
|
|
1424
|
+
}
|
|
1383
1425
|
static {
|
|
1384
1426
|
this.identifier = 4;
|
|
1385
1427
|
}
|
|
@@ -1390,6 +1432,9 @@ __decorateClass([
|
|
|
1390
1432
|
|
|
1391
1433
|
// src/protos/ctos/proto/player-info.ts
|
|
1392
1434
|
var YGOProCtosPlayerInfo = class extends YGOProCtosBase {
|
|
1435
|
+
static {
|
|
1436
|
+
__name(this, "YGOProCtosPlayerInfo");
|
|
1437
|
+
}
|
|
1393
1438
|
static {
|
|
1394
1439
|
this.identifier = 16;
|
|
1395
1440
|
}
|
|
@@ -1400,6 +1445,9 @@ __decorateClass([
|
|
|
1400
1445
|
|
|
1401
1446
|
// src/protos/ctos/proto/create-game.ts
|
|
1402
1447
|
var YGOProCtosCreateGame = class extends YGOProCtosBase {
|
|
1448
|
+
static {
|
|
1449
|
+
__name(this, "YGOProCtosCreateGame");
|
|
1450
|
+
}
|
|
1403
1451
|
static {
|
|
1404
1452
|
this.identifier = 17;
|
|
1405
1453
|
}
|
|
@@ -1416,6 +1464,9 @@ __decorateClass([
|
|
|
1416
1464
|
|
|
1417
1465
|
// src/protos/ctos/proto/join-game.ts
|
|
1418
1466
|
var YGOProCtosJoinGame = class extends YGOProCtosBase {
|
|
1467
|
+
static {
|
|
1468
|
+
__name(this, "YGOProCtosJoinGame");
|
|
1469
|
+
}
|
|
1419
1470
|
static {
|
|
1420
1471
|
this.identifier = 18;
|
|
1421
1472
|
}
|
|
@@ -1432,6 +1483,9 @@ __decorateClass([
|
|
|
1432
1483
|
|
|
1433
1484
|
// src/protos/ctos/proto/leave-game.ts
|
|
1434
1485
|
var YGOProCtosLeaveGame = class extends YGOProCtosBase {
|
|
1486
|
+
static {
|
|
1487
|
+
__name(this, "YGOProCtosLeaveGame");
|
|
1488
|
+
}
|
|
1435
1489
|
static {
|
|
1436
1490
|
this.identifier = 19;
|
|
1437
1491
|
}
|
|
@@ -1439,6 +1493,9 @@ var YGOProCtosLeaveGame = class extends YGOProCtosBase {
|
|
|
1439
1493
|
|
|
1440
1494
|
// src/protos/ctos/proto/surrender.ts
|
|
1441
1495
|
var YGOProCtosSurrender = class extends YGOProCtosBase {
|
|
1496
|
+
static {
|
|
1497
|
+
__name(this, "YGOProCtosSurrender");
|
|
1498
|
+
}
|
|
1442
1499
|
static {
|
|
1443
1500
|
this.identifier = 20;
|
|
1444
1501
|
}
|
|
@@ -1446,18 +1503,25 @@ var YGOProCtosSurrender = class extends YGOProCtosBase {
|
|
|
1446
1503
|
|
|
1447
1504
|
// src/protos/ctos/proto/time-confirm.ts
|
|
1448
1505
|
var YGOProCtosTimeConfirm = class extends YGOProCtosBase {
|
|
1506
|
+
static {
|
|
1507
|
+
__name(this, "YGOProCtosTimeConfirm");
|
|
1508
|
+
}
|
|
1449
1509
|
static {
|
|
1450
1510
|
this.identifier = 21;
|
|
1451
1511
|
}
|
|
1452
1512
|
};
|
|
1453
1513
|
|
|
1454
1514
|
// src/protos/ctos/proto/chat.ts
|
|
1455
|
-
var
|
|
1515
|
+
var CTOS_CHAT_MAX_LENGTH = 256;
|
|
1516
|
+
var YGOProCtosChat = class extends YGOProCtosBase {
|
|
1517
|
+
static {
|
|
1518
|
+
__name(this, "YGOProCtosChat");
|
|
1519
|
+
}
|
|
1456
1520
|
static {
|
|
1457
1521
|
this.identifier = 22;
|
|
1458
1522
|
}
|
|
1459
1523
|
static {
|
|
1460
|
-
this.MAX_LENGTH =
|
|
1524
|
+
this.MAX_LENGTH = CTOS_CHAT_MAX_LENGTH;
|
|
1461
1525
|
}
|
|
1462
1526
|
constructor() {
|
|
1463
1527
|
super();
|
|
@@ -1469,7 +1533,7 @@ var YGOProCtosChat = class _YGOProCtosChat extends YGOProCtosBase {
|
|
|
1469
1533
|
return this;
|
|
1470
1534
|
}
|
|
1471
1535
|
toPayload() {
|
|
1472
|
-
const text = this.msg.length >
|
|
1536
|
+
const text = this.msg.length > CTOS_CHAT_MAX_LENGTH ? this.msg.substring(0, CTOS_CHAT_MAX_LENGTH) : this.msg;
|
|
1473
1537
|
const utf16 = new Uint16Array(text.length + 1);
|
|
1474
1538
|
for (let i = 0; i < text.length; i++) {
|
|
1475
1539
|
utf16[i] = text.charCodeAt(i);
|
|
@@ -1487,12 +1551,19 @@ var YGOProCtosChat = class _YGOProCtosChat extends YGOProCtosBase {
|
|
|
1487
1551
|
};
|
|
1488
1552
|
|
|
1489
1553
|
// src/protos/ctos/proto/external-address.ts
|
|
1490
|
-
var
|
|
1554
|
+
var CTOS_EXTERNAL_ADDRESS_MAX_HOSTNAME_LENGTH = 256;
|
|
1555
|
+
var YGOProCtosExternalAddress = class extends YGOProCtosBase {
|
|
1556
|
+
static {
|
|
1557
|
+
__name(this, "YGOProCtosExternalAddress");
|
|
1558
|
+
}
|
|
1491
1559
|
static {
|
|
1492
1560
|
this.identifier = 23;
|
|
1493
1561
|
}
|
|
1494
1562
|
static {
|
|
1495
|
-
this.
|
|
1563
|
+
this.MAX_LENGTH = CTOS_EXTERNAL_ADDRESS_MAX_HOSTNAME_LENGTH;
|
|
1564
|
+
}
|
|
1565
|
+
static {
|
|
1566
|
+
this.MAX_HOSTNAME_LENGTH = CTOS_EXTERNAL_ADDRESS_MAX_HOSTNAME_LENGTH;
|
|
1496
1567
|
}
|
|
1497
1568
|
constructor() {
|
|
1498
1569
|
super();
|
|
@@ -1538,9 +1609,9 @@ var YGOProCtosExternalAddress = class _YGOProCtosExternalAddress extends YGOProC
|
|
|
1538
1609
|
return this;
|
|
1539
1610
|
}
|
|
1540
1611
|
toPayload() {
|
|
1541
|
-
const text = this.hostname.length >
|
|
1612
|
+
const text = this.hostname.length > CTOS_EXTERNAL_ADDRESS_MAX_HOSTNAME_LENGTH ? this.hostname.substring(
|
|
1542
1613
|
0,
|
|
1543
|
-
|
|
1614
|
+
CTOS_EXTERNAL_ADDRESS_MAX_HOSTNAME_LENGTH
|
|
1544
1615
|
) : this.hostname;
|
|
1545
1616
|
const utf16 = new Uint16Array(text.length + 1);
|
|
1546
1617
|
for (let i = 0; i < text.length; i++) {
|
|
@@ -1569,6 +1640,9 @@ var YGOProCtosExternalAddress = class _YGOProCtosExternalAddress extends YGOProC
|
|
|
1569
1640
|
|
|
1570
1641
|
// src/protos/ctos/proto/hs-toduelist.ts
|
|
1571
1642
|
var YGOProCtosHsToDuelist = class extends YGOProCtosBase {
|
|
1643
|
+
static {
|
|
1644
|
+
__name(this, "YGOProCtosHsToDuelist");
|
|
1645
|
+
}
|
|
1572
1646
|
static {
|
|
1573
1647
|
this.identifier = 32;
|
|
1574
1648
|
}
|
|
@@ -1576,6 +1650,9 @@ var YGOProCtosHsToDuelist = class extends YGOProCtosBase {
|
|
|
1576
1650
|
|
|
1577
1651
|
// src/protos/ctos/proto/hs-toobserver.ts
|
|
1578
1652
|
var YGOProCtosHsToObserver = class extends YGOProCtosBase {
|
|
1653
|
+
static {
|
|
1654
|
+
__name(this, "YGOProCtosHsToObserver");
|
|
1655
|
+
}
|
|
1579
1656
|
static {
|
|
1580
1657
|
this.identifier = 33;
|
|
1581
1658
|
}
|
|
@@ -1583,6 +1660,9 @@ var YGOProCtosHsToObserver = class extends YGOProCtosBase {
|
|
|
1583
1660
|
|
|
1584
1661
|
// src/protos/ctos/proto/hs-ready.ts
|
|
1585
1662
|
var YGOProCtosHsReady = class extends YGOProCtosBase {
|
|
1663
|
+
static {
|
|
1664
|
+
__name(this, "YGOProCtosHsReady");
|
|
1665
|
+
}
|
|
1586
1666
|
static {
|
|
1587
1667
|
this.identifier = 34;
|
|
1588
1668
|
}
|
|
@@ -1590,6 +1670,9 @@ var YGOProCtosHsReady = class extends YGOProCtosBase {
|
|
|
1590
1670
|
|
|
1591
1671
|
// src/protos/ctos/proto/hs-notready.ts
|
|
1592
1672
|
var YGOProCtosHsNotReady = class extends YGOProCtosBase {
|
|
1673
|
+
static {
|
|
1674
|
+
__name(this, "YGOProCtosHsNotReady");
|
|
1675
|
+
}
|
|
1593
1676
|
static {
|
|
1594
1677
|
this.identifier = 35;
|
|
1595
1678
|
}
|
|
@@ -1597,6 +1680,9 @@ var YGOProCtosHsNotReady = class extends YGOProCtosBase {
|
|
|
1597
1680
|
|
|
1598
1681
|
// src/protos/ctos/proto/kick.ts
|
|
1599
1682
|
var YGOProCtosKick = class extends YGOProCtosBase {
|
|
1683
|
+
static {
|
|
1684
|
+
__name(this, "YGOProCtosKick");
|
|
1685
|
+
}
|
|
1600
1686
|
static {
|
|
1601
1687
|
this.identifier = 36;
|
|
1602
1688
|
}
|
|
@@ -1607,6 +1693,9 @@ __decorateClass([
|
|
|
1607
1693
|
|
|
1608
1694
|
// src/protos/ctos/proto/hs-start.ts
|
|
1609
1695
|
var YGOProCtosHsStart = class extends YGOProCtosBase {
|
|
1696
|
+
static {
|
|
1697
|
+
__name(this, "YGOProCtosHsStart");
|
|
1698
|
+
}
|
|
1610
1699
|
static {
|
|
1611
1700
|
this.identifier = 37;
|
|
1612
1701
|
}
|
|
@@ -1614,6 +1703,9 @@ var YGOProCtosHsStart = class extends YGOProCtosBase {
|
|
|
1614
1703
|
|
|
1615
1704
|
// src/protos/ctos/proto/request-field.ts
|
|
1616
1705
|
var YGOProCtosRequestField = class extends YGOProCtosBase {
|
|
1706
|
+
static {
|
|
1707
|
+
__name(this, "YGOProCtosRequestField");
|
|
1708
|
+
}
|
|
1617
1709
|
static {
|
|
1618
1710
|
this.identifier = 48;
|
|
1619
1711
|
}
|
|
@@ -1646,6 +1738,9 @@ YGOProCtos.register(YGOProCtosRequestField);
|
|
|
1646
1738
|
|
|
1647
1739
|
// src/protos/stoc/base.ts
|
|
1648
1740
|
var YGOProStocBase = class extends YGOProProtoBase {
|
|
1741
|
+
static {
|
|
1742
|
+
__name(this, "YGOProStocBase");
|
|
1743
|
+
}
|
|
1649
1744
|
static {
|
|
1650
1745
|
this.messageDirection = "STOC";
|
|
1651
1746
|
}
|
|
@@ -1729,6 +1824,9 @@ var RoomStatus = /* @__PURE__ */ ((RoomStatus2) => {
|
|
|
1729
1824
|
var SEND_TO_PLAYERS = [0, 1];
|
|
1730
1825
|
var SEND_TO_ALL = [0, 1, 7 /* OBSERVER */];
|
|
1731
1826
|
var YGOProMsgBase = class extends PayloadBase {
|
|
1827
|
+
static {
|
|
1828
|
+
__name(this, "YGOProMsgBase");
|
|
1829
|
+
}
|
|
1732
1830
|
fromPayload(data) {
|
|
1733
1831
|
if (data.length < 1) {
|
|
1734
1832
|
throw new Error("MSG data too short");
|
|
@@ -1777,6 +1875,9 @@ var YGOProMsgBase = class extends PayloadBase {
|
|
|
1777
1875
|
|
|
1778
1876
|
// src/protos/msg/proto/add-counter.ts
|
|
1779
1877
|
var YGOProMsgAddCounter = class extends YGOProMsgBase {
|
|
1878
|
+
static {
|
|
1879
|
+
__name(this, "YGOProMsgAddCounter");
|
|
1880
|
+
}
|
|
1780
1881
|
static {
|
|
1781
1882
|
this.identifier = OcgcoreCommonConstants.MSG_ADD_COUNTER;
|
|
1782
1883
|
}
|
|
@@ -1799,6 +1900,9 @@ __decorateClass([
|
|
|
1799
1900
|
|
|
1800
1901
|
// src/protos/msg/with-response-base.ts
|
|
1801
1902
|
var YGOProMsgResponseBase = class extends YGOProMsgBase {
|
|
1903
|
+
static {
|
|
1904
|
+
__name(this, "YGOProMsgResponseBase");
|
|
1905
|
+
}
|
|
1802
1906
|
defaultResponse() {
|
|
1803
1907
|
return void 0;
|
|
1804
1908
|
}
|
|
@@ -1809,6 +1913,9 @@ var YGOProMsgResponseBase = class extends YGOProMsgBase {
|
|
|
1809
1913
|
|
|
1810
1914
|
// src/protos/msg/proto/announce-attrib.ts
|
|
1811
1915
|
var YGOProMsgAnnounceAttrib = class extends YGOProMsgResponseBase {
|
|
1916
|
+
static {
|
|
1917
|
+
__name(this, "YGOProMsgAnnounceAttrib");
|
|
1918
|
+
}
|
|
1812
1919
|
static {
|
|
1813
1920
|
this.identifier = OcgcoreCommonConstants.MSG_ANNOUNCE_ATTRIB;
|
|
1814
1921
|
}
|
|
@@ -1834,6 +1941,9 @@ __decorateClass([
|
|
|
1834
1941
|
|
|
1835
1942
|
// src/protos/msg/proto/announce-card.ts
|
|
1836
1943
|
var YGOProMsgAnnounceCard = class extends YGOProMsgResponseBase {
|
|
1944
|
+
static {
|
|
1945
|
+
__name(this, "YGOProMsgAnnounceCard");
|
|
1946
|
+
}
|
|
1837
1947
|
static {
|
|
1838
1948
|
this.identifier = OcgcoreCommonConstants.MSG_ANNOUNCE_CARD;
|
|
1839
1949
|
}
|
|
@@ -1859,16 +1969,19 @@ __decorateClass([
|
|
|
1859
1969
|
|
|
1860
1970
|
// src/protos/msg/index-response.ts
|
|
1861
1971
|
var INDEX_RESPONSE_SYMBOL = /* @__PURE__ */ Symbol("IndexResponse");
|
|
1862
|
-
var IndexResponse = (index) => ({
|
|
1972
|
+
var IndexResponse = /* @__PURE__ */ __name((index) => ({
|
|
1863
1973
|
[INDEX_RESPONSE_SYMBOL]: true,
|
|
1864
1974
|
index
|
|
1865
|
-
});
|
|
1866
|
-
var isIndexResponse = (obj) => {
|
|
1975
|
+
}), "IndexResponse");
|
|
1976
|
+
var isIndexResponse = /* @__PURE__ */ __name((obj) => {
|
|
1867
1977
|
return obj != null && obj[INDEX_RESPONSE_SYMBOL] === true;
|
|
1868
|
-
};
|
|
1978
|
+
}, "isIndexResponse");
|
|
1869
1979
|
|
|
1870
1980
|
// src/protos/msg/proto/announce-number.ts
|
|
1871
1981
|
var YGOProMsgAnnounceNumber = class extends YGOProMsgResponseBase {
|
|
1982
|
+
static {
|
|
1983
|
+
__name(this, "YGOProMsgAnnounceNumber");
|
|
1984
|
+
}
|
|
1872
1985
|
static {
|
|
1873
1986
|
this.identifier = OcgcoreCommonConstants.MSG_ANNOUNCE_NUMBER;
|
|
1874
1987
|
}
|
|
@@ -1906,6 +2019,9 @@ __decorateClass([
|
|
|
1906
2019
|
|
|
1907
2020
|
// src/protos/msg/proto/announce-race.ts
|
|
1908
2021
|
var YGOProMsgAnnounceRace = class extends YGOProMsgResponseBase {
|
|
2022
|
+
static {
|
|
2023
|
+
__name(this, "YGOProMsgAnnounceRace");
|
|
2024
|
+
}
|
|
1909
2025
|
static {
|
|
1910
2026
|
this.identifier = OcgcoreCommonConstants.MSG_ANNOUNCE_RACE;
|
|
1911
2027
|
}
|
|
@@ -1931,6 +2047,9 @@ __decorateClass([
|
|
|
1931
2047
|
|
|
1932
2048
|
// src/protos/msg/proto/attack.ts
|
|
1933
2049
|
var YGOProMsgAttack_CardLocation = class {
|
|
2050
|
+
static {
|
|
2051
|
+
__name(this, "YGOProMsgAttack_CardLocation");
|
|
2052
|
+
}
|
|
1934
2053
|
};
|
|
1935
2054
|
__decorateClass([
|
|
1936
2055
|
BinaryField("u8", 0)
|
|
@@ -1945,6 +2064,9 @@ __decorateClass([
|
|
|
1945
2064
|
BinaryField("u8", 3)
|
|
1946
2065
|
], YGOProMsgAttack_CardLocation.prototype, "position", 2);
|
|
1947
2066
|
var YGOProMsgAttack = class extends YGOProMsgBase {
|
|
2067
|
+
static {
|
|
2068
|
+
__name(this, "YGOProMsgAttack");
|
|
2069
|
+
}
|
|
1948
2070
|
static {
|
|
1949
2071
|
this.identifier = OcgcoreCommonConstants.MSG_ATTACK;
|
|
1950
2072
|
}
|
|
@@ -1958,6 +2080,9 @@ __decorateClass([
|
|
|
1958
2080
|
|
|
1959
2081
|
// src/protos/msg/proto/attack-disabled.ts
|
|
1960
2082
|
var YGOProMsgAttackDisabled = class extends YGOProMsgBase {
|
|
2083
|
+
static {
|
|
2084
|
+
__name(this, "YGOProMsgAttackDisabled");
|
|
2085
|
+
}
|
|
1961
2086
|
static {
|
|
1962
2087
|
this.identifier = OcgcoreCommonConstants.MSG_ATTACK_DISABLED;
|
|
1963
2088
|
}
|
|
@@ -1965,6 +2090,9 @@ var YGOProMsgAttackDisabled = class extends YGOProMsgBase {
|
|
|
1965
2090
|
|
|
1966
2091
|
// src/protos/msg/proto/battle.ts
|
|
1967
2092
|
var YGOProMsgBattle_CardLocation = class {
|
|
2093
|
+
static {
|
|
2094
|
+
__name(this, "YGOProMsgBattle_CardLocation");
|
|
2095
|
+
}
|
|
1968
2096
|
};
|
|
1969
2097
|
__decorateClass([
|
|
1970
2098
|
BinaryField("u8", 0)
|
|
@@ -1979,6 +2107,9 @@ __decorateClass([
|
|
|
1979
2107
|
BinaryField("u8", 3)
|
|
1980
2108
|
], YGOProMsgBattle_CardLocation.prototype, "position", 2);
|
|
1981
2109
|
var YGOProMsgBattle_CardStats = class {
|
|
2110
|
+
static {
|
|
2111
|
+
__name(this, "YGOProMsgBattle_CardStats");
|
|
2112
|
+
}
|
|
1982
2113
|
};
|
|
1983
2114
|
__decorateClass([
|
|
1984
2115
|
BinaryField(() => YGOProMsgBattle_CardLocation, 0)
|
|
@@ -1990,6 +2121,9 @@ __decorateClass([
|
|
|
1990
2121
|
BinaryField("i32", 8)
|
|
1991
2122
|
], YGOProMsgBattle_CardStats.prototype, "def", 2);
|
|
1992
2123
|
var YGOProMsgBattle = class extends YGOProMsgBase {
|
|
2124
|
+
static {
|
|
2125
|
+
__name(this, "YGOProMsgBattle");
|
|
2126
|
+
}
|
|
1993
2127
|
static {
|
|
1994
2128
|
this.identifier = OcgcoreCommonConstants.MSG_BATTLE;
|
|
1995
2129
|
}
|
|
@@ -2006,6 +2140,9 @@ __decorateClass([
|
|
|
2006
2140
|
|
|
2007
2141
|
// src/protos/msg/proto/become-target.ts
|
|
2008
2142
|
var YGOProMsgBecomeTarget = class extends YGOProMsgBase {
|
|
2143
|
+
static {
|
|
2144
|
+
__name(this, "YGOProMsgBecomeTarget");
|
|
2145
|
+
}
|
|
2009
2146
|
static {
|
|
2010
2147
|
this.identifier = OcgcoreCommonConstants.MSG_BECOME_TARGET;
|
|
2011
2148
|
}
|
|
@@ -2019,6 +2156,9 @@ __decorateClass([
|
|
|
2019
2156
|
|
|
2020
2157
|
// src/protos/msg/proto/cancel-target.ts
|
|
2021
2158
|
var YGOProMsgCancelTarget_CardLocation = class {
|
|
2159
|
+
static {
|
|
2160
|
+
__name(this, "YGOProMsgCancelTarget_CardLocation");
|
|
2161
|
+
}
|
|
2022
2162
|
};
|
|
2023
2163
|
__decorateClass([
|
|
2024
2164
|
BinaryField("u8", 0)
|
|
@@ -2030,6 +2170,9 @@ __decorateClass([
|
|
|
2030
2170
|
BinaryField("u8", 2)
|
|
2031
2171
|
], YGOProMsgCancelTarget_CardLocation.prototype, "sequence", 2);
|
|
2032
2172
|
var YGOProMsgCancelTarget = class extends YGOProMsgBase {
|
|
2173
|
+
static {
|
|
2174
|
+
__name(this, "YGOProMsgCancelTarget");
|
|
2175
|
+
}
|
|
2033
2176
|
static {
|
|
2034
2177
|
this.identifier = OcgcoreCommonConstants.MSG_CANCEL_TARGET;
|
|
2035
2178
|
}
|
|
@@ -2043,6 +2186,9 @@ __decorateClass([
|
|
|
2043
2186
|
|
|
2044
2187
|
// src/protos/msg/proto/card-hint.ts
|
|
2045
2188
|
var YGOProMsgCardHint = class extends YGOProMsgBase {
|
|
2189
|
+
static {
|
|
2190
|
+
__name(this, "YGOProMsgCardHint");
|
|
2191
|
+
}
|
|
2046
2192
|
static {
|
|
2047
2193
|
this.identifier = OcgcoreCommonConstants.MSG_CARD_HINT;
|
|
2048
2194
|
}
|
|
@@ -2068,6 +2214,9 @@ __decorateClass([
|
|
|
2068
2214
|
|
|
2069
2215
|
// src/protos/msg/proto/card-target.ts
|
|
2070
2216
|
var YGOProMsgCardTarget_CardLocation = class {
|
|
2217
|
+
static {
|
|
2218
|
+
__name(this, "YGOProMsgCardTarget_CardLocation");
|
|
2219
|
+
}
|
|
2071
2220
|
};
|
|
2072
2221
|
__decorateClass([
|
|
2073
2222
|
BinaryField("u8", 0)
|
|
@@ -2079,6 +2228,9 @@ __decorateClass([
|
|
|
2079
2228
|
BinaryField("u8", 2)
|
|
2080
2229
|
], YGOProMsgCardTarget_CardLocation.prototype, "sequence", 2);
|
|
2081
2230
|
var YGOProMsgCardTarget = class extends YGOProMsgBase {
|
|
2231
|
+
static {
|
|
2232
|
+
__name(this, "YGOProMsgCardTarget");
|
|
2233
|
+
}
|
|
2082
2234
|
static {
|
|
2083
2235
|
this.identifier = OcgcoreCommonConstants.MSG_CARD_TARGET;
|
|
2084
2236
|
}
|
|
@@ -2092,6 +2244,9 @@ __decorateClass([
|
|
|
2092
2244
|
|
|
2093
2245
|
// src/protos/msg/proto/chain-disabled.ts
|
|
2094
2246
|
var YGOProMsgChainDisabled = class extends YGOProMsgBase {
|
|
2247
|
+
static {
|
|
2248
|
+
__name(this, "YGOProMsgChainDisabled");
|
|
2249
|
+
}
|
|
2095
2250
|
static {
|
|
2096
2251
|
this.identifier = OcgcoreCommonConstants.MSG_CHAIN_DISABLED;
|
|
2097
2252
|
}
|
|
@@ -2102,6 +2257,9 @@ __decorateClass([
|
|
|
2102
2257
|
|
|
2103
2258
|
// src/protos/msg/proto/chain-end.ts
|
|
2104
2259
|
var YGOProMsgChainEnd = class extends YGOProMsgBase {
|
|
2260
|
+
static {
|
|
2261
|
+
__name(this, "YGOProMsgChainEnd");
|
|
2262
|
+
}
|
|
2105
2263
|
static {
|
|
2106
2264
|
this.identifier = OcgcoreCommonConstants.MSG_CHAIN_END;
|
|
2107
2265
|
}
|
|
@@ -2109,6 +2267,9 @@ var YGOProMsgChainEnd = class extends YGOProMsgBase {
|
|
|
2109
2267
|
|
|
2110
2268
|
// src/protos/msg/proto/chain-negated.ts
|
|
2111
2269
|
var YGOProMsgChainNegated = class extends YGOProMsgBase {
|
|
2270
|
+
static {
|
|
2271
|
+
__name(this, "YGOProMsgChainNegated");
|
|
2272
|
+
}
|
|
2112
2273
|
static {
|
|
2113
2274
|
this.identifier = OcgcoreCommonConstants.MSG_CHAIN_NEGATED;
|
|
2114
2275
|
}
|
|
@@ -2119,6 +2280,9 @@ __decorateClass([
|
|
|
2119
2280
|
|
|
2120
2281
|
// src/protos/msg/proto/chain-solved.ts
|
|
2121
2282
|
var YGOProMsgChainSolved = class extends YGOProMsgBase {
|
|
2283
|
+
static {
|
|
2284
|
+
__name(this, "YGOProMsgChainSolved");
|
|
2285
|
+
}
|
|
2122
2286
|
static {
|
|
2123
2287
|
this.identifier = OcgcoreCommonConstants.MSG_CHAIN_SOLVED;
|
|
2124
2288
|
}
|
|
@@ -2129,6 +2293,9 @@ __decorateClass([
|
|
|
2129
2293
|
|
|
2130
2294
|
// src/protos/msg/proto/chain-solving.ts
|
|
2131
2295
|
var YGOProMsgChainSolving = class extends YGOProMsgBase {
|
|
2296
|
+
static {
|
|
2297
|
+
__name(this, "YGOProMsgChainSolving");
|
|
2298
|
+
}
|
|
2132
2299
|
static {
|
|
2133
2300
|
this.identifier = OcgcoreCommonConstants.MSG_CHAIN_SOLVING;
|
|
2134
2301
|
}
|
|
@@ -2139,6 +2306,9 @@ __decorateClass([
|
|
|
2139
2306
|
|
|
2140
2307
|
// src/protos/msg/proto/chained.ts
|
|
2141
2308
|
var YGOProMsgChained = class extends YGOProMsgBase {
|
|
2309
|
+
static {
|
|
2310
|
+
__name(this, "YGOProMsgChained");
|
|
2311
|
+
}
|
|
2142
2312
|
static {
|
|
2143
2313
|
this.identifier = OcgcoreCommonConstants.MSG_CHAINED;
|
|
2144
2314
|
}
|
|
@@ -2149,6 +2319,9 @@ __decorateClass([
|
|
|
2149
2319
|
|
|
2150
2320
|
// src/protos/msg/proto/chaining.ts
|
|
2151
2321
|
var YGOProMsgChaining = class extends YGOProMsgBase {
|
|
2322
|
+
static {
|
|
2323
|
+
__name(this, "YGOProMsgChaining");
|
|
2324
|
+
}
|
|
2152
2325
|
static {
|
|
2153
2326
|
this.identifier = OcgcoreCommonConstants.MSG_CHAINING;
|
|
2154
2327
|
}
|
|
@@ -2180,6 +2353,9 @@ __decorateClass([
|
|
|
2180
2353
|
|
|
2181
2354
|
// src/protos/msg/proto/confirm-cards.ts
|
|
2182
2355
|
var YGOProMsgConfirmCards_CardInfo = class {
|
|
2356
|
+
static {
|
|
2357
|
+
__name(this, "YGOProMsgConfirmCards_CardInfo");
|
|
2358
|
+
}
|
|
2183
2359
|
};
|
|
2184
2360
|
__decorateClass([
|
|
2185
2361
|
BinaryField("i32", 0)
|
|
@@ -2194,6 +2370,9 @@ __decorateClass([
|
|
|
2194
2370
|
BinaryField("u8", 6)
|
|
2195
2371
|
], YGOProMsgConfirmCards_CardInfo.prototype, "sequence", 2);
|
|
2196
2372
|
var YGOProMsgConfirmCards = class extends YGOProMsgBase {
|
|
2373
|
+
static {
|
|
2374
|
+
__name(this, "YGOProMsgConfirmCards");
|
|
2375
|
+
}
|
|
2197
2376
|
static {
|
|
2198
2377
|
this.identifier = OcgcoreCommonConstants.MSG_CONFIRM_CARDS;
|
|
2199
2378
|
}
|
|
@@ -2231,6 +2410,9 @@ __decorateClass([
|
|
|
2231
2410
|
|
|
2232
2411
|
// src/protos/msg/proto/confirm-decktop.ts
|
|
2233
2412
|
var YGOProMsgConfirmDeckTop_CardInfo = class {
|
|
2413
|
+
static {
|
|
2414
|
+
__name(this, "YGOProMsgConfirmDeckTop_CardInfo");
|
|
2415
|
+
}
|
|
2234
2416
|
};
|
|
2235
2417
|
__decorateClass([
|
|
2236
2418
|
BinaryField("i32", 0)
|
|
@@ -2245,6 +2427,9 @@ __decorateClass([
|
|
|
2245
2427
|
BinaryField("u8", 6)
|
|
2246
2428
|
], YGOProMsgConfirmDeckTop_CardInfo.prototype, "sequence", 2);
|
|
2247
2429
|
var YGOProMsgConfirmDeckTop = class extends YGOProMsgBase {
|
|
2430
|
+
static {
|
|
2431
|
+
__name(this, "YGOProMsgConfirmDeckTop");
|
|
2432
|
+
}
|
|
2248
2433
|
static {
|
|
2249
2434
|
this.identifier = OcgcoreCommonConstants.MSG_CONFIRM_DECKTOP;
|
|
2250
2435
|
}
|
|
@@ -2274,6 +2459,9 @@ __decorateClass([
|
|
|
2274
2459
|
|
|
2275
2460
|
// src/protos/msg/proto/confirm-extratop.ts
|
|
2276
2461
|
var YGOProMsgConfirmExtraTop_CardInfo = class {
|
|
2462
|
+
static {
|
|
2463
|
+
__name(this, "YGOProMsgConfirmExtraTop_CardInfo");
|
|
2464
|
+
}
|
|
2277
2465
|
};
|
|
2278
2466
|
__decorateClass([
|
|
2279
2467
|
BinaryField("i32", 0)
|
|
@@ -2288,6 +2476,9 @@ __decorateClass([
|
|
|
2288
2476
|
BinaryField("u8", 6)
|
|
2289
2477
|
], YGOProMsgConfirmExtraTop_CardInfo.prototype, "sequence", 2);
|
|
2290
2478
|
var YGOProMsgConfirmExtraTop = class extends YGOProMsgBase {
|
|
2479
|
+
static {
|
|
2480
|
+
__name(this, "YGOProMsgConfirmExtraTop");
|
|
2481
|
+
}
|
|
2291
2482
|
static {
|
|
2292
2483
|
this.identifier = OcgcoreCommonConstants.MSG_CONFIRM_EXTRATOP;
|
|
2293
2484
|
}
|
|
@@ -2317,6 +2508,9 @@ __decorateClass([
|
|
|
2317
2508
|
|
|
2318
2509
|
// src/protos/msg/proto/damage.ts
|
|
2319
2510
|
var YGOProMsgDamage = class extends YGOProMsgBase {
|
|
2511
|
+
static {
|
|
2512
|
+
__name(this, "YGOProMsgDamage");
|
|
2513
|
+
}
|
|
2320
2514
|
static {
|
|
2321
2515
|
this.identifier = OcgcoreCommonConstants.MSG_DAMAGE;
|
|
2322
2516
|
}
|
|
@@ -2330,6 +2524,9 @@ __decorateClass([
|
|
|
2330
2524
|
|
|
2331
2525
|
// src/protos/msg/proto/damage-step-end.ts
|
|
2332
2526
|
var YGOProMsgDamageStepEnd = class extends YGOProMsgBase {
|
|
2527
|
+
static {
|
|
2528
|
+
__name(this, "YGOProMsgDamageStepEnd");
|
|
2529
|
+
}
|
|
2333
2530
|
static {
|
|
2334
2531
|
this.identifier = OcgcoreCommonConstants.MSG_DAMAGE_STEP_END;
|
|
2335
2532
|
}
|
|
@@ -2337,6 +2534,9 @@ var YGOProMsgDamageStepEnd = class extends YGOProMsgBase {
|
|
|
2337
2534
|
|
|
2338
2535
|
// src/protos/msg/proto/damage-step-start.ts
|
|
2339
2536
|
var YGOProMsgDamageStepStart = class extends YGOProMsgBase {
|
|
2537
|
+
static {
|
|
2538
|
+
__name(this, "YGOProMsgDamageStepStart");
|
|
2539
|
+
}
|
|
2340
2540
|
static {
|
|
2341
2541
|
this.identifier = OcgcoreCommonConstants.MSG_DAMAGE_STEP_START;
|
|
2342
2542
|
}
|
|
@@ -2344,6 +2544,9 @@ var YGOProMsgDamageStepStart = class extends YGOProMsgBase {
|
|
|
2344
2544
|
|
|
2345
2545
|
// src/protos/msg/proto/deck-top.ts
|
|
2346
2546
|
var YGOProMsgDeckTop = class extends YGOProMsgBase {
|
|
2547
|
+
static {
|
|
2548
|
+
__name(this, "YGOProMsgDeckTop");
|
|
2549
|
+
}
|
|
2347
2550
|
static {
|
|
2348
2551
|
this.identifier = OcgcoreCommonConstants.MSG_DECK_TOP;
|
|
2349
2552
|
}
|
|
@@ -2369,6 +2572,9 @@ __decorateClass([
|
|
|
2369
2572
|
|
|
2370
2573
|
// src/protos/msg/proto/draw.ts
|
|
2371
2574
|
var YGOProMsgDraw = class extends YGOProMsgBase {
|
|
2575
|
+
static {
|
|
2576
|
+
__name(this, "YGOProMsgDraw");
|
|
2577
|
+
}
|
|
2372
2578
|
static {
|
|
2373
2579
|
this.identifier = OcgcoreCommonConstants.MSG_DRAW;
|
|
2374
2580
|
}
|
|
@@ -2396,6 +2602,9 @@ __decorateClass([
|
|
|
2396
2602
|
|
|
2397
2603
|
// src/protos/msg/proto/equip.ts
|
|
2398
2604
|
var YGOProMsgEquip_CardLocation = class {
|
|
2605
|
+
static {
|
|
2606
|
+
__name(this, "YGOProMsgEquip_CardLocation");
|
|
2607
|
+
}
|
|
2399
2608
|
};
|
|
2400
2609
|
__decorateClass([
|
|
2401
2610
|
BinaryField("u8", 0)
|
|
@@ -2407,6 +2616,9 @@ __decorateClass([
|
|
|
2407
2616
|
BinaryField("u8", 2)
|
|
2408
2617
|
], YGOProMsgEquip_CardLocation.prototype, "sequence", 2);
|
|
2409
2618
|
var YGOProMsgEquip = class extends YGOProMsgBase {
|
|
2619
|
+
static {
|
|
2620
|
+
__name(this, "YGOProMsgEquip");
|
|
2621
|
+
}
|
|
2410
2622
|
static {
|
|
2411
2623
|
this.identifier = OcgcoreCommonConstants.MSG_EQUIP;
|
|
2412
2624
|
}
|
|
@@ -2423,6 +2635,9 @@ __decorateClass([
|
|
|
2423
2635
|
|
|
2424
2636
|
// src/protos/msg/proto/field-disabled.ts
|
|
2425
2637
|
var YGOProMsgFieldDisabled = class extends YGOProMsgBase {
|
|
2638
|
+
static {
|
|
2639
|
+
__name(this, "YGOProMsgFieldDisabled");
|
|
2640
|
+
}
|
|
2426
2641
|
static {
|
|
2427
2642
|
this.identifier = OcgcoreCommonConstants.MSG_FIELD_DISABLED;
|
|
2428
2643
|
}
|
|
@@ -2433,6 +2648,9 @@ __decorateClass([
|
|
|
2433
2648
|
|
|
2434
2649
|
// src/protos/msg/proto/flipsummoned.ts
|
|
2435
2650
|
var YGOProMsgFlipSummoned = class extends YGOProMsgBase {
|
|
2651
|
+
static {
|
|
2652
|
+
__name(this, "YGOProMsgFlipSummoned");
|
|
2653
|
+
}
|
|
2436
2654
|
static {
|
|
2437
2655
|
this.identifier = OcgcoreCommonConstants.MSG_FLIPSUMMONED;
|
|
2438
2656
|
}
|
|
@@ -2440,6 +2658,9 @@ var YGOProMsgFlipSummoned = class extends YGOProMsgBase {
|
|
|
2440
2658
|
|
|
2441
2659
|
// src/protos/msg/proto/flipsummoning.ts
|
|
2442
2660
|
var YGOProMsgFlipSummoning = class extends YGOProMsgBase {
|
|
2661
|
+
static {
|
|
2662
|
+
__name(this, "YGOProMsgFlipSummoning");
|
|
2663
|
+
}
|
|
2443
2664
|
static {
|
|
2444
2665
|
this.identifier = OcgcoreCommonConstants.MSG_FLIPSUMMONING;
|
|
2445
2666
|
}
|
|
@@ -2462,6 +2683,9 @@ __decorateClass([
|
|
|
2462
2683
|
|
|
2463
2684
|
// src/protos/msg/proto/hand-res.ts
|
|
2464
2685
|
var YGOProMsgHandRes = class extends YGOProMsgBase {
|
|
2686
|
+
static {
|
|
2687
|
+
__name(this, "YGOProMsgHandRes");
|
|
2688
|
+
}
|
|
2465
2689
|
static {
|
|
2466
2690
|
this.identifier = OcgcoreCommonConstants.MSG_HAND_RES;
|
|
2467
2691
|
}
|
|
@@ -2474,6 +2698,9 @@ __decorateClass([
|
|
|
2474
2698
|
var HINT_TYPES_SEND_TO_SELF = /* @__PURE__ */ new Set([1, 2, 3, 5]);
|
|
2475
2699
|
var HINT_TYPES_SEND_TO_OPPONENT = /* @__PURE__ */ new Set([4, 6, 7, 8, 9, 11]);
|
|
2476
2700
|
var YGOProMsgHint = class extends YGOProMsgBase {
|
|
2701
|
+
static {
|
|
2702
|
+
__name(this, "YGOProMsgHint");
|
|
2703
|
+
}
|
|
2477
2704
|
static {
|
|
2478
2705
|
this.identifier = OcgcoreCommonConstants.MSG_HINT;
|
|
2479
2706
|
}
|
|
@@ -2499,6 +2726,9 @@ __decorateClass([
|
|
|
2499
2726
|
|
|
2500
2727
|
// src/protos/msg/proto/lpupdate.ts
|
|
2501
2728
|
var YGOProMsgLpUpdate = class extends YGOProMsgBase {
|
|
2729
|
+
static {
|
|
2730
|
+
__name(this, "YGOProMsgLpUpdate");
|
|
2731
|
+
}
|
|
2502
2732
|
static {
|
|
2503
2733
|
this.identifier = OcgcoreCommonConstants.MSG_LPUPDATE;
|
|
2504
2734
|
}
|
|
@@ -2512,6 +2742,9 @@ __decorateClass([
|
|
|
2512
2742
|
|
|
2513
2743
|
// src/protos/msg/proto/match-kill.ts
|
|
2514
2744
|
var YGOProMsgMatchKill = class extends YGOProMsgBase {
|
|
2745
|
+
static {
|
|
2746
|
+
__name(this, "YGOProMsgMatchKill");
|
|
2747
|
+
}
|
|
2515
2748
|
static {
|
|
2516
2749
|
this.identifier = OcgcoreCommonConstants.MSG_MATCH_KILL;
|
|
2517
2750
|
}
|
|
@@ -2522,22 +2755,22 @@ __decorateClass([
|
|
|
2522
2755
|
|
|
2523
2756
|
// src/protos/msg/proto/missed-effect.ts
|
|
2524
2757
|
var YGOProMsgMissedEffect = class extends YGOProMsgBase {
|
|
2758
|
+
static {
|
|
2759
|
+
__name(this, "YGOProMsgMissedEffect");
|
|
2760
|
+
}
|
|
2525
2761
|
static {
|
|
2526
2762
|
this.identifier = OcgcoreCommonConstants.MSG_MISSED_EFFECT;
|
|
2527
2763
|
}
|
|
2528
2764
|
getSendTargets() {
|
|
2529
|
-
return [
|
|
2765
|
+
return [0, 1];
|
|
2530
2766
|
}
|
|
2531
2767
|
};
|
|
2532
2768
|
__decorateClass([
|
|
2533
|
-
BinaryField("
|
|
2534
|
-
], YGOProMsgMissedEffect.prototype, "
|
|
2769
|
+
BinaryField("u32", 0)
|
|
2770
|
+
], YGOProMsgMissedEffect.prototype, "location", 2);
|
|
2535
2771
|
__decorateClass([
|
|
2536
|
-
BinaryField("
|
|
2772
|
+
BinaryField("u32", 4)
|
|
2537
2773
|
], YGOProMsgMissedEffect.prototype, "code", 2);
|
|
2538
|
-
__decorateClass([
|
|
2539
|
-
BinaryField("i32", 5)
|
|
2540
|
-
], YGOProMsgMissedEffect.prototype, "desc", 2);
|
|
2541
2774
|
|
|
2542
2775
|
// src/vendor/script-constants.ts
|
|
2543
2776
|
var OcgcoreScriptConstants = {
|
|
@@ -3379,6 +3612,9 @@ var OcgcoreScriptConstants = {
|
|
|
3379
3612
|
|
|
3380
3613
|
// src/protos/msg/proto/move.ts
|
|
3381
3614
|
var YGOProMsgMove_CardLocation = class {
|
|
3615
|
+
static {
|
|
3616
|
+
__name(this, "YGOProMsgMove_CardLocation");
|
|
3617
|
+
}
|
|
3382
3618
|
};
|
|
3383
3619
|
__decorateClass([
|
|
3384
3620
|
BinaryField("u8", 0)
|
|
@@ -3393,6 +3629,9 @@ __decorateClass([
|
|
|
3393
3629
|
BinaryField("u8", 3)
|
|
3394
3630
|
], YGOProMsgMove_CardLocation.prototype, "position", 2);
|
|
3395
3631
|
var YGOProMsgMove = class extends YGOProMsgBase {
|
|
3632
|
+
static {
|
|
3633
|
+
__name(this, "YGOProMsgMove");
|
|
3634
|
+
}
|
|
3396
3635
|
static {
|
|
3397
3636
|
this.identifier = OcgcoreCommonConstants.MSG_MOVE;
|
|
3398
3637
|
}
|
|
@@ -3445,6 +3684,9 @@ __decorateClass([
|
|
|
3445
3684
|
|
|
3446
3685
|
// src/protos/msg/proto/new-phase.ts
|
|
3447
3686
|
var YGOProMsgNewPhase = class extends YGOProMsgBase {
|
|
3687
|
+
static {
|
|
3688
|
+
__name(this, "YGOProMsgNewPhase");
|
|
3689
|
+
}
|
|
3448
3690
|
static {
|
|
3449
3691
|
this.identifier = OcgcoreCommonConstants.MSG_NEW_PHASE;
|
|
3450
3692
|
}
|
|
@@ -3455,6 +3697,9 @@ __decorateClass([
|
|
|
3455
3697
|
|
|
3456
3698
|
// src/protos/msg/proto/new-turn.ts
|
|
3457
3699
|
var YGOProMsgNewTurn = class extends YGOProMsgBase {
|
|
3700
|
+
static {
|
|
3701
|
+
__name(this, "YGOProMsgNewTurn");
|
|
3702
|
+
}
|
|
3458
3703
|
static {
|
|
3459
3704
|
this.identifier = OcgcoreCommonConstants.MSG_NEW_TURN;
|
|
3460
3705
|
}
|
|
@@ -3465,6 +3710,9 @@ __decorateClass([
|
|
|
3465
3710
|
|
|
3466
3711
|
// src/protos/msg/proto/pay-lpcost.ts
|
|
3467
3712
|
var YGOProMsgPayLpCost = class extends YGOProMsgBase {
|
|
3713
|
+
static {
|
|
3714
|
+
__name(this, "YGOProMsgPayLpCost");
|
|
3715
|
+
}
|
|
3468
3716
|
static {
|
|
3469
3717
|
this.identifier = OcgcoreCommonConstants.MSG_PAY_LPCOST;
|
|
3470
3718
|
}
|
|
@@ -3478,6 +3726,9 @@ __decorateClass([
|
|
|
3478
3726
|
|
|
3479
3727
|
// src/protos/msg/proto/player-hint.ts
|
|
3480
3728
|
var YGOProMsgPlayerHint = class extends YGOProMsgBase {
|
|
3729
|
+
static {
|
|
3730
|
+
__name(this, "YGOProMsgPlayerHint");
|
|
3731
|
+
}
|
|
3481
3732
|
static {
|
|
3482
3733
|
this.identifier = OcgcoreCommonConstants.MSG_PLAYER_HINT;
|
|
3483
3734
|
}
|
|
@@ -3494,6 +3745,9 @@ __decorateClass([
|
|
|
3494
3745
|
|
|
3495
3746
|
// src/protos/msg/proto/pos-change.ts
|
|
3496
3747
|
var YGOProMsgPosChange_CardLocation = class {
|
|
3748
|
+
static {
|
|
3749
|
+
__name(this, "YGOProMsgPosChange_CardLocation");
|
|
3750
|
+
}
|
|
3497
3751
|
};
|
|
3498
3752
|
__decorateClass([
|
|
3499
3753
|
BinaryField("u8", 0)
|
|
@@ -3505,6 +3759,9 @@ __decorateClass([
|
|
|
3505
3759
|
BinaryField("u8", 2)
|
|
3506
3760
|
], YGOProMsgPosChange_CardLocation.prototype, "sequence", 2);
|
|
3507
3761
|
var YGOProMsgPosChange = class extends YGOProMsgBase {
|
|
3762
|
+
static {
|
|
3763
|
+
__name(this, "YGOProMsgPosChange");
|
|
3764
|
+
}
|
|
3508
3765
|
static {
|
|
3509
3766
|
this.identifier = OcgcoreCommonConstants.MSG_POS_CHANGE;
|
|
3510
3767
|
}
|
|
@@ -3521,6 +3778,9 @@ __decorateClass([
|
|
|
3521
3778
|
|
|
3522
3779
|
// src/protos/msg/proto/random-selected.ts
|
|
3523
3780
|
var YGOProMsgRandomSelected = class extends YGOProMsgBase {
|
|
3781
|
+
static {
|
|
3782
|
+
__name(this, "YGOProMsgRandomSelected");
|
|
3783
|
+
}
|
|
3524
3784
|
static {
|
|
3525
3785
|
this.identifier = OcgcoreCommonConstants.MSG_RANDOM_SELECTED;
|
|
3526
3786
|
}
|
|
@@ -3537,6 +3797,9 @@ __decorateClass([
|
|
|
3537
3797
|
|
|
3538
3798
|
// src/protos/msg/proto/recover.ts
|
|
3539
3799
|
var YGOProMsgRecover = class extends YGOProMsgBase {
|
|
3800
|
+
static {
|
|
3801
|
+
__name(this, "YGOProMsgRecover");
|
|
3802
|
+
}
|
|
3540
3803
|
static {
|
|
3541
3804
|
this.identifier = OcgcoreCommonConstants.MSG_RECOVER;
|
|
3542
3805
|
}
|
|
@@ -3550,12 +3813,24 @@ __decorateClass([
|
|
|
3550
3813
|
|
|
3551
3814
|
// src/protos/msg/proto/reload-field.ts
|
|
3552
3815
|
var YGOProMsgReloadField_ZoneCard = class {
|
|
3816
|
+
static {
|
|
3817
|
+
__name(this, "YGOProMsgReloadField_ZoneCard");
|
|
3818
|
+
}
|
|
3553
3819
|
};
|
|
3554
3820
|
var YGOProMsgReloadField_PlayerInfo = class {
|
|
3821
|
+
static {
|
|
3822
|
+
__name(this, "YGOProMsgReloadField_PlayerInfo");
|
|
3823
|
+
}
|
|
3555
3824
|
};
|
|
3556
3825
|
var YGOProMsgReloadField_ChainInfo = class {
|
|
3826
|
+
static {
|
|
3827
|
+
__name(this, "YGOProMsgReloadField_ChainInfo");
|
|
3828
|
+
}
|
|
3557
3829
|
};
|
|
3558
3830
|
var YGOProMsgReloadField = class extends YGOProMsgBase {
|
|
3831
|
+
static {
|
|
3832
|
+
__name(this, "YGOProMsgReloadField");
|
|
3833
|
+
}
|
|
3559
3834
|
static {
|
|
3560
3835
|
this.identifier = 162;
|
|
3561
3836
|
}
|
|
@@ -3697,6 +3972,9 @@ var YGOProMsgReloadField = class extends YGOProMsgBase {
|
|
|
3697
3972
|
|
|
3698
3973
|
// src/protos/msg/proto/remove-counter.ts
|
|
3699
3974
|
var YGOProMsgRemoveCounter = class extends YGOProMsgBase {
|
|
3975
|
+
static {
|
|
3976
|
+
__name(this, "YGOProMsgRemoveCounter");
|
|
3977
|
+
}
|
|
3700
3978
|
static {
|
|
3701
3979
|
this.identifier = OcgcoreCommonConstants.MSG_REMOVE_COUNTER;
|
|
3702
3980
|
}
|
|
@@ -3719,6 +3997,9 @@ __decorateClass([
|
|
|
3719
3997
|
|
|
3720
3998
|
// src/protos/msg/proto/reset-time.ts
|
|
3721
3999
|
var YGOProMsgResetTime = class extends YGOProMsgBase {
|
|
4000
|
+
static {
|
|
4001
|
+
__name(this, "YGOProMsgResetTime");
|
|
4002
|
+
}
|
|
3722
4003
|
static {
|
|
3723
4004
|
this.identifier = OcgcoreCommonConstants.MSG_RESET_TIME;
|
|
3724
4005
|
}
|
|
@@ -3735,6 +4016,9 @@ __decorateClass([
|
|
|
3735
4016
|
|
|
3736
4017
|
// src/protos/msg/proto/retry.ts
|
|
3737
4018
|
var YGOProMsgRetry = class extends YGOProMsgBase {
|
|
4019
|
+
static {
|
|
4020
|
+
__name(this, "YGOProMsgRetry");
|
|
4021
|
+
}
|
|
3738
4022
|
static {
|
|
3739
4023
|
this.identifier = OcgcoreCommonConstants.MSG_RETRY;
|
|
3740
4024
|
}
|
|
@@ -3745,6 +4029,9 @@ var YGOProMsgRetry = class extends YGOProMsgBase {
|
|
|
3745
4029
|
|
|
3746
4030
|
// src/protos/msg/proto/reverse-deck.ts
|
|
3747
4031
|
var YGOProMsgReverseDeck = class extends YGOProMsgBase {
|
|
4032
|
+
static {
|
|
4033
|
+
__name(this, "YGOProMsgReverseDeck");
|
|
4034
|
+
}
|
|
3748
4035
|
static {
|
|
3749
4036
|
this.identifier = OcgcoreCommonConstants.MSG_REVERSE_DECK;
|
|
3750
4037
|
}
|
|
@@ -3752,6 +4039,9 @@ var YGOProMsgReverseDeck = class extends YGOProMsgBase {
|
|
|
3752
4039
|
|
|
3753
4040
|
// src/protos/msg/proto/rock-paper-scissors.ts
|
|
3754
4041
|
var YGOProMsgRockPaperScissors = class extends YGOProMsgResponseBase {
|
|
4042
|
+
static {
|
|
4043
|
+
__name(this, "YGOProMsgRockPaperScissors");
|
|
4044
|
+
}
|
|
3755
4045
|
static {
|
|
3756
4046
|
this.identifier = OcgcoreCommonConstants.MSG_ROCK_PAPER_SCISSORS;
|
|
3757
4047
|
}
|
|
@@ -3782,6 +4072,9 @@ var BattleCmdType = /* @__PURE__ */ ((BattleCmdType2) => {
|
|
|
3782
4072
|
return BattleCmdType2;
|
|
3783
4073
|
})(BattleCmdType || {});
|
|
3784
4074
|
var YGOProMsgSelectBattleCmd_ActivatableInfo = class {
|
|
4075
|
+
static {
|
|
4076
|
+
__name(this, "YGOProMsgSelectBattleCmd_ActivatableInfo");
|
|
4077
|
+
}
|
|
3785
4078
|
};
|
|
3786
4079
|
__decorateClass([
|
|
3787
4080
|
BinaryField("i32", 0)
|
|
@@ -3799,6 +4092,9 @@ __decorateClass([
|
|
|
3799
4092
|
BinaryField("i32", 7)
|
|
3800
4093
|
], YGOProMsgSelectBattleCmd_ActivatableInfo.prototype, "desc", 2);
|
|
3801
4094
|
var YGOProMsgSelectBattleCmd_AttackableInfo = class {
|
|
4095
|
+
static {
|
|
4096
|
+
__name(this, "YGOProMsgSelectBattleCmd_AttackableInfo");
|
|
4097
|
+
}
|
|
3802
4098
|
};
|
|
3803
4099
|
__decorateClass([
|
|
3804
4100
|
BinaryField("i32", 0)
|
|
@@ -3816,6 +4112,9 @@ __decorateClass([
|
|
|
3816
4112
|
BinaryField("u8", 7)
|
|
3817
4113
|
], YGOProMsgSelectBattleCmd_AttackableInfo.prototype, "directAttack", 2);
|
|
3818
4114
|
var YGOProMsgSelectBattleCmd = class extends YGOProMsgResponseBase {
|
|
4115
|
+
static {
|
|
4116
|
+
__name(this, "YGOProMsgSelectBattleCmd");
|
|
4117
|
+
}
|
|
3819
4118
|
static {
|
|
3820
4119
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_BATTLECMD;
|
|
3821
4120
|
}
|
|
@@ -3919,6 +4218,9 @@ __decorateClass([
|
|
|
3919
4218
|
|
|
3920
4219
|
// src/protos/msg/proto/select-card.ts
|
|
3921
4220
|
var YGOProMsgSelectCard_CardInfo = class {
|
|
4221
|
+
static {
|
|
4222
|
+
__name(this, "YGOProMsgSelectCard_CardInfo");
|
|
4223
|
+
}
|
|
3922
4224
|
};
|
|
3923
4225
|
__decorateClass([
|
|
3924
4226
|
BinaryField("i32", 0)
|
|
@@ -3936,6 +4238,9 @@ __decorateClass([
|
|
|
3936
4238
|
BinaryField("u8", 7)
|
|
3937
4239
|
], YGOProMsgSelectCard_CardInfo.prototype, "subsequence", 2);
|
|
3938
4240
|
var YGOProMsgSelectCard = class extends YGOProMsgResponseBase {
|
|
4241
|
+
static {
|
|
4242
|
+
__name(this, "YGOProMsgSelectCard");
|
|
4243
|
+
}
|
|
3939
4244
|
static {
|
|
3940
4245
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_CARD;
|
|
3941
4246
|
}
|
|
@@ -4004,6 +4309,9 @@ __decorateClass([
|
|
|
4004
4309
|
|
|
4005
4310
|
// src/protos/msg/proto/select-chain.ts
|
|
4006
4311
|
var YGOProMsgSelectChain_ChainInfo = class {
|
|
4312
|
+
static {
|
|
4313
|
+
__name(this, "YGOProMsgSelectChain_ChainInfo");
|
|
4314
|
+
}
|
|
4007
4315
|
};
|
|
4008
4316
|
__decorateClass([
|
|
4009
4317
|
BinaryField("u8", 0)
|
|
@@ -4030,6 +4338,9 @@ __decorateClass([
|
|
|
4030
4338
|
BinaryField("i32", 10)
|
|
4031
4339
|
], YGOProMsgSelectChain_ChainInfo.prototype, "desc", 2);
|
|
4032
4340
|
var YGOProMsgSelectChain = class extends YGOProMsgResponseBase {
|
|
4341
|
+
static {
|
|
4342
|
+
__name(this, "YGOProMsgSelectChain");
|
|
4343
|
+
}
|
|
4033
4344
|
static {
|
|
4034
4345
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_CHAIN;
|
|
4035
4346
|
}
|
|
@@ -4087,6 +4398,9 @@ __decorateClass([
|
|
|
4087
4398
|
|
|
4088
4399
|
// src/protos/msg/proto/select-counter.ts
|
|
4089
4400
|
var YGOProMsgSelectCounter_CardInfo = class {
|
|
4401
|
+
static {
|
|
4402
|
+
__name(this, "YGOProMsgSelectCounter_CardInfo");
|
|
4403
|
+
}
|
|
4090
4404
|
};
|
|
4091
4405
|
__decorateClass([
|
|
4092
4406
|
BinaryField("i32", 0)
|
|
@@ -4104,6 +4418,9 @@ __decorateClass([
|
|
|
4104
4418
|
BinaryField("u16", 7)
|
|
4105
4419
|
], YGOProMsgSelectCounter_CardInfo.prototype, "counterCount", 2);
|
|
4106
4420
|
var YGOProMsgSelectCounter = class extends YGOProMsgResponseBase {
|
|
4421
|
+
static {
|
|
4422
|
+
__name(this, "YGOProMsgSelectCounter");
|
|
4423
|
+
}
|
|
4107
4424
|
static {
|
|
4108
4425
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_COUNTER;
|
|
4109
4426
|
}
|
|
@@ -4156,6 +4473,9 @@ __decorateClass([
|
|
|
4156
4473
|
|
|
4157
4474
|
// src/protos/msg/proto/select-place-common.ts
|
|
4158
4475
|
var YGOProMsgSelectPlaceCommon = class extends YGOProMsgResponseBase {
|
|
4476
|
+
static {
|
|
4477
|
+
__name(this, "YGOProMsgSelectPlaceCommon");
|
|
4478
|
+
}
|
|
4159
4479
|
getSelectablePlaces() {
|
|
4160
4480
|
const places = [];
|
|
4161
4481
|
const mask = this.flag >>> 0;
|
|
@@ -4203,6 +4523,9 @@ __decorateClass([
|
|
|
4203
4523
|
|
|
4204
4524
|
// src/protos/msg/proto/select-disfield.ts
|
|
4205
4525
|
var YGOProMsgSelectDisField = class extends YGOProMsgSelectPlaceCommon {
|
|
4526
|
+
static {
|
|
4527
|
+
__name(this, "YGOProMsgSelectDisField");
|
|
4528
|
+
}
|
|
4206
4529
|
static {
|
|
4207
4530
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_DISFIELD;
|
|
4208
4531
|
}
|
|
@@ -4210,6 +4533,9 @@ var YGOProMsgSelectDisField = class extends YGOProMsgSelectPlaceCommon {
|
|
|
4210
4533
|
|
|
4211
4534
|
// src/protos/msg/proto/select-effectyn.ts
|
|
4212
4535
|
var YGOProMsgSelectEffectYn = class extends YGOProMsgResponseBase {
|
|
4536
|
+
static {
|
|
4537
|
+
__name(this, "YGOProMsgSelectEffectYn");
|
|
4538
|
+
}
|
|
4213
4539
|
static {
|
|
4214
4540
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_EFFECTYN;
|
|
4215
4541
|
}
|
|
@@ -4262,6 +4588,9 @@ var IdleCmdType = /* @__PURE__ */ ((IdleCmdType2) => {
|
|
|
4262
4588
|
return IdleCmdType2;
|
|
4263
4589
|
})(IdleCmdType || {});
|
|
4264
4590
|
var YGOProMsgSelectIdleCmd_SimpleCardInfo = class {
|
|
4591
|
+
static {
|
|
4592
|
+
__name(this, "YGOProMsgSelectIdleCmd_SimpleCardInfo");
|
|
4593
|
+
}
|
|
4265
4594
|
};
|
|
4266
4595
|
__decorateClass([
|
|
4267
4596
|
BinaryField("i32", 0)
|
|
@@ -4276,6 +4605,9 @@ __decorateClass([
|
|
|
4276
4605
|
BinaryField("u8", 6)
|
|
4277
4606
|
], YGOProMsgSelectIdleCmd_SimpleCardInfo.prototype, "sequence", 2);
|
|
4278
4607
|
var YGOProMsgSelectIdleCmd_ActivatableInfo = class {
|
|
4608
|
+
static {
|
|
4609
|
+
__name(this, "YGOProMsgSelectIdleCmd_ActivatableInfo");
|
|
4610
|
+
}
|
|
4279
4611
|
};
|
|
4280
4612
|
__decorateClass([
|
|
4281
4613
|
BinaryField("i32", 0)
|
|
@@ -4293,6 +4625,9 @@ __decorateClass([
|
|
|
4293
4625
|
BinaryField("i32", 7)
|
|
4294
4626
|
], YGOProMsgSelectIdleCmd_ActivatableInfo.prototype, "desc", 2);
|
|
4295
4627
|
var YGOProMsgSelectIdleCmd = class extends YGOProMsgResponseBase {
|
|
4628
|
+
static {
|
|
4629
|
+
__name(this, "YGOProMsgSelectIdleCmd");
|
|
4630
|
+
}
|
|
4296
4631
|
static {
|
|
4297
4632
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_IDLECMD;
|
|
4298
4633
|
}
|
|
@@ -4467,6 +4802,9 @@ __decorateClass([
|
|
|
4467
4802
|
|
|
4468
4803
|
// src/protos/msg/proto/select-option.ts
|
|
4469
4804
|
var YGOProMsgSelectOption = class extends YGOProMsgResponseBase {
|
|
4805
|
+
static {
|
|
4806
|
+
__name(this, "YGOProMsgSelectOption");
|
|
4807
|
+
}
|
|
4470
4808
|
static {
|
|
4471
4809
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_OPTION;
|
|
4472
4810
|
}
|
|
@@ -4504,6 +4842,9 @@ __decorateClass([
|
|
|
4504
4842
|
|
|
4505
4843
|
// src/protos/msg/proto/select-place.ts
|
|
4506
4844
|
var YGOProMsgSelectPlace = class extends YGOProMsgSelectPlaceCommon {
|
|
4845
|
+
static {
|
|
4846
|
+
__name(this, "YGOProMsgSelectPlace");
|
|
4847
|
+
}
|
|
4507
4848
|
static {
|
|
4508
4849
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_PLACE;
|
|
4509
4850
|
}
|
|
@@ -4511,6 +4852,9 @@ var YGOProMsgSelectPlace = class extends YGOProMsgSelectPlaceCommon {
|
|
|
4511
4852
|
|
|
4512
4853
|
// src/protos/msg/proto/select-position.ts
|
|
4513
4854
|
var YGOProMsgSelectPosition = class extends YGOProMsgResponseBase {
|
|
4855
|
+
static {
|
|
4856
|
+
__name(this, "YGOProMsgSelectPosition");
|
|
4857
|
+
}
|
|
4514
4858
|
static {
|
|
4515
4859
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_POSITION;
|
|
4516
4860
|
}
|
|
@@ -4536,6 +4880,9 @@ __decorateClass([
|
|
|
4536
4880
|
|
|
4537
4881
|
// src/protos/msg/proto/select-sum.ts
|
|
4538
4882
|
var YGOProMsgSelectSum_CardInfo = class {
|
|
4883
|
+
static {
|
|
4884
|
+
__name(this, "YGOProMsgSelectSum_CardInfo");
|
|
4885
|
+
}
|
|
4539
4886
|
};
|
|
4540
4887
|
__decorateClass([
|
|
4541
4888
|
BinaryField("i32", 0)
|
|
@@ -4553,6 +4900,9 @@ __decorateClass([
|
|
|
4553
4900
|
BinaryField("i32", 7)
|
|
4554
4901
|
], YGOProMsgSelectSum_CardInfo.prototype, "opParam", 2);
|
|
4555
4902
|
var YGOProMsgSelectSum = class extends YGOProMsgResponseBase {
|
|
4903
|
+
static {
|
|
4904
|
+
__name(this, "YGOProMsgSelectSum");
|
|
4905
|
+
}
|
|
4556
4906
|
static {
|
|
4557
4907
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_SUM;
|
|
4558
4908
|
}
|
|
@@ -4628,6 +4978,9 @@ __decorateClass([
|
|
|
4628
4978
|
|
|
4629
4979
|
// src/protos/msg/proto/select-tribute.ts
|
|
4630
4980
|
var YGOProMsgSelectTribute_CardInfo = class {
|
|
4981
|
+
static {
|
|
4982
|
+
__name(this, "YGOProMsgSelectTribute_CardInfo");
|
|
4983
|
+
}
|
|
4631
4984
|
};
|
|
4632
4985
|
__decorateClass([
|
|
4633
4986
|
BinaryField("i32", 0)
|
|
@@ -4645,6 +4998,9 @@ __decorateClass([
|
|
|
4645
4998
|
BinaryField("u8", 7)
|
|
4646
4999
|
], YGOProMsgSelectTribute_CardInfo.prototype, "releaseParam", 2);
|
|
4647
5000
|
var YGOProMsgSelectTribute = class extends YGOProMsgResponseBase {
|
|
5001
|
+
static {
|
|
5002
|
+
__name(this, "YGOProMsgSelectTribute");
|
|
5003
|
+
}
|
|
4648
5004
|
static {
|
|
4649
5005
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_TRIBUTE;
|
|
4650
5006
|
}
|
|
@@ -4713,6 +5069,9 @@ __decorateClass([
|
|
|
4713
5069
|
|
|
4714
5070
|
// src/protos/msg/proto/select-unselect-card.ts
|
|
4715
5071
|
var YGOProMsgSelectUnselectCard_CardInfo = class {
|
|
5072
|
+
static {
|
|
5073
|
+
__name(this, "YGOProMsgSelectUnselectCard_CardInfo");
|
|
5074
|
+
}
|
|
4716
5075
|
};
|
|
4717
5076
|
__decorateClass([
|
|
4718
5077
|
BinaryField("i32", 0)
|
|
@@ -4730,6 +5089,9 @@ __decorateClass([
|
|
|
4730
5089
|
BinaryField("u8", 7)
|
|
4731
5090
|
], YGOProMsgSelectUnselectCard_CardInfo.prototype, "subsequence", 2);
|
|
4732
5091
|
var YGOProMsgSelectUnselectCard = class extends YGOProMsgResponseBase {
|
|
5092
|
+
static {
|
|
5093
|
+
__name(this, "YGOProMsgSelectUnselectCard");
|
|
5094
|
+
}
|
|
4733
5095
|
static {
|
|
4734
5096
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_UNSELECT_CARD;
|
|
4735
5097
|
}
|
|
@@ -4818,6 +5180,9 @@ __decorateClass([
|
|
|
4818
5180
|
|
|
4819
5181
|
// src/protos/msg/proto/select-yesno.ts
|
|
4820
5182
|
var YGOProMsgSelectYesNo = class extends YGOProMsgResponseBase {
|
|
5183
|
+
static {
|
|
5184
|
+
__name(this, "YGOProMsgSelectYesNo");
|
|
5185
|
+
}
|
|
4821
5186
|
static {
|
|
4822
5187
|
this.identifier = OcgcoreCommonConstants.MSG_SELECT_YESNO;
|
|
4823
5188
|
}
|
|
@@ -4843,6 +5208,9 @@ __decorateClass([
|
|
|
4843
5208
|
|
|
4844
5209
|
// src/protos/msg/proto/set.ts
|
|
4845
5210
|
var YGOProMsgSet = class extends YGOProMsgBase {
|
|
5211
|
+
static {
|
|
5212
|
+
__name(this, "YGOProMsgSet");
|
|
5213
|
+
}
|
|
4846
5214
|
static {
|
|
4847
5215
|
this.identifier = OcgcoreCommonConstants.MSG_SET;
|
|
4848
5216
|
}
|
|
@@ -4876,6 +5244,9 @@ __decorateClass([
|
|
|
4876
5244
|
|
|
4877
5245
|
// src/protos/msg/proto/shuffle-deck.ts
|
|
4878
5246
|
var YGOProMsgShuffleDeck = class extends YGOProMsgBase {
|
|
5247
|
+
static {
|
|
5248
|
+
__name(this, "YGOProMsgShuffleDeck");
|
|
5249
|
+
}
|
|
4879
5250
|
static {
|
|
4880
5251
|
this.identifier = OcgcoreCommonConstants.MSG_SHUFFLE_DECK;
|
|
4881
5252
|
}
|
|
@@ -4886,6 +5257,9 @@ __decorateClass([
|
|
|
4886
5257
|
|
|
4887
5258
|
// src/protos/msg/proto/shuffle-extra.ts
|
|
4888
5259
|
var YGOProMsgShuffleExtra = class extends YGOProMsgBase {
|
|
5260
|
+
static {
|
|
5261
|
+
__name(this, "YGOProMsgShuffleExtra");
|
|
5262
|
+
}
|
|
4889
5263
|
static {
|
|
4890
5264
|
this.identifier = OcgcoreCommonConstants.MSG_SHUFFLE_EXTRA;
|
|
4891
5265
|
}
|
|
@@ -4913,6 +5287,9 @@ __decorateClass([
|
|
|
4913
5287
|
|
|
4914
5288
|
// src/protos/msg/proto/shuffle-hand.ts
|
|
4915
5289
|
var YGOProMsgShuffleHand = class extends YGOProMsgBase {
|
|
5290
|
+
static {
|
|
5291
|
+
__name(this, "YGOProMsgShuffleHand");
|
|
5292
|
+
}
|
|
4916
5293
|
static {
|
|
4917
5294
|
this.identifier = OcgcoreCommonConstants.MSG_SHUFFLE_HAND;
|
|
4918
5295
|
}
|
|
@@ -4935,6 +5312,9 @@ __decorateClass([
|
|
|
4935
5312
|
|
|
4936
5313
|
// src/protos/msg/proto/shuffle-set-card.ts
|
|
4937
5314
|
var YGOProMsgShuffleSetCard_CardLocation = class {
|
|
5315
|
+
static {
|
|
5316
|
+
__name(this, "YGOProMsgShuffleSetCard_CardLocation");
|
|
5317
|
+
}
|
|
4938
5318
|
};
|
|
4939
5319
|
__decorateClass([
|
|
4940
5320
|
BinaryField("u8", 0)
|
|
@@ -4949,6 +5329,9 @@ __decorateClass([
|
|
|
4949
5329
|
BinaryField("u8", 3)
|
|
4950
5330
|
], YGOProMsgShuffleSetCard_CardLocation.prototype, "position", 2);
|
|
4951
5331
|
var YGOProMsgShuffleSetCard_SetCardInfo = class {
|
|
5332
|
+
static {
|
|
5333
|
+
__name(this, "YGOProMsgShuffleSetCard_SetCardInfo");
|
|
5334
|
+
}
|
|
4952
5335
|
};
|
|
4953
5336
|
__decorateClass([
|
|
4954
5337
|
BinaryField(() => YGOProMsgShuffleSetCard_CardLocation, 0)
|
|
@@ -4957,6 +5340,9 @@ __decorateClass([
|
|
|
4957
5340
|
BinaryField(() => YGOProMsgShuffleSetCard_CardLocation, 4)
|
|
4958
5341
|
], YGOProMsgShuffleSetCard_SetCardInfo.prototype, "newLocation", 2);
|
|
4959
5342
|
var YGOProMsgShuffleSetCard = class extends YGOProMsgBase {
|
|
5343
|
+
static {
|
|
5344
|
+
__name(this, "YGOProMsgShuffleSetCard");
|
|
5345
|
+
}
|
|
4960
5346
|
static {
|
|
4961
5347
|
this.identifier = OcgcoreCommonConstants.MSG_SHUFFLE_SET_CARD;
|
|
4962
5348
|
}
|
|
@@ -4973,6 +5359,9 @@ __decorateClass([
|
|
|
4973
5359
|
|
|
4974
5360
|
// src/protos/msg/proto/sort-card.ts
|
|
4975
5361
|
var YGOProMsgSortCard_CardInfo = class {
|
|
5362
|
+
static {
|
|
5363
|
+
__name(this, "YGOProMsgSortCard_CardInfo");
|
|
5364
|
+
}
|
|
4976
5365
|
};
|
|
4977
5366
|
__decorateClass([
|
|
4978
5367
|
BinaryField("i32", 0)
|
|
@@ -4987,6 +5376,9 @@ __decorateClass([
|
|
|
4987
5376
|
BinaryField("u8", 6)
|
|
4988
5377
|
], YGOProMsgSortCard_CardInfo.prototype, "sequence", 2);
|
|
4989
5378
|
var YGOProMsgSortCard = class extends YGOProMsgResponseBase {
|
|
5379
|
+
static {
|
|
5380
|
+
__name(this, "YGOProMsgSortCard");
|
|
5381
|
+
}
|
|
4990
5382
|
static {
|
|
4991
5383
|
this.identifier = OcgcoreCommonConstants.MSG_SORT_CARD;
|
|
4992
5384
|
}
|
|
@@ -5039,6 +5431,9 @@ __decorateClass([
|
|
|
5039
5431
|
|
|
5040
5432
|
// src/protos/msg/proto/spsummoned.ts
|
|
5041
5433
|
var YGOProMsgSpSummoned = class extends YGOProMsgBase {
|
|
5434
|
+
static {
|
|
5435
|
+
__name(this, "YGOProMsgSpSummoned");
|
|
5436
|
+
}
|
|
5042
5437
|
static {
|
|
5043
5438
|
this.identifier = OcgcoreCommonConstants.MSG_SPSUMMONED;
|
|
5044
5439
|
}
|
|
@@ -5046,6 +5441,9 @@ var YGOProMsgSpSummoned = class extends YGOProMsgBase {
|
|
|
5046
5441
|
|
|
5047
5442
|
// src/protos/msg/proto/spsummoning.ts
|
|
5048
5443
|
var YGOProMsgSpSummoning = class extends YGOProMsgBase {
|
|
5444
|
+
static {
|
|
5445
|
+
__name(this, "YGOProMsgSpSummoning");
|
|
5446
|
+
}
|
|
5049
5447
|
static {
|
|
5050
5448
|
this.identifier = OcgcoreCommonConstants.MSG_SPSUMMONING;
|
|
5051
5449
|
}
|
|
@@ -5087,6 +5485,9 @@ __decorateClass([
|
|
|
5087
5485
|
|
|
5088
5486
|
// src/protos/msg/proto/start.ts
|
|
5089
5487
|
var YGOProMsgStart_PlayerInfo = class {
|
|
5488
|
+
static {
|
|
5489
|
+
__name(this, "YGOProMsgStart_PlayerInfo");
|
|
5490
|
+
}
|
|
5090
5491
|
};
|
|
5091
5492
|
__decorateClass([
|
|
5092
5493
|
BinaryField("u16", 0)
|
|
@@ -5095,6 +5496,9 @@ __decorateClass([
|
|
|
5095
5496
|
BinaryField("u16", 2)
|
|
5096
5497
|
], YGOProMsgStart_PlayerInfo.prototype, "extraCount", 2);
|
|
5097
5498
|
var YGOProMsgStart = class extends YGOProMsgBase {
|
|
5499
|
+
static {
|
|
5500
|
+
__name(this, "YGOProMsgStart");
|
|
5501
|
+
}
|
|
5098
5502
|
static {
|
|
5099
5503
|
this.identifier = 4;
|
|
5100
5504
|
}
|
|
@@ -5138,6 +5542,9 @@ __decorateClass([
|
|
|
5138
5542
|
|
|
5139
5543
|
// src/protos/msg/proto/summoned.ts
|
|
5140
5544
|
var YGOProMsgSummoned = class extends YGOProMsgBase {
|
|
5545
|
+
static {
|
|
5546
|
+
__name(this, "YGOProMsgSummoned");
|
|
5547
|
+
}
|
|
5141
5548
|
static {
|
|
5142
5549
|
this.identifier = OcgcoreCommonConstants.MSG_SUMMONED;
|
|
5143
5550
|
}
|
|
@@ -5145,6 +5552,9 @@ var YGOProMsgSummoned = class extends YGOProMsgBase {
|
|
|
5145
5552
|
|
|
5146
5553
|
// src/protos/msg/proto/summoning.ts
|
|
5147
5554
|
var YGOProMsgSummoning = class extends YGOProMsgBase {
|
|
5555
|
+
static {
|
|
5556
|
+
__name(this, "YGOProMsgSummoning");
|
|
5557
|
+
}
|
|
5148
5558
|
static {
|
|
5149
5559
|
this.identifier = OcgcoreCommonConstants.MSG_SUMMONING;
|
|
5150
5560
|
}
|
|
@@ -5167,6 +5577,9 @@ __decorateClass([
|
|
|
5167
5577
|
|
|
5168
5578
|
// src/protos/msg/proto/swap.ts
|
|
5169
5579
|
var YGOProMsgSwap_CardLocation = class {
|
|
5580
|
+
static {
|
|
5581
|
+
__name(this, "YGOProMsgSwap_CardLocation");
|
|
5582
|
+
}
|
|
5170
5583
|
};
|
|
5171
5584
|
__decorateClass([
|
|
5172
5585
|
BinaryField("u8", 0)
|
|
@@ -5181,6 +5594,9 @@ __decorateClass([
|
|
|
5181
5594
|
BinaryField("u8", 3)
|
|
5182
5595
|
], YGOProMsgSwap_CardLocation.prototype, "position", 2);
|
|
5183
5596
|
var YGOProMsgSwap = class extends YGOProMsgBase {
|
|
5597
|
+
static {
|
|
5598
|
+
__name(this, "YGOProMsgSwap");
|
|
5599
|
+
}
|
|
5184
5600
|
static {
|
|
5185
5601
|
this.identifier = OcgcoreCommonConstants.MSG_SWAP;
|
|
5186
5602
|
}
|
|
@@ -5194,6 +5610,9 @@ __decorateClass([
|
|
|
5194
5610
|
|
|
5195
5611
|
// src/protos/msg/proto/swap-grave-deck.ts
|
|
5196
5612
|
var YGOProMsgSwapGraveDeck = class extends YGOProMsgBase {
|
|
5613
|
+
static {
|
|
5614
|
+
__name(this, "YGOProMsgSwapGraveDeck");
|
|
5615
|
+
}
|
|
5197
5616
|
static {
|
|
5198
5617
|
this.identifier = OcgcoreCommonConstants.MSG_SWAP_GRAVE_DECK;
|
|
5199
5618
|
}
|
|
@@ -5204,6 +5623,9 @@ __decorateClass([
|
|
|
5204
5623
|
|
|
5205
5624
|
// src/protos/msg/proto/tag-swap.ts
|
|
5206
5625
|
var YGOProMsgTagSwap = class extends YGOProMsgBase {
|
|
5626
|
+
static {
|
|
5627
|
+
__name(this, "YGOProMsgTagSwap");
|
|
5628
|
+
}
|
|
5207
5629
|
static {
|
|
5208
5630
|
this.identifier = OcgcoreCommonConstants.MSG_TAG_SWAP;
|
|
5209
5631
|
}
|
|
@@ -5250,6 +5672,9 @@ __decorateClass([
|
|
|
5250
5672
|
|
|
5251
5673
|
// src/protos/msg/proto/toss-coin.ts
|
|
5252
5674
|
var YGOProMsgTossCoin = class extends YGOProMsgBase {
|
|
5675
|
+
static {
|
|
5676
|
+
__name(this, "YGOProMsgTossCoin");
|
|
5677
|
+
}
|
|
5253
5678
|
static {
|
|
5254
5679
|
this.identifier = OcgcoreCommonConstants.MSG_TOSS_COIN;
|
|
5255
5680
|
}
|
|
@@ -5266,6 +5691,9 @@ __decorateClass([
|
|
|
5266
5691
|
|
|
5267
5692
|
// src/protos/msg/proto/toss-dice.ts
|
|
5268
5693
|
var YGOProMsgTossDice = class extends YGOProMsgBase {
|
|
5694
|
+
static {
|
|
5695
|
+
__name(this, "YGOProMsgTossDice");
|
|
5696
|
+
}
|
|
5269
5697
|
static {
|
|
5270
5698
|
this.identifier = OcgcoreCommonConstants.MSG_TOSS_DICE;
|
|
5271
5699
|
}
|
|
@@ -5282,6 +5710,9 @@ __decorateClass([
|
|
|
5282
5710
|
|
|
5283
5711
|
// src/protos/msg/proto/update-card.ts
|
|
5284
5712
|
var YGOProMsgUpdateCard = class extends YGOProMsgBase {
|
|
5713
|
+
static {
|
|
5714
|
+
__name(this, "YGOProMsgUpdateCard");
|
|
5715
|
+
}
|
|
5285
5716
|
static {
|
|
5286
5717
|
this.identifier = OcgcoreCommonConstants.MSG_UPDATE_CARD;
|
|
5287
5718
|
}
|
|
@@ -5363,6 +5794,9 @@ var YGOProMsgUpdateCard = class extends YGOProMsgBase {
|
|
|
5363
5794
|
|
|
5364
5795
|
// src/protos/msg/proto/update-data.ts
|
|
5365
5796
|
var YGOProMsgUpdateData = class extends YGOProMsgBase {
|
|
5797
|
+
static {
|
|
5798
|
+
__name(this, "YGOProMsgUpdateData");
|
|
5799
|
+
}
|
|
5366
5800
|
static {
|
|
5367
5801
|
this.identifier = 6;
|
|
5368
5802
|
}
|
|
@@ -5471,6 +5905,9 @@ var YGOProMsgUpdateData = class extends YGOProMsgBase {
|
|
|
5471
5905
|
|
|
5472
5906
|
// src/protos/msg/proto/waiting.ts
|
|
5473
5907
|
var YGOProMsgWaiting = class extends YGOProMsgBase {
|
|
5908
|
+
static {
|
|
5909
|
+
__name(this, "YGOProMsgWaiting");
|
|
5910
|
+
}
|
|
5474
5911
|
static {
|
|
5475
5912
|
this.identifier = 3;
|
|
5476
5913
|
}
|
|
@@ -5482,6 +5919,9 @@ var YGOProMsgWaiting = class extends YGOProMsgBase {
|
|
|
5482
5919
|
|
|
5483
5920
|
// src/protos/msg/proto/win.ts
|
|
5484
5921
|
var YGOProMsgWin = class extends YGOProMsgBase {
|
|
5922
|
+
static {
|
|
5923
|
+
__name(this, "YGOProMsgWin");
|
|
5924
|
+
}
|
|
5485
5925
|
static {
|
|
5486
5926
|
this.identifier = OcgcoreCommonConstants.MSG_WIN;
|
|
5487
5927
|
}
|
|
@@ -5582,6 +6022,9 @@ YGOProMessages.register(YGOProMsgReloadField);
|
|
|
5582
6022
|
|
|
5583
6023
|
// src/protos/stoc/proto/game-msg.ts
|
|
5584
6024
|
var YGOProStocGameMsg = class extends YGOProStocBase {
|
|
6025
|
+
static {
|
|
6026
|
+
__name(this, "YGOProStocGameMsg");
|
|
6027
|
+
}
|
|
5585
6028
|
static {
|
|
5586
6029
|
this.identifier = 1;
|
|
5587
6030
|
}
|
|
@@ -5605,6 +6048,9 @@ var YGOProStocGameMsg = class extends YGOProStocBase {
|
|
|
5605
6048
|
|
|
5606
6049
|
// src/protos/stoc/proto/error-msg.ts
|
|
5607
6050
|
var YGOProStocErrorMsg = class extends YGOProStocBase {
|
|
6051
|
+
static {
|
|
6052
|
+
__name(this, "YGOProStocErrorMsg");
|
|
6053
|
+
}
|
|
5608
6054
|
static {
|
|
5609
6055
|
this.identifier = 2;
|
|
5610
6056
|
}
|
|
@@ -5618,6 +6064,9 @@ __decorateClass([
|
|
|
5618
6064
|
|
|
5619
6065
|
// src/protos/stoc/proto/select-hand.ts
|
|
5620
6066
|
var YGOProStocSelectHand = class extends YGOProStocBase {
|
|
6067
|
+
static {
|
|
6068
|
+
__name(this, "YGOProStocSelectHand");
|
|
6069
|
+
}
|
|
5621
6070
|
static {
|
|
5622
6071
|
this.identifier = 3;
|
|
5623
6072
|
}
|
|
@@ -5625,6 +6074,9 @@ var YGOProStocSelectHand = class extends YGOProStocBase {
|
|
|
5625
6074
|
|
|
5626
6075
|
// src/protos/stoc/proto/select-tp.ts
|
|
5627
6076
|
var YGOProStocSelectTp = class extends YGOProStocBase {
|
|
6077
|
+
static {
|
|
6078
|
+
__name(this, "YGOProStocSelectTp");
|
|
6079
|
+
}
|
|
5628
6080
|
static {
|
|
5629
6081
|
this.identifier = 4;
|
|
5630
6082
|
}
|
|
@@ -5632,6 +6084,9 @@ var YGOProStocSelectTp = class extends YGOProStocBase {
|
|
|
5632
6084
|
|
|
5633
6085
|
// src/protos/stoc/proto/hand-result.ts
|
|
5634
6086
|
var YGOProStocHandResult = class extends YGOProStocBase {
|
|
6087
|
+
static {
|
|
6088
|
+
__name(this, "YGOProStocHandResult");
|
|
6089
|
+
}
|
|
5635
6090
|
static {
|
|
5636
6091
|
this.identifier = 5;
|
|
5637
6092
|
}
|
|
@@ -5645,6 +6100,9 @@ __decorateClass([
|
|
|
5645
6100
|
|
|
5646
6101
|
// src/protos/stoc/proto/tp-result.ts
|
|
5647
6102
|
var YGOProStocTpResult = class extends YGOProStocBase {
|
|
6103
|
+
static {
|
|
6104
|
+
__name(this, "YGOProStocTpResult");
|
|
6105
|
+
}
|
|
5648
6106
|
static {
|
|
5649
6107
|
this.identifier = 6;
|
|
5650
6108
|
}
|
|
@@ -5652,6 +6110,9 @@ var YGOProStocTpResult = class extends YGOProStocBase {
|
|
|
5652
6110
|
|
|
5653
6111
|
// src/protos/stoc/proto/change-side.ts
|
|
5654
6112
|
var YGOProStocChangeSide = class extends YGOProStocBase {
|
|
6113
|
+
static {
|
|
6114
|
+
__name(this, "YGOProStocChangeSide");
|
|
6115
|
+
}
|
|
5655
6116
|
static {
|
|
5656
6117
|
this.identifier = 7;
|
|
5657
6118
|
}
|
|
@@ -5659,6 +6120,9 @@ var YGOProStocChangeSide = class extends YGOProStocBase {
|
|
|
5659
6120
|
|
|
5660
6121
|
// src/protos/stoc/proto/waiting-side.ts
|
|
5661
6122
|
var YGOProStocWaitingSide = class extends YGOProStocBase {
|
|
6123
|
+
static {
|
|
6124
|
+
__name(this, "YGOProStocWaitingSide");
|
|
6125
|
+
}
|
|
5662
6126
|
static {
|
|
5663
6127
|
this.identifier = 8;
|
|
5664
6128
|
}
|
|
@@ -5666,6 +6130,9 @@ var YGOProStocWaitingSide = class extends YGOProStocBase {
|
|
|
5666
6130
|
|
|
5667
6131
|
// src/protos/stoc/proto/deck-count.ts
|
|
5668
6132
|
var YGOProStocDeckCount_DeckInfo = class {
|
|
6133
|
+
static {
|
|
6134
|
+
__name(this, "YGOProStocDeckCount_DeckInfo");
|
|
6135
|
+
}
|
|
5669
6136
|
};
|
|
5670
6137
|
__decorateClass([
|
|
5671
6138
|
BinaryField("i16", 0)
|
|
@@ -5677,6 +6144,9 @@ __decorateClass([
|
|
|
5677
6144
|
BinaryField("i16", 4)
|
|
5678
6145
|
], YGOProStocDeckCount_DeckInfo.prototype, "side", 2);
|
|
5679
6146
|
var YGOProStocDeckCount = class extends YGOProStocBase {
|
|
6147
|
+
static {
|
|
6148
|
+
__name(this, "YGOProStocDeckCount");
|
|
6149
|
+
}
|
|
5680
6150
|
static {
|
|
5681
6151
|
this.identifier = 9;
|
|
5682
6152
|
}
|
|
@@ -5690,6 +6160,9 @@ __decorateClass([
|
|
|
5690
6160
|
|
|
5691
6161
|
// src/protos/stoc/proto/create-game.ts
|
|
5692
6162
|
var YGOProStocCreateGame = class extends YGOProStocBase {
|
|
6163
|
+
static {
|
|
6164
|
+
__name(this, "YGOProStocCreateGame");
|
|
6165
|
+
}
|
|
5693
6166
|
static {
|
|
5694
6167
|
this.identifier = 17;
|
|
5695
6168
|
}
|
|
@@ -5700,6 +6173,9 @@ __decorateClass([
|
|
|
5700
6173
|
|
|
5701
6174
|
// src/protos/stoc/proto/join-game.ts
|
|
5702
6175
|
var YGOProStocJoinGame = class extends YGOProStocBase {
|
|
6176
|
+
static {
|
|
6177
|
+
__name(this, "YGOProStocJoinGame");
|
|
6178
|
+
}
|
|
5703
6179
|
static {
|
|
5704
6180
|
this.identifier = 18;
|
|
5705
6181
|
}
|
|
@@ -5710,6 +6186,9 @@ __decorateClass([
|
|
|
5710
6186
|
|
|
5711
6187
|
// src/protos/stoc/proto/type-change.ts
|
|
5712
6188
|
var YGOProStocTypeChange = class extends YGOProStocBase {
|
|
6189
|
+
static {
|
|
6190
|
+
__name(this, "YGOProStocTypeChange");
|
|
6191
|
+
}
|
|
5713
6192
|
static {
|
|
5714
6193
|
this.identifier = 19;
|
|
5715
6194
|
}
|
|
@@ -5743,6 +6222,9 @@ __decorateClass([
|
|
|
5743
6222
|
|
|
5744
6223
|
// src/protos/stoc/proto/leave-game.ts
|
|
5745
6224
|
var YGOProStocLeaveGame = class extends YGOProStocBase {
|
|
6225
|
+
static {
|
|
6226
|
+
__name(this, "YGOProStocLeaveGame");
|
|
6227
|
+
}
|
|
5746
6228
|
static {
|
|
5747
6229
|
this.identifier = 20;
|
|
5748
6230
|
}
|
|
@@ -5753,6 +6235,9 @@ __decorateClass([
|
|
|
5753
6235
|
|
|
5754
6236
|
// src/protos/stoc/proto/duel-start.ts
|
|
5755
6237
|
var YGOProStocDuelStart = class extends YGOProStocBase {
|
|
6238
|
+
static {
|
|
6239
|
+
__name(this, "YGOProStocDuelStart");
|
|
6240
|
+
}
|
|
5756
6241
|
static {
|
|
5757
6242
|
this.identifier = 21;
|
|
5758
6243
|
}
|
|
@@ -5760,6 +6245,9 @@ var YGOProStocDuelStart = class extends YGOProStocBase {
|
|
|
5760
6245
|
|
|
5761
6246
|
// src/protos/stoc/proto/duel-end.ts
|
|
5762
6247
|
var YGOProStocDuelEnd = class extends YGOProStocBase {
|
|
6248
|
+
static {
|
|
6249
|
+
__name(this, "YGOProStocDuelEnd");
|
|
6250
|
+
}
|
|
5763
6251
|
static {
|
|
5764
6252
|
this.identifier = 22;
|
|
5765
6253
|
}
|
|
@@ -5768,6 +6256,9 @@ var YGOProStocDuelEnd = class extends YGOProStocBase {
|
|
|
5768
6256
|
// src/protos/stoc/proto/replay.ts
|
|
5769
6257
|
import { YGOProYrp } from "ygopro-yrp-encode";
|
|
5770
6258
|
var YGOProStocReplay = class extends YGOProStocBase {
|
|
6259
|
+
static {
|
|
6260
|
+
__name(this, "YGOProStocReplay");
|
|
6261
|
+
}
|
|
5771
6262
|
static {
|
|
5772
6263
|
this.identifier = 23;
|
|
5773
6264
|
}
|
|
@@ -5797,6 +6288,9 @@ var YGOProStocReplay = class extends YGOProStocBase {
|
|
|
5797
6288
|
|
|
5798
6289
|
// src/protos/stoc/proto/time-limit.ts
|
|
5799
6290
|
var YGOProStocTimeLimit = class extends YGOProStocBase {
|
|
6291
|
+
static {
|
|
6292
|
+
__name(this, "YGOProStocTimeLimit");
|
|
6293
|
+
}
|
|
5800
6294
|
static {
|
|
5801
6295
|
this.identifier = 24;
|
|
5802
6296
|
}
|
|
@@ -5809,12 +6303,16 @@ __decorateClass([
|
|
|
5809
6303
|
], YGOProStocTimeLimit.prototype, "left_time", 2);
|
|
5810
6304
|
|
|
5811
6305
|
// src/protos/stoc/proto/chat.ts
|
|
5812
|
-
var
|
|
6306
|
+
var STOC_CHAT_MAX_LENGTH = 256;
|
|
6307
|
+
var YGOProStocChat = class extends YGOProStocBase {
|
|
6308
|
+
static {
|
|
6309
|
+
__name(this, "YGOProStocChat");
|
|
6310
|
+
}
|
|
5813
6311
|
static {
|
|
5814
6312
|
this.identifier = 25;
|
|
5815
6313
|
}
|
|
5816
6314
|
static {
|
|
5817
|
-
this.MAX_LENGTH =
|
|
6315
|
+
this.MAX_LENGTH = STOC_CHAT_MAX_LENGTH;
|
|
5818
6316
|
}
|
|
5819
6317
|
constructor() {
|
|
5820
6318
|
super();
|
|
@@ -5835,7 +6333,7 @@ var YGOProStocChat = class _YGOProStocChat extends YGOProStocBase {
|
|
|
5835
6333
|
return this;
|
|
5836
6334
|
}
|
|
5837
6335
|
toPayload() {
|
|
5838
|
-
const text = this.msg.length >
|
|
6336
|
+
const text = this.msg.length > STOC_CHAT_MAX_LENGTH ? this.msg.substring(0, STOC_CHAT_MAX_LENGTH) : this.msg;
|
|
5839
6337
|
const utf16 = new Uint16Array(text.length + 1);
|
|
5840
6338
|
for (let i = 0; i < text.length; i++) {
|
|
5841
6339
|
utf16[i] = text.charCodeAt(i);
|
|
@@ -5860,6 +6358,9 @@ var YGOProStocChat = class _YGOProStocChat extends YGOProStocBase {
|
|
|
5860
6358
|
|
|
5861
6359
|
// src/protos/stoc/proto/hs-player-enter.ts
|
|
5862
6360
|
var YGOProStocHsPlayerEnter = class extends YGOProStocBase {
|
|
6361
|
+
static {
|
|
6362
|
+
__name(this, "YGOProStocHsPlayerEnter");
|
|
6363
|
+
}
|
|
5863
6364
|
static {
|
|
5864
6365
|
this.identifier = 32;
|
|
5865
6366
|
}
|
|
@@ -5874,6 +6375,9 @@ __decorateClass([
|
|
|
5874
6375
|
|
|
5875
6376
|
// src/protos/stoc/proto/hs-player-change.ts
|
|
5876
6377
|
var YGOProStocHsPlayerChange = class extends YGOProStocBase {
|
|
6378
|
+
static {
|
|
6379
|
+
__name(this, "YGOProStocHsPlayerChange");
|
|
6380
|
+
}
|
|
5877
6381
|
static {
|
|
5878
6382
|
this.identifier = 33;
|
|
5879
6383
|
}
|
|
@@ -5903,6 +6407,9 @@ __decorateClass([
|
|
|
5903
6407
|
|
|
5904
6408
|
// src/protos/stoc/proto/hs-watch-change.ts
|
|
5905
6409
|
var YGOProStocHsWatchChange = class extends YGOProStocBase {
|
|
6410
|
+
static {
|
|
6411
|
+
__name(this, "YGOProStocHsWatchChange");
|
|
6412
|
+
}
|
|
5906
6413
|
static {
|
|
5907
6414
|
this.identifier = 34;
|
|
5908
6415
|
}
|
|
@@ -5913,6 +6420,9 @@ __decorateClass([
|
|
|
5913
6420
|
|
|
5914
6421
|
// src/protos/stoc/proto/teammate-surrender.ts
|
|
5915
6422
|
var YGOProStocTeammateSurrender = class extends YGOProStocBase {
|
|
6423
|
+
static {
|
|
6424
|
+
__name(this, "YGOProStocTeammateSurrender");
|
|
6425
|
+
}
|
|
5916
6426
|
static {
|
|
5917
6427
|
this.identifier = 35;
|
|
5918
6428
|
}
|
|
@@ -5920,6 +6430,9 @@ var YGOProStocTeammateSurrender = class extends YGOProStocBase {
|
|
|
5920
6430
|
|
|
5921
6431
|
// src/protos/stoc/proto/field-finish.ts
|
|
5922
6432
|
var YGOProStocFieldFinish = class extends YGOProStocBase {
|
|
6433
|
+
static {
|
|
6434
|
+
__name(this, "YGOProStocFieldFinish");
|
|
6435
|
+
}
|
|
5923
6436
|
static {
|
|
5924
6437
|
this.identifier = 48;
|
|
5925
6438
|
}
|
|
@@ -5927,6 +6440,9 @@ var YGOProStocFieldFinish = class extends YGOProStocBase {
|
|
|
5927
6440
|
|
|
5928
6441
|
// src/protos/stoc/proto/srvpro-roomlist.ts
|
|
5929
6442
|
var SrvproRoomInfo = class {
|
|
6443
|
+
static {
|
|
6444
|
+
__name(this, "SrvproRoomInfo");
|
|
6445
|
+
}
|
|
5930
6446
|
};
|
|
5931
6447
|
__decorateClass([
|
|
5932
6448
|
BinaryField("utf8", 0, 64)
|
|
@@ -5959,6 +6475,9 @@ __decorateClass([
|
|
|
5959
6475
|
BinaryField("i32", 329)
|
|
5960
6476
|
], SrvproRoomInfo.prototype, "player2_lp", 2);
|
|
5961
6477
|
var YGOProStocSrvproRoomlist = class extends YGOProStocBase {
|
|
6478
|
+
static {
|
|
6479
|
+
__name(this, "YGOProStocSrvproRoomlist");
|
|
6480
|
+
}
|
|
5962
6481
|
static {
|
|
5963
6482
|
this.identifier = 49;
|
|
5964
6483
|
}
|