|
@@ -289,31 +289,103 @@ export class Cost {
|
289
|
289
|
|
290
|
290
|
|
291
|
291
|
|
292
|
|
-export class Item {
|
|
292
|
+export class SkillBuff {
|
293
|
293
|
|
294
|
294
|
constructor(_buf_: ByteBuf) {
|
295
|
295
|
this.idx = _buf_.ReadInt()
|
|
296
|
+ this.remark = _buf_.ReadString()
|
296
|
297
|
this.type = _buf_.ReadInt()
|
297
|
|
- this.name = _buf_.ReadString()
|
|
298
|
+ this.parameters = _buf_.ReadString()
|
|
299
|
+ this.probability = _buf_.ReadInt()
|
|
300
|
+ this.triggerCondition = _buf_.ReadString()
|
|
301
|
+ this.effectType = _buf_.ReadInt()
|
|
302
|
+ this.duration = _buf_.ReadInt()
|
|
303
|
+ this.overlapTimes = _buf_.ReadInt()
|
|
304
|
+ this.uniqueGain = _buf_.ReadBool()
|
|
305
|
+ this.halo = _buf_.ReadBool()
|
|
306
|
+ this.attributes = _buf_.ReadString()
|
|
307
|
+ this.mixBufficon = _buf_.ReadInt()
|
|
308
|
+ this.skillShowId = _buf_.ReadInt()
|
|
309
|
+ this.floatingTextId = _buf_.ReadInt()
|
298
|
310
|
}
|
299
|
311
|
|
300
|
312
|
/**
|
301
|
|
- * 道具ID
|
|
313
|
+ * buffid
|
302
|
314
|
*/
|
303
|
315
|
readonly idx: number
|
304
|
316
|
/**
|
305
|
|
- * 类型
|
|
317
|
+ * 备注
|
|
318
|
+ */
|
|
319
|
+ readonly remark: string
|
|
320
|
+ /**
|
|
321
|
+ * buff类型
|
306
|
322
|
*/
|
307
|
323
|
readonly type: number
|
308
|
324
|
/**
|
309
|
|
- * 道具名
|
|
325
|
+ * buff参数
|
310
|
326
|
*/
|
311
|
|
- readonly name: string
|
|
327
|
+ readonly parameters: string
|
|
328
|
+ /**
|
|
329
|
+ * 触发概率
|
|
330
|
+ */
|
|
331
|
+ readonly probability: number
|
|
332
|
+ /**
|
|
333
|
+ * 触发条件
|
|
334
|
+ */
|
|
335
|
+ readonly triggerCondition: string
|
|
336
|
+ /**
|
|
337
|
+ * 效果类型
|
|
338
|
+ */
|
|
339
|
+ readonly effectType: number
|
|
340
|
+ /**
|
|
341
|
+ * 持续时间
|
|
342
|
+ */
|
|
343
|
+ readonly duration: number
|
|
344
|
+ /**
|
|
345
|
+ * 叠加次数
|
|
346
|
+ */
|
|
347
|
+ readonly overlapTimes: number
|
|
348
|
+ /**
|
|
349
|
+ * 唯一增益
|
|
350
|
+ */
|
|
351
|
+ readonly uniqueGain: boolean
|
|
352
|
+ /**
|
|
353
|
+ * 是否是光环
|
|
354
|
+ */
|
|
355
|
+ readonly halo: boolean
|
|
356
|
+ /**
|
|
357
|
+ * buff增加的属性
|
|
358
|
+ */
|
|
359
|
+ readonly attributes: string
|
|
360
|
+ /**
|
|
361
|
+ * 是否合并
|
|
362
|
+ */
|
|
363
|
+ readonly mixBufficon: number
|
|
364
|
+ /**
|
|
365
|
+ * 效果id
|
|
366
|
+ */
|
|
367
|
+ readonly skillShowId: number
|
|
368
|
+ /**
|
|
369
|
+ * 飘字id
|
|
370
|
+ */
|
|
371
|
+ readonly floatingTextId: number
|
312
|
372
|
|
313
|
373
|
resolve(tables:Tables) {
|
314
|
374
|
|
315
|
375
|
|
316
|
376
|
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
317
|
389
|
}
|
318
|
390
|
}
|
319
|
391
|
|
|
@@ -413,37 +485,43 @@ export class Skill {
|
413
|
485
|
|
414
|
486
|
|
415
|
487
|
|
416
|
|
-export class HeroQualityWorth {
|
|
488
|
+export class WaveRewards {
|
417
|
489
|
|
418
|
490
|
constructor(_buf_: ByteBuf) {
|
419
|
491
|
this.idx = _buf_.ReadInt()
|
420
|
|
- this.quality = _buf_.ReadInt()
|
421
|
|
- this.gold = _buf_.ReadInt()
|
422
|
|
- this.gem = _buf_.ReadInt()
|
|
492
|
+ this.waveMin = _buf_.ReadInt()
|
|
493
|
+ this.waveMax = _buf_.ReadInt()
|
|
494
|
+ this.level = _buf_.ReadInt()
|
|
495
|
+ { 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);}}
|
423
|
496
|
}
|
424
|
497
|
|
425
|
498
|
/**
|
426
|
|
- * 唯一id
|
|
499
|
+ * idx
|
427
|
500
|
*/
|
428
|
501
|
readonly idx: number
|
429
|
502
|
/**
|
430
|
|
- * 品质
|
|
503
|
+ * 波数下限
|
431
|
504
|
*/
|
432
|
|
- readonly quality: Quality
|
|
505
|
+ readonly waveMin: number
|
433
|
506
|
/**
|
434
|
|
- * 局内金币
|
|
507
|
+ * 波数上限
|
435
|
508
|
*/
|
436
|
|
- readonly gold: number
|
|
509
|
+ readonly waveMax: number
|
437
|
510
|
/**
|
438
|
|
- * 局内宝石
|
|
511
|
+ * 难度
|
439
|
512
|
*/
|
440
|
|
- readonly gem: number
|
|
513
|
+ readonly level: number
|
|
514
|
+ /**
|
|
515
|
+ * 奖励列表
|
|
516
|
+ */
|
|
517
|
+ readonly rewards: Common.Reward[]
|
441
|
518
|
|
442
|
519
|
resolve(tables:Tables) {
|
443
|
520
|
|
444
|
521
|
|
445
|
522
|
|
446
|
523
|
|
|
524
|
+ for (let _e of this.rewards) { _e?.resolve(tables); }
|
447
|
525
|
}
|
448
|
526
|
}
|
449
|
527
|
|
|
@@ -451,31 +529,37 @@ export class HeroQualityWorth {
|
451
|
529
|
|
452
|
530
|
|
453
|
531
|
|
454
|
|
-export class System {
|
|
532
|
+export class BattleSpacialSummon {
|
455
|
533
|
|
456
|
534
|
constructor(_buf_: ByteBuf) {
|
457
|
535
|
this.idx = _buf_.ReadInt()
|
458
|
|
- this.mainKey = _buf_.ReadString()
|
459
|
|
- this.value = _buf_.ReadString()
|
|
536
|
+ this.quality = _buf_.ReadInt()
|
|
537
|
+ this.weight = _buf_.ReadInt()
|
|
538
|
+ this.costgem = _buf_.ReadInt()
|
460
|
539
|
}
|
461
|
540
|
|
462
|
541
|
/**
|
463
|
|
- * IDX
|
|
542
|
+ * 唯一id
|
464
|
543
|
*/
|
465
|
544
|
readonly idx: number
|
466
|
545
|
/**
|
467
|
|
- * 常量主键
|
|
546
|
+ * 品质
|
468
|
547
|
*/
|
469
|
|
- readonly mainKey: string
|
|
548
|
+ readonly quality: Quality
|
470
|
549
|
/**
|
471
|
|
- * 常量值
|
|
550
|
+ * 权重
|
472
|
551
|
*/
|
473
|
|
- readonly value: string
|
|
552
|
+ readonly weight: number
|
|
553
|
+ /**
|
|
554
|
+ * 消耗宝石数量
|
|
555
|
+ */
|
|
556
|
+ readonly costgem: number
|
474
|
557
|
|
475
|
558
|
resolve(tables:Tables) {
|
476
|
559
|
|
477
|
560
|
|
478
|
561
|
|
|
562
|
+
|
479
|
563
|
}
|
480
|
564
|
}
|
481
|
565
|
|
|
@@ -483,37 +567,31 @@ export class System {
|
483
|
567
|
|
484
|
568
|
|
485
|
569
|
|
486
|
|
-export class BattleSpacialSummon {
|
|
570
|
+export class System {
|
487
|
571
|
|
488
|
572
|
constructor(_buf_: ByteBuf) {
|
489
|
573
|
this.idx = _buf_.ReadInt()
|
490
|
|
- this.quality = _buf_.ReadInt()
|
491
|
|
- this.weight = _buf_.ReadInt()
|
492
|
|
- this.costgem = _buf_.ReadInt()
|
|
574
|
+ this.mainKey = _buf_.ReadString()
|
|
575
|
+ this.value = _buf_.ReadString()
|
493
|
576
|
}
|
494
|
577
|
|
495
|
578
|
/**
|
496
|
|
- * 唯一id
|
|
579
|
+ * IDX
|
497
|
580
|
*/
|
498
|
581
|
readonly idx: number
|
499
|
582
|
/**
|
500
|
|
- * 品质
|
501
|
|
- */
|
502
|
|
- readonly quality: Quality
|
503
|
|
- /**
|
504
|
|
- * 权重
|
|
583
|
+ * 常量主键
|
505
|
584
|
*/
|
506
|
|
- readonly weight: number
|
|
585
|
+ readonly mainKey: string
|
507
|
586
|
/**
|
508
|
|
- * 消耗宝石数量
|
|
587
|
+ * 常量值
|
509
|
588
|
*/
|
510
|
|
- readonly costgem: number
|
|
589
|
+ readonly value: string
|
511
|
590
|
|
512
|
591
|
resolve(tables:Tables) {
|
513
|
592
|
|
514
|
593
|
|
515
|
594
|
|
516
|
|
-
|
517
|
595
|
}
|
518
|
596
|
}
|
519
|
597
|
|
|
@@ -521,55 +599,37 @@ export class BattleSpacialSummon {
|
521
|
599
|
|
522
|
600
|
|
523
|
601
|
|
524
|
|
-export class Hero {
|
|
602
|
+export class HeroQualityWorth {
|
525
|
603
|
|
526
|
604
|
constructor(_buf_: ByteBuf) {
|
527
|
|
- this.id = _buf_.ReadInt()
|
|
605
|
+ this.idx = _buf_.ReadInt()
|
528
|
606
|
this.quality = _buf_.ReadInt()
|
529
|
|
- this.attacktype = _buf_.ReadInt()
|
530
|
|
- this.name = _buf_.ReadString()
|
531
|
|
- { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.skills = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.skills.push(_e0);}}
|
532
|
|
- { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.composeheros = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.composeheros.push(_e0);}}
|
533
|
|
- this.isShow = _buf_.ReadInt()
|
|
607
|
+ this.gold = _buf_.ReadInt()
|
|
608
|
+ this.gem = _buf_.ReadInt()
|
534
|
609
|
}
|
535
|
610
|
|
536
|
611
|
/**
|
537
|
|
- * 英雄ID
|
|
612
|
+ * 唯一id
|
538
|
613
|
*/
|
539
|
|
- readonly id: number
|
|
614
|
+ readonly idx: number
|
540
|
615
|
/**
|
541
|
616
|
* 品质
|
542
|
617
|
*/
|
543
|
618
|
readonly quality: Quality
|
544
|
619
|
/**
|
545
|
|
- * 攻击类型
|
546
|
|
- */
|
547
|
|
- readonly attacktype: AttackType
|
548
|
|
- /**
|
549
|
|
- * 名字
|
550
|
|
- */
|
551
|
|
- readonly name: string
|
552
|
|
- /**
|
553
|
|
- * 技能列表
|
554
|
|
- */
|
555
|
|
- readonly skills: number[]
|
556
|
|
- /**
|
557
|
|
- * 合成英雄公式
|
|
620
|
+ * 局内金币
|
558
|
621
|
*/
|
559
|
|
- readonly composeheros: number[]
|
|
622
|
+ readonly gold: number
|
560
|
623
|
/**
|
561
|
|
- * 是否测试
|
|
624
|
+ * 局内宝石
|
562
|
625
|
*/
|
563
|
|
- readonly isShow: number
|
|
626
|
+ readonly gem: number
|
564
|
627
|
|
565
|
628
|
resolve(tables:Tables) {
|
566
|
629
|
|
567
|
630
|
|
568
|
631
|
|
569
|
632
|
|
570
|
|
-
|
571
|
|
-
|
572
|
|
-
|
573
|
633
|
}
|
574
|
634
|
}
|
575
|
635
|
|
|
@@ -609,43 +669,31 @@ export class BattleSummonWeight {
|
609
|
669
|
|
610
|
670
|
|
611
|
671
|
|
612
|
|
-export class WaveRewards {
|
|
672
|
+export class Item {
|
613
|
673
|
|
614
|
674
|
constructor(_buf_: ByteBuf) {
|
615
|
675
|
this.idx = _buf_.ReadInt()
|
616
|
|
- this.waveMin = _buf_.ReadInt()
|
617
|
|
- this.waveMax = _buf_.ReadInt()
|
618
|
|
- this.level = _buf_.ReadInt()
|
619
|
|
- { 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);}}
|
|
676
|
+ this.type = _buf_.ReadInt()
|
|
677
|
+ this.name = _buf_.ReadString()
|
620
|
678
|
}
|
621
|
679
|
|
622
|
680
|
/**
|
623
|
|
- * idx
|
|
681
|
+ * 道具ID
|
624
|
682
|
*/
|
625
|
683
|
readonly idx: number
|
626
|
684
|
/**
|
627
|
|
- * 波数下限
|
628
|
|
- */
|
629
|
|
- readonly waveMin: number
|
630
|
|
- /**
|
631
|
|
- * 波数上限
|
632
|
|
- */
|
633
|
|
- readonly waveMax: number
|
634
|
|
- /**
|
635
|
|
- * 难度
|
|
685
|
+ * 类型
|
636
|
686
|
*/
|
637
|
|
- readonly level: number
|
|
687
|
+ readonly type: number
|
638
|
688
|
/**
|
639
|
|
- * 奖励列表
|
|
689
|
+ * 道具名
|
640
|
690
|
*/
|
641
|
|
- readonly rewards: Common.Reward[]
|
|
691
|
+ readonly name: string
|
642
|
692
|
|
643
|
693
|
resolve(tables:Tables) {
|
644
|
694
|
|
645
|
695
|
|
646
|
696
|
|
647
|
|
-
|
648
|
|
- for (let _e of this.rewards) { _e?.resolve(tables); }
|
649
|
697
|
}
|
650
|
698
|
}
|
651
|
699
|
|
|
@@ -653,86 +701,46 @@ export class WaveRewards {
|
653
|
701
|
|
654
|
702
|
|
655
|
703
|
|
656
|
|
-export class SkillBuff {
|
|
704
|
+export class Hero {
|
657
|
705
|
|
658
|
706
|
constructor(_buf_: ByteBuf) {
|
659
|
|
- this.idx = _buf_.ReadInt()
|
660
|
|
- this.remark = _buf_.ReadString()
|
661
|
|
- this.type = _buf_.ReadInt()
|
662
|
|
- this.parameters = _buf_.ReadString()
|
663
|
|
- this.probability = _buf_.ReadInt()
|
664
|
|
- this.triggerCondition = _buf_.ReadString()
|
665
|
|
- this.effectType = _buf_.ReadInt()
|
666
|
|
- this.duration = _buf_.ReadInt()
|
667
|
|
- this.overlapTimes = _buf_.ReadInt()
|
668
|
|
- this.uniqueGain = _buf_.ReadBool()
|
669
|
|
- this.halo = _buf_.ReadBool()
|
670
|
|
- this.attributes = _buf_.ReadString()
|
671
|
|
- this.mixBufficon = _buf_.ReadInt()
|
672
|
|
- this.skillShowId = _buf_.ReadInt()
|
673
|
|
- this.floatingTextId = _buf_.ReadInt()
|
|
707
|
+ this.id = _buf_.ReadInt()
|
|
708
|
+ this.quality = _buf_.ReadInt()
|
|
709
|
+ this.attacktype = _buf_.ReadInt()
|
|
710
|
+ this.name = _buf_.ReadString()
|
|
711
|
+ { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.skills = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.skills.push(_e0);}}
|
|
712
|
+ { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.composeheros = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.composeheros.push(_e0);}}
|
|
713
|
+ this.isShow = _buf_.ReadInt()
|
674
|
714
|
}
|
675
|
715
|
|
676
|
716
|
/**
|
677
|
|
- * buffid
|
678
|
|
- */
|
679
|
|
- readonly idx: number
|
680
|
|
- /**
|
681
|
|
- * 备注
|
682
|
|
- */
|
683
|
|
- readonly remark: string
|
684
|
|
- /**
|
685
|
|
- * buff类型
|
686
|
|
- */
|
687
|
|
- readonly type: number
|
688
|
|
- /**
|
689
|
|
- * buff参数
|
690
|
|
- */
|
691
|
|
- readonly parameters: string
|
692
|
|
- /**
|
693
|
|
- * 触发概率
|
694
|
|
- */
|
695
|
|
- readonly probability: number
|
696
|
|
- /**
|
697
|
|
- * 触发条件
|
698
|
|
- */
|
699
|
|
- readonly triggerCondition: string
|
700
|
|
- /**
|
701
|
|
- * 效果类型
|
702
|
|
- */
|
703
|
|
- readonly effectType: number
|
704
|
|
- /**
|
705
|
|
- * 持续时间
|
706
|
|
- */
|
707
|
|
- readonly duration: number
|
708
|
|
- /**
|
709
|
|
- * 叠加次数
|
|
717
|
+ * 英雄ID
|
710
|
718
|
*/
|
711
|
|
- readonly overlapTimes: number
|
|
719
|
+ readonly id: number
|
712
|
720
|
/**
|
713
|
|
- * 唯一增益
|
|
721
|
+ * 品质
|
714
|
722
|
*/
|
715
|
|
- readonly uniqueGain: boolean
|
|
723
|
+ readonly quality: Quality
|
716
|
724
|
/**
|
717
|
|
- * 是否是光环
|
|
725
|
+ * 攻击类型
|
718
|
726
|
*/
|
719
|
|
- readonly halo: boolean
|
|
727
|
+ readonly attacktype: AttackType
|
720
|
728
|
/**
|
721
|
|
- * buff增加的属性
|
|
729
|
+ * 名字
|
722
|
730
|
*/
|
723
|
|
- readonly attributes: string
|
|
731
|
+ readonly name: string
|
724
|
732
|
/**
|
725
|
|
- * 是否合并
|
|
733
|
+ * 技能列表
|
726
|
734
|
*/
|
727
|
|
- readonly mixBufficon: number
|
|
735
|
+ readonly skills: number[]
|
728
|
736
|
/**
|
729
|
|
- * 效果id
|
|
737
|
+ * 合成英雄公式
|
730
|
738
|
*/
|
731
|
|
- readonly skillShowId: number
|
|
739
|
+ readonly composeheros: number[]
|
732
|
740
|
/**
|
733
|
|
- * 飘字id
|
|
741
|
+ * 是否测试
|
734
|
742
|
*/
|
735
|
|
- readonly floatingTextId: number
|
|
743
|
+ readonly isShow: number
|
736
|
744
|
|
737
|
745
|
resolve(tables:Tables) {
|
738
|
746
|
|
|
@@ -742,14 +750,6 @@ export class SkillBuff {
|
742
|
750
|
|
743
|
751
|
|
744
|
752
|
|
745
|
|
-
|
746
|
|
-
|
747
|
|
-
|
748
|
|
-
|
749
|
|
-
|
750
|
|
-
|
751
|
|
-
|
752
|
|
-
|
753
|
753
|
}
|
754
|
754
|
}
|
755
|
755
|
|