|
@@ -333,55 +333,37 @@ export class WaveRewards {
|
333
|
333
|
|
334
|
334
|
|
335
|
335
|
|
336
|
|
-export class Hero {
|
|
336
|
+export class BattleSpacialSummon {
|
337
|
337
|
|
338
|
338
|
constructor(_buf_: ByteBuf) {
|
339
|
|
- this.id = _buf_.ReadInt()
|
|
339
|
+ this.idx = _buf_.ReadInt()
|
340
|
340
|
this.quality = _buf_.ReadInt()
|
341
|
|
- this.attacktype = _buf_.ReadInt()
|
342
|
|
- this.name = _buf_.ReadString()
|
343
|
|
- { 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);}}
|
344
|
|
- { 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);}}
|
345
|
|
- this.isShow = _buf_.ReadInt()
|
|
341
|
+ this.weight = _buf_.ReadInt()
|
|
342
|
+ this.costgem = _buf_.ReadInt()
|
346
|
343
|
}
|
347
|
344
|
|
348
|
345
|
/**
|
349
|
|
- * 英雄ID
|
|
346
|
+ * 唯一id
|
350
|
347
|
*/
|
351
|
|
- readonly id: number
|
|
348
|
+ readonly idx: number
|
352
|
349
|
/**
|
353
|
350
|
* 品质
|
354
|
351
|
*/
|
355
|
352
|
readonly quality: Quality
|
356
|
353
|
/**
|
357
|
|
- * 攻击类型
|
358
|
|
- */
|
359
|
|
- readonly attacktype: AttackType
|
360
|
|
- /**
|
361
|
|
- * 名字
|
362
|
|
- */
|
363
|
|
- readonly name: string
|
364
|
|
- /**
|
365
|
|
- * 技能列表
|
366
|
|
- */
|
367
|
|
- readonly skills: number[]
|
368
|
|
- /**
|
369
|
|
- * 合成英雄公式
|
|
354
|
+ * 权重
|
370
|
355
|
*/
|
371
|
|
- readonly composeheros: number[]
|
|
356
|
+ readonly weight: number
|
372
|
357
|
/**
|
373
|
|
- * 是否测试
|
|
358
|
+ * 消耗宝石数量
|
374
|
359
|
*/
|
375
|
|
- readonly isShow: number
|
|
360
|
+ readonly costgem: number
|
376
|
361
|
|
377
|
362
|
resolve(tables:Tables) {
|
378
|
363
|
|
379
|
364
|
|
380
|
365
|
|
381
|
366
|
|
382
|
|
-
|
383
|
|
-
|
384
|
|
-
|
385
|
367
|
}
|
386
|
368
|
}
|
387
|
369
|
|
|
@@ -481,6 +463,38 @@ export class Skill {
|
481
|
463
|
|
482
|
464
|
|
483
|
465
|
|
|
466
|
+export class System {
|
|
467
|
+
|
|
468
|
+ constructor(_buf_: ByteBuf) {
|
|
469
|
+ this.idx = _buf_.ReadInt()
|
|
470
|
+ this.mainKey = _buf_.ReadString()
|
|
471
|
+ this.value = _buf_.ReadString()
|
|
472
|
+ }
|
|
473
|
+
|
|
474
|
+ /**
|
|
475
|
+ * IDX
|
|
476
|
+ */
|
|
477
|
+ readonly idx: number
|
|
478
|
+ /**
|
|
479
|
+ * 常量主键
|
|
480
|
+ */
|
|
481
|
+ readonly mainKey: string
|
|
482
|
+ /**
|
|
483
|
+ * 常量值
|
|
484
|
+ */
|
|
485
|
+ readonly value: string
|
|
486
|
+
|
|
487
|
+ resolve(tables:Tables) {
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+ }
|
|
492
|
+}
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
484
|
498
|
export class SkillBuff {
|
485
|
499
|
|
486
|
500
|
constructor(_buf_: ByteBuf) {
|
|
@@ -585,31 +599,37 @@ export class SkillBuff {
|
585
|
599
|
|
586
|
600
|
|
587
|
601
|
|
588
|
|
-export class System {
|
|
602
|
+export class HeroQualityWorth {
|
589
|
603
|
|
590
|
604
|
constructor(_buf_: ByteBuf) {
|
591
|
605
|
this.idx = _buf_.ReadInt()
|
592
|
|
- this.mainKey = _buf_.ReadString()
|
593
|
|
- this.value = _buf_.ReadString()
|
|
606
|
+ this.quality = _buf_.ReadInt()
|
|
607
|
+ this.gold = _buf_.ReadInt()
|
|
608
|
+ this.gem = _buf_.ReadInt()
|
594
|
609
|
}
|
595
|
610
|
|
596
|
611
|
/**
|
597
|
|
- * IDX
|
|
612
|
+ * 唯一id
|
598
|
613
|
*/
|
599
|
614
|
readonly idx: number
|
600
|
615
|
/**
|
601
|
|
- * 常量主键
|
|
616
|
+ * 品质
|
602
|
617
|
*/
|
603
|
|
- readonly mainKey: string
|
|
618
|
+ readonly quality: Quality
|
604
|
619
|
/**
|
605
|
|
- * 常量值
|
|
620
|
+ * 局内金币
|
606
|
621
|
*/
|
607
|
|
- readonly value: string
|
|
622
|
+ readonly gold: number
|
|
623
|
+ /**
|
|
624
|
+ * 局内宝石
|
|
625
|
+ */
|
|
626
|
+ readonly gem: number
|
608
|
627
|
|
609
|
628
|
resolve(tables:Tables) {
|
610
|
629
|
|
611
|
630
|
|
612
|
631
|
|
|
632
|
+
|
613
|
633
|
}
|
614
|
634
|
}
|
615
|
635
|
|
|
@@ -617,26 +637,26 @@ export class System {
|
617
|
637
|
|
618
|
638
|
|
619
|
639
|
|
620
|
|
-export class Item {
|
|
640
|
+export class BattleSummonWeight {
|
621
|
641
|
|
622
|
642
|
constructor(_buf_: ByteBuf) {
|
623
|
643
|
this.idx = _buf_.ReadInt()
|
624
|
|
- this.type = _buf_.ReadInt()
|
625
|
|
- this.name = _buf_.ReadString()
|
|
644
|
+ this.quality = _buf_.ReadInt()
|
|
645
|
+ this.weight = _buf_.ReadInt()
|
626
|
646
|
}
|
627
|
647
|
|
628
|
648
|
/**
|
629
|
|
- * 道具ID
|
|
649
|
+ * 唯一id
|
630
|
650
|
*/
|
631
|
651
|
readonly idx: number
|
632
|
652
|
/**
|
633
|
|
- * 类型
|
|
653
|
+ * 品质
|
634
|
654
|
*/
|
635
|
|
- readonly type: number
|
|
655
|
+ readonly quality: Quality
|
636
|
656
|
/**
|
637
|
|
- * 道具名
|
|
657
|
+ * 权重
|
638
|
658
|
*/
|
639
|
|
- readonly name: string
|
|
659
|
+ readonly weight: number
|
640
|
660
|
|
641
|
661
|
resolve(tables:Tables) {
|
642
|
662
|
|
|
@@ -649,37 +669,31 @@ export class Item {
|
649
|
669
|
|
650
|
670
|
|
651
|
671
|
|
652
|
|
-export class HeroQualityWorth {
|
|
672
|
+export class Item {
|
653
|
673
|
|
654
|
674
|
constructor(_buf_: ByteBuf) {
|
655
|
675
|
this.idx = _buf_.ReadInt()
|
656
|
|
- this.quality = _buf_.ReadInt()
|
657
|
|
- this.gold = _buf_.ReadInt()
|
658
|
|
- this.gem = _buf_.ReadInt()
|
|
676
|
+ this.type = _buf_.ReadInt()
|
|
677
|
+ this.name = _buf_.ReadString()
|
659
|
678
|
}
|
660
|
679
|
|
661
|
680
|
/**
|
662
|
|
- * 唯一id
|
|
681
|
+ * 道具ID
|
663
|
682
|
*/
|
664
|
683
|
readonly idx: number
|
665
|
684
|
/**
|
666
|
|
- * 品质
|
667
|
|
- */
|
668
|
|
- readonly quality: Quality
|
669
|
|
- /**
|
670
|
|
- * 局内金币
|
|
685
|
+ * 类型
|
671
|
686
|
*/
|
672
|
|
- readonly gold: number
|
|
687
|
+ readonly type: number
|
673
|
688
|
/**
|
674
|
|
- * 局内宝石
|
|
689
|
+ * 道具名
|
675
|
690
|
*/
|
676
|
|
- readonly gem: number
|
|
691
|
+ readonly name: string
|
677
|
692
|
|
678
|
693
|
resolve(tables:Tables) {
|
679
|
694
|
|
680
|
695
|
|
681
|
696
|
|
682
|
|
-
|
683
|
697
|
}
|
684
|
698
|
}
|
685
|
699
|
|
|
@@ -687,69 +701,61 @@ export class HeroQualityWorth {
|
687
|
701
|
|
688
|
702
|
|
689
|
703
|
|
690
|
|
-export class BattleSpacialSummon {
|
|
704
|
+export class Hero {
|
691
|
705
|
|
692
|
706
|
constructor(_buf_: ByteBuf) {
|
693
|
|
- this.idx = _buf_.ReadInt()
|
|
707
|
+ this.id = _buf_.ReadInt()
|
694
|
708
|
this.quality = _buf_.ReadInt()
|
695
|
|
- this.weight = _buf_.ReadInt()
|
696
|
|
- this.costgem = _buf_.ReadInt()
|
|
709
|
+ this.attacktype = _buf_.ReadInt()
|
|
710
|
+ this.name = _buf_.ReadString()
|
|
711
|
+ this.attackRange = _buf_.ReadInt()
|
|
712
|
+ { 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);}}
|
|
713
|
+ { 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);}}
|
|
714
|
+ this.isShow = _buf_.ReadInt()
|
697
|
715
|
}
|
698
|
716
|
|
699
|
717
|
/**
|
700
|
|
- * 唯一id
|
|
718
|
+ * 英雄ID
|
701
|
719
|
*/
|
702
|
|
- readonly idx: number
|
|
720
|
+ readonly id: number
|
703
|
721
|
/**
|
704
|
722
|
* 品质
|
705
|
723
|
*/
|
706
|
724
|
readonly quality: Quality
|
707
|
725
|
/**
|
708
|
|
- * 权重
|
|
726
|
+ * 攻击类型
|
709
|
727
|
*/
|
710
|
|
- readonly weight: number
|
|
728
|
+ readonly attacktype: AttackType
|
711
|
729
|
/**
|
712
|
|
- * 消耗宝石数量
|
|
730
|
+ * 名字
|
713
|
731
|
*/
|
714
|
|
- readonly costgem: number
|
715
|
|
-
|
716
|
|
- resolve(tables:Tables) {
|
717
|
|
-
|
718
|
|
-
|
719
|
|
-
|
720
|
|
-
|
721
|
|
- }
|
722
|
|
-}
|
723
|
|
-
|
724
|
|
-
|
725
|
|
-
|
726
|
|
-
|
727
|
|
-
|
728
|
|
-export class BattleSummonWeight {
|
729
|
|
-
|
730
|
|
- constructor(_buf_: ByteBuf) {
|
731
|
|
- this.idx = _buf_.ReadInt()
|
732
|
|
- this.quality = _buf_.ReadInt()
|
733
|
|
- this.weight = _buf_.ReadInt()
|
734
|
|
- }
|
735
|
|
-
|
|
732
|
+ readonly name: string
|
736
|
733
|
/**
|
737
|
|
- * 唯一id
|
|
734
|
+ * 普攻距离
|
738
|
735
|
*/
|
739
|
|
- readonly idx: number
|
|
736
|
+ readonly attackRange: number
|
740
|
737
|
/**
|
741
|
|
- * 品质
|
|
738
|
+ * 技能列表
|
742
|
739
|
*/
|
743
|
|
- readonly quality: Quality
|
|
740
|
+ readonly skills: number[]
|
744
|
741
|
/**
|
745
|
|
- * 权重
|
|
742
|
+ * 合成英雄公式
|
746
|
743
|
*/
|
747
|
|
- readonly weight: number
|
|
744
|
+ readonly composeheros: number[]
|
|
745
|
+ /**
|
|
746
|
+ * 是否测试
|
|
747
|
+ */
|
|
748
|
+ readonly isShow: number
|
748
|
749
|
|
749
|
750
|
resolve(tables:Tables) {
|
750
|
751
|
|
751
|
752
|
|
752
|
753
|
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
|
753
|
759
|
}
|
754
|
760
|
}
|
755
|
761
|
|