|
@@ -289,13 +289,12 @@ export class Cost {
|
289
|
289
|
|
290
|
290
|
|
291
|
291
|
|
292
|
|
-export class HeroQualityWorth {
|
|
292
|
+export class BattleSummonWeight {
|
293
|
293
|
|
294
|
294
|
constructor(_buf_: ByteBuf) {
|
295
|
295
|
this.idx = _buf_.ReadInt()
|
296
|
296
|
this.quality = _buf_.ReadInt()
|
297
|
|
- this.gold = _buf_.ReadInt()
|
298
|
|
- this.gem = _buf_.ReadInt()
|
|
297
|
+ this.weight = _buf_.ReadInt()
|
299
|
298
|
}
|
300
|
299
|
|
301
|
300
|
/**
|
|
@@ -307,19 +306,14 @@ export class HeroQualityWorth {
|
307
|
306
|
*/
|
308
|
307
|
readonly quality: Quality
|
309
|
308
|
/**
|
310
|
|
- * 局内金币
|
311
|
|
- */
|
312
|
|
- readonly gold: number
|
313
|
|
- /**
|
314
|
|
- * 局内宝石
|
|
309
|
+ * 权重
|
315
|
310
|
*/
|
316
|
|
- readonly gem: number
|
|
311
|
+ readonly weight: number
|
317
|
312
|
|
318
|
313
|
resolve(tables:Tables) {
|
319
|
314
|
|
320
|
315
|
|
321
|
316
|
|
322
|
|
-
|
323
|
317
|
}
|
324
|
318
|
}
|
325
|
319
|
|
|
@@ -327,31 +321,43 @@ export class HeroQualityWorth {
|
327
|
321
|
|
328
|
322
|
|
329
|
323
|
|
330
|
|
-export class Item {
|
|
324
|
+export class WaveRewards {
|
331
|
325
|
|
332
|
326
|
constructor(_buf_: ByteBuf) {
|
333
|
327
|
this.idx = _buf_.ReadInt()
|
334
|
|
- this.type = _buf_.ReadInt()
|
335
|
|
- this.name = _buf_.ReadString()
|
|
328
|
+ this.waveMin = _buf_.ReadInt()
|
|
329
|
+ this.waveMax = _buf_.ReadInt()
|
|
330
|
+ this.level = _buf_.ReadInt()
|
|
331
|
+ { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.rewards = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = new Common.Reward(_buf_); this.rewards.push(_e0);}}
|
336
|
332
|
}
|
337
|
333
|
|
338
|
334
|
/**
|
339
|
|
- * 道具ID
|
|
335
|
+ * idx
|
340
|
336
|
*/
|
341
|
337
|
readonly idx: number
|
342
|
338
|
/**
|
343
|
|
- * 类型
|
|
339
|
+ * 波数下限
|
344
|
340
|
*/
|
345
|
|
- readonly type: number
|
|
341
|
+ readonly waveMin: number
|
346
|
342
|
/**
|
347
|
|
- * 道具名
|
|
343
|
+ * 波数上限
|
348
|
344
|
*/
|
349
|
|
- readonly name: string
|
|
345
|
+ readonly waveMax: number
|
|
346
|
+ /**
|
|
347
|
+ * 难度
|
|
348
|
+ */
|
|
349
|
+ readonly level: number
|
|
350
|
+ /**
|
|
351
|
+ * 奖励列表
|
|
352
|
+ */
|
|
353
|
+ readonly rewards: Common.Reward[]
|
350
|
354
|
|
351
|
355
|
resolve(tables:Tables) {
|
352
|
356
|
|
353
|
357
|
|
354
|
358
|
|
|
359
|
+
|
|
360
|
+ for (let _e of this.rewards) { _e?.resolve(tables); }
|
355
|
361
|
}
|
356
|
362
|
}
|
357
|
363
|
|
|
@@ -359,13 +365,13 @@ export class Item {
|
359
|
365
|
|
360
|
366
|
|
361
|
367
|
|
362
|
|
-export class BattleSpacialSummon {
|
|
368
|
+export class HeroQualityWorth {
|
363
|
369
|
|
364
|
370
|
constructor(_buf_: ByteBuf) {
|
365
|
371
|
this.idx = _buf_.ReadInt()
|
366
|
372
|
this.quality = _buf_.ReadInt()
|
367
|
|
- this.weight = _buf_.ReadInt()
|
368
|
|
- this.costgem = _buf_.ReadInt()
|
|
373
|
+ this.gold = _buf_.ReadInt()
|
|
374
|
+ this.gem = _buf_.ReadInt()
|
369
|
375
|
}
|
370
|
376
|
|
371
|
377
|
/**
|
|
@@ -377,13 +383,13 @@ export class BattleSpacialSummon {
|
377
|
383
|
*/
|
378
|
384
|
readonly quality: Quality
|
379
|
385
|
/**
|
380
|
|
- * 权重
|
|
386
|
+ * 局内金币
|
381
|
387
|
*/
|
382
|
|
- readonly weight: number
|
|
388
|
+ readonly gold: number
|
383
|
389
|
/**
|
384
|
|
- * 消耗宝石数量
|
|
390
|
+ * 局内宝石
|
385
|
391
|
*/
|
386
|
|
- readonly costgem: number
|
|
392
|
+ readonly gem: number
|
387
|
393
|
|
388
|
394
|
resolve(tables:Tables) {
|
389
|
395
|
|
|
@@ -429,82 +435,6 @@ export class System {
|
429
|
435
|
|
430
|
436
|
|
431
|
437
|
|
432
|
|
-export class BattleSummonWeight {
|
433
|
|
-
|
434
|
|
- constructor(_buf_: ByteBuf) {
|
435
|
|
- this.idx = _buf_.ReadInt()
|
436
|
|
- this.quality = _buf_.ReadInt()
|
437
|
|
- this.weight = _buf_.ReadInt()
|
438
|
|
- }
|
439
|
|
-
|
440
|
|
- /**
|
441
|
|
- * 唯一id
|
442
|
|
- */
|
443
|
|
- readonly idx: number
|
444
|
|
- /**
|
445
|
|
- * 品质
|
446
|
|
- */
|
447
|
|
- readonly quality: Quality
|
448
|
|
- /**
|
449
|
|
- * 权重
|
450
|
|
- */
|
451
|
|
- readonly weight: number
|
452
|
|
-
|
453
|
|
- resolve(tables:Tables) {
|
454
|
|
-
|
455
|
|
-
|
456
|
|
-
|
457
|
|
- }
|
458
|
|
-}
|
459
|
|
-
|
460
|
|
-
|
461
|
|
-
|
462
|
|
-
|
463
|
|
-
|
464
|
|
-export class WaveRewards {
|
465
|
|
-
|
466
|
|
- constructor(_buf_: ByteBuf) {
|
467
|
|
- this.idx = _buf_.ReadInt()
|
468
|
|
- this.waveMin = _buf_.ReadInt()
|
469
|
|
- this.waveMax = _buf_.ReadInt()
|
470
|
|
- this.level = _buf_.ReadInt()
|
471
|
|
- { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.rewards = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = new Common.Reward(_buf_); this.rewards.push(_e0);}}
|
472
|
|
- }
|
473
|
|
-
|
474
|
|
- /**
|
475
|
|
- * idx
|
476
|
|
- */
|
477
|
|
- readonly idx: number
|
478
|
|
- /**
|
479
|
|
- * 波数下限
|
480
|
|
- */
|
481
|
|
- readonly waveMin: number
|
482
|
|
- /**
|
483
|
|
- * 波数上限
|
484
|
|
- */
|
485
|
|
- readonly waveMax: number
|
486
|
|
- /**
|
487
|
|
- * 难度
|
488
|
|
- */
|
489
|
|
- readonly level: number
|
490
|
|
- /**
|
491
|
|
- * 奖励列表
|
492
|
|
- */
|
493
|
|
- readonly rewards: Common.Reward[]
|
494
|
|
-
|
495
|
|
- resolve(tables:Tables) {
|
496
|
|
-
|
497
|
|
-
|
498
|
|
-
|
499
|
|
-
|
500
|
|
- for (let _e of this.rewards) { _e?.resolve(tables); }
|
501
|
|
- }
|
502
|
|
-}
|
503
|
|
-
|
504
|
|
-
|
505
|
|
-
|
506
|
|
-
|
507
|
|
-
|
508
|
438
|
export class SkillBuff {
|
509
|
439
|
|
510
|
440
|
constructor(_buf_: ByteBuf) {
|
|
@@ -665,6 +595,76 @@ export class Hero {
|
665
|
595
|
|
666
|
596
|
|
667
|
597
|
|
|
598
|
+export class Item {
|
|
599
|
+
|
|
600
|
+ constructor(_buf_: ByteBuf) {
|
|
601
|
+ this.idx = _buf_.ReadInt()
|
|
602
|
+ this.type = _buf_.ReadInt()
|
|
603
|
+ this.name = _buf_.ReadString()
|
|
604
|
+ }
|
|
605
|
+
|
|
606
|
+ /**
|
|
607
|
+ * 道具ID
|
|
608
|
+ */
|
|
609
|
+ readonly idx: number
|
|
610
|
+ /**
|
|
611
|
+ * 类型
|
|
612
|
+ */
|
|
613
|
+ readonly type: number
|
|
614
|
+ /**
|
|
615
|
+ * 道具名
|
|
616
|
+ */
|
|
617
|
+ readonly name: string
|
|
618
|
+
|
|
619
|
+ resolve(tables:Tables) {
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+ }
|
|
624
|
+}
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+export class BattleSpacialSummon {
|
|
631
|
+
|
|
632
|
+ constructor(_buf_: ByteBuf) {
|
|
633
|
+ this.idx = _buf_.ReadInt()
|
|
634
|
+ this.quality = _buf_.ReadInt()
|
|
635
|
+ this.weight = _buf_.ReadInt()
|
|
636
|
+ this.costgem = _buf_.ReadInt()
|
|
637
|
+ }
|
|
638
|
+
|
|
639
|
+ /**
|
|
640
|
+ * 唯一id
|
|
641
|
+ */
|
|
642
|
+ readonly idx: number
|
|
643
|
+ /**
|
|
644
|
+ * 品质
|
|
645
|
+ */
|
|
646
|
+ readonly quality: Quality
|
|
647
|
+ /**
|
|
648
|
+ * 权重
|
|
649
|
+ */
|
|
650
|
+ readonly weight: number
|
|
651
|
+ /**
|
|
652
|
+ * 消耗宝石数量
|
|
653
|
+ */
|
|
654
|
+ readonly costgem: number
|
|
655
|
+
|
|
656
|
+ resolve(tables:Tables) {
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+ }
|
|
662
|
+}
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
668
|
668
|
export class Skill {
|
669
|
669
|
|
670
|
670
|
constructor(_buf_: ByteBuf) {
|