|
@@ -289,94 +289,6 @@ export class Cost {
|
289
|
289
|
|
290
|
290
|
|
291
|
291
|
|
292
|
|
-export class Hero {
|
293
|
|
-
|
294
|
|
- constructor(_buf_: ByteBuf) {
|
295
|
|
- this.id = _buf_.ReadInt()
|
296
|
|
- this.quality = _buf_.ReadInt()
|
297
|
|
- this.attacktype = _buf_.ReadInt()
|
298
|
|
- this.name = _buf_.ReadString()
|
299
|
|
- { 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);}}
|
300
|
|
- { 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);}}
|
301
|
|
- this.isShow = _buf_.ReadInt()
|
302
|
|
- }
|
303
|
|
-
|
304
|
|
- /**
|
305
|
|
- * 英雄ID
|
306
|
|
- */
|
307
|
|
- readonly id: number
|
308
|
|
- /**
|
309
|
|
- * 品质
|
310
|
|
- */
|
311
|
|
- readonly quality: Quality
|
312
|
|
- /**
|
313
|
|
- * 攻击类型
|
314
|
|
- */
|
315
|
|
- readonly attacktype: AttackType
|
316
|
|
- /**
|
317
|
|
- * 名字
|
318
|
|
- */
|
319
|
|
- readonly name: string
|
320
|
|
- /**
|
321
|
|
- * 技能列表
|
322
|
|
- */
|
323
|
|
- readonly skills: number[]
|
324
|
|
- /**
|
325
|
|
- * 合成英雄公式
|
326
|
|
- */
|
327
|
|
- readonly composeheros: number[]
|
328
|
|
- /**
|
329
|
|
- * 是否测试
|
330
|
|
- */
|
331
|
|
- readonly isShow: number
|
332
|
|
-
|
333
|
|
- resolve(tables:Tables) {
|
334
|
|
-
|
335
|
|
-
|
336
|
|
-
|
337
|
|
-
|
338
|
|
-
|
339
|
|
-
|
340
|
|
-
|
341
|
|
- }
|
342
|
|
-}
|
343
|
|
-
|
344
|
|
-
|
345
|
|
-
|
346
|
|
-
|
347
|
|
-
|
348
|
|
-export class System {
|
349
|
|
-
|
350
|
|
- constructor(_buf_: ByteBuf) {
|
351
|
|
- this.idx = _buf_.ReadInt()
|
352
|
|
- this.mainKey = _buf_.ReadString()
|
353
|
|
- this.value = _buf_.ReadString()
|
354
|
|
- }
|
355
|
|
-
|
356
|
|
- /**
|
357
|
|
- * IDX
|
358
|
|
- */
|
359
|
|
- readonly idx: number
|
360
|
|
- /**
|
361
|
|
- * 常量主键
|
362
|
|
- */
|
363
|
|
- readonly mainKey: string
|
364
|
|
- /**
|
365
|
|
- * 常量值
|
366
|
|
- */
|
367
|
|
- readonly value: string
|
368
|
|
-
|
369
|
|
- resolve(tables:Tables) {
|
370
|
|
-
|
371
|
|
-
|
372
|
|
-
|
373
|
|
- }
|
374
|
|
-}
|
375
|
|
-
|
376
|
|
-
|
377
|
|
-
|
378
|
|
-
|
379
|
|
-
|
380
|
292
|
export class SkillBuff {
|
381
|
293
|
|
382
|
294
|
constructor(_buf_: ByteBuf) {
|
|
@@ -481,31 +393,91 @@ export class SkillBuff {
|
481
|
393
|
|
482
|
394
|
|
483
|
395
|
|
484
|
|
-export class BattleSummonWeight {
|
|
396
|
+export class Skill {
|
485
|
397
|
|
486
|
398
|
constructor(_buf_: ByteBuf) {
|
487
|
399
|
this.idx = _buf_.ReadInt()
|
488
|
|
- this.quality = _buf_.ReadInt()
|
489
|
|
- this.weight = _buf_.ReadInt()
|
|
400
|
+ this.remark = _buf_.ReadString()
|
|
401
|
+ this.skillId = _buf_.ReadInt()
|
|
402
|
+ this.skillType = _buf_.ReadInt()
|
|
403
|
+ this.cd = _buf_.ReadInt()
|
|
404
|
+ this.gridRange = _buf_.ReadInt()
|
|
405
|
+ this.range = _buf_.ReadInt()
|
|
406
|
+ this.triggerCondition = _buf_.ReadString()
|
|
407
|
+ this.effects = _buf_.ReadString()
|
|
408
|
+ this.buffId = _buf_.ReadString()
|
|
409
|
+ this.skillName = _buf_.ReadString()
|
|
410
|
+ this.desc = _buf_.ReadString()
|
|
411
|
+ this.conflictSkillId = _buf_.ReadInt()
|
490
|
412
|
}
|
491
|
413
|
|
492
|
414
|
/**
|
493
|
|
- * 唯一id
|
|
415
|
+ * 主键id
|
494
|
416
|
*/
|
495
|
417
|
readonly idx: number
|
496
|
418
|
/**
|
497
|
|
- * 品质
|
|
419
|
+ * 备注
|
498
|
420
|
*/
|
499
|
|
- readonly quality: Quality
|
|
421
|
+ readonly remark: string
|
500
|
422
|
/**
|
501
|
|
- * 权重
|
|
423
|
+ * 技能ID
|
502
|
424
|
*/
|
503
|
|
- readonly weight: number
|
|
425
|
+ readonly skillId: number
|
|
426
|
+ /**
|
|
427
|
+ * 类型
|
|
428
|
+ */
|
|
429
|
+ readonly skillType: number
|
|
430
|
+ /**
|
|
431
|
+ * 冷却时间
|
|
432
|
+ */
|
|
433
|
+ readonly cd: number
|
|
434
|
+ /**
|
|
435
|
+ * 格子范围
|
|
436
|
+ */
|
|
437
|
+ readonly gridRange: number
|
|
438
|
+ /**
|
|
439
|
+ * 攻击距离
|
|
440
|
+ */
|
|
441
|
+ readonly range: number
|
|
442
|
+ /**
|
|
443
|
+ * 技能触发条件
|
|
444
|
+ */
|
|
445
|
+ readonly triggerCondition: string
|
|
446
|
+ /**
|
|
447
|
+ * 效果列表
|
|
448
|
+ */
|
|
449
|
+ readonly effects: string
|
|
450
|
+ /**
|
|
451
|
+ * buff
|
|
452
|
+ */
|
|
453
|
+ readonly buffId: string
|
|
454
|
+ /**
|
|
455
|
+ * 技能名字
|
|
456
|
+ */
|
|
457
|
+ readonly skillName: string
|
|
458
|
+ /**
|
|
459
|
+ * 技能描述
|
|
460
|
+ */
|
|
461
|
+ readonly desc: string
|
|
462
|
+ /**
|
|
463
|
+ * 冲突的技能id
|
|
464
|
+ */
|
|
465
|
+ readonly conflictSkillId: number
|
504
|
466
|
|
505
|
467
|
resolve(tables:Tables) {
|
506
|
468
|
|
507
|
469
|
|
508
|
470
|
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
509
|
481
|
}
|
510
|
482
|
}
|
511
|
483
|
|
|
@@ -513,31 +485,55 @@ export class BattleSummonWeight {
|
513
|
485
|
|
514
|
486
|
|
515
|
487
|
|
516
|
|
-export class Item {
|
|
488
|
+export class Hero {
|
517
|
489
|
|
518
|
490
|
constructor(_buf_: ByteBuf) {
|
519
|
|
- this.idx = _buf_.ReadInt()
|
520
|
|
- this.type = _buf_.ReadInt()
|
|
491
|
+ this.id = _buf_.ReadInt()
|
|
492
|
+ this.quality = _buf_.ReadInt()
|
|
493
|
+ this.attacktype = _buf_.ReadInt()
|
521
|
494
|
this.name = _buf_.ReadString()
|
|
495
|
+ { 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);}}
|
|
496
|
+ { 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);}}
|
|
497
|
+ this.isShow = _buf_.ReadInt()
|
522
|
498
|
}
|
523
|
499
|
|
524
|
500
|
/**
|
525
|
|
- * 道具ID
|
|
501
|
+ * 英雄ID
|
526
|
502
|
*/
|
527
|
|
- readonly idx: number
|
|
503
|
+ readonly id: number
|
528
|
504
|
/**
|
529
|
|
- * 类型
|
|
505
|
+ * 品质
|
530
|
506
|
*/
|
531
|
|
- readonly type: number
|
|
507
|
+ readonly quality: Quality
|
532
|
508
|
/**
|
533
|
|
- * 道具名
|
|
509
|
+ * 攻击类型
|
|
510
|
+ */
|
|
511
|
+ readonly attacktype: AttackType
|
|
512
|
+ /**
|
|
513
|
+ * 名字
|
534
|
514
|
*/
|
535
|
515
|
readonly name: string
|
|
516
|
+ /**
|
|
517
|
+ * 技能列表
|
|
518
|
+ */
|
|
519
|
+ readonly skills: number[]
|
|
520
|
+ /**
|
|
521
|
+ * 合成英雄公式
|
|
522
|
+ */
|
|
523
|
+ readonly composeheros: number[]
|
|
524
|
+ /**
|
|
525
|
+ * 是否测试
|
|
526
|
+ */
|
|
527
|
+ readonly isShow: number
|
536
|
528
|
|
537
|
529
|
resolve(tables:Tables) {
|
538
|
530
|
|
539
|
531
|
|
540
|
532
|
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
541
|
537
|
}
|
542
|
538
|
}
|
543
|
539
|
|
|
@@ -545,37 +541,31 @@ export class Item {
|
545
|
541
|
|
546
|
542
|
|
547
|
543
|
|
548
|
|
-export class HeroQualityWorth {
|
|
544
|
+export class Item {
|
549
|
545
|
|
550
|
546
|
constructor(_buf_: ByteBuf) {
|
551
|
547
|
this.idx = _buf_.ReadInt()
|
552
|
|
- this.quality = _buf_.ReadInt()
|
553
|
|
- this.gold = _buf_.ReadInt()
|
554
|
|
- this.gem = _buf_.ReadInt()
|
|
548
|
+ this.type = _buf_.ReadInt()
|
|
549
|
+ this.name = _buf_.ReadString()
|
555
|
550
|
}
|
556
|
551
|
|
557
|
552
|
/**
|
558
|
|
- * 唯一id
|
|
553
|
+ * 道具ID
|
559
|
554
|
*/
|
560
|
555
|
readonly idx: number
|
561
|
556
|
/**
|
562
|
|
- * 品质
|
563
|
|
- */
|
564
|
|
- readonly quality: Quality
|
565
|
|
- /**
|
566
|
|
- * 局内金币
|
|
557
|
+ * 类型
|
567
|
558
|
*/
|
568
|
|
- readonly gold: number
|
|
559
|
+ readonly type: number
|
569
|
560
|
/**
|
570
|
|
- * 局内宝石
|
|
561
|
+ * 道具名
|
571
|
562
|
*/
|
572
|
|
- readonly gem: number
|
|
563
|
+ readonly name: string
|
573
|
564
|
|
574
|
565
|
resolve(tables:Tables) {
|
575
|
566
|
|
576
|
567
|
|
577
|
568
|
|
578
|
|
-
|
579
|
569
|
}
|
580
|
570
|
}
|
581
|
571
|
|
|
@@ -583,43 +573,37 @@ export class HeroQualityWorth {
|
583
|
573
|
|
584
|
574
|
|
585
|
575
|
|
586
|
|
-export class WaveRewards {
|
|
576
|
+export class HeroQualityWorth {
|
587
|
577
|
|
588
|
578
|
constructor(_buf_: ByteBuf) {
|
589
|
579
|
this.idx = _buf_.ReadInt()
|
590
|
|
- this.waveMin = _buf_.ReadInt()
|
591
|
|
- this.waveMax = _buf_.ReadInt()
|
592
|
|
- this.level = _buf_.ReadInt()
|
593
|
|
- { 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);}}
|
|
580
|
+ this.quality = _buf_.ReadInt()
|
|
581
|
+ this.gold = _buf_.ReadInt()
|
|
582
|
+ this.gem = _buf_.ReadInt()
|
594
|
583
|
}
|
595
|
584
|
|
596
|
585
|
/**
|
597
|
|
- * idx
|
|
586
|
+ * 唯一id
|
598
|
587
|
*/
|
599
|
588
|
readonly idx: number
|
600
|
589
|
/**
|
601
|
|
- * 波数下限
|
602
|
|
- */
|
603
|
|
- readonly waveMin: number
|
604
|
|
- /**
|
605
|
|
- * 波数上限
|
|
590
|
+ * 品质
|
606
|
591
|
*/
|
607
|
|
- readonly waveMax: number
|
|
592
|
+ readonly quality: Quality
|
608
|
593
|
/**
|
609
|
|
- * 难度
|
|
594
|
+ * 局内金币
|
610
|
595
|
*/
|
611
|
|
- readonly level: number
|
|
596
|
+ readonly gold: number
|
612
|
597
|
/**
|
613
|
|
- * 奖励列表
|
|
598
|
+ * 局内宝石
|
614
|
599
|
*/
|
615
|
|
- readonly rewards: Common.Reward[]
|
|
600
|
+ readonly gem: number
|
616
|
601
|
|
617
|
602
|
resolve(tables:Tables) {
|
618
|
603
|
|
619
|
604
|
|
620
|
605
|
|
621
|
606
|
|
622
|
|
- for (let _e of this.rewards) { _e?.resolve(tables); }
|
623
|
607
|
}
|
624
|
608
|
}
|
625
|
609
|
|
|
@@ -627,37 +611,31 @@ export class WaveRewards {
|
627
|
611
|
|
628
|
612
|
|
629
|
613
|
|
630
|
|
-export class BattleSpacialSummon {
|
|
614
|
+export class System {
|
631
|
615
|
|
632
|
616
|
constructor(_buf_: ByteBuf) {
|
633
|
617
|
this.idx = _buf_.ReadInt()
|
634
|
|
- this.quality = _buf_.ReadInt()
|
635
|
|
- this.weight = _buf_.ReadInt()
|
636
|
|
- this.costgem = _buf_.ReadInt()
|
|
618
|
+ this.mainKey = _buf_.ReadString()
|
|
619
|
+ this.value = _buf_.ReadString()
|
637
|
620
|
}
|
638
|
621
|
|
639
|
622
|
/**
|
640
|
|
- * 唯一id
|
|
623
|
+ * IDX
|
641
|
624
|
*/
|
642
|
625
|
readonly idx: number
|
643
|
626
|
/**
|
644
|
|
- * 品质
|
645
|
|
- */
|
646
|
|
- readonly quality: Quality
|
647
|
|
- /**
|
648
|
|
- * 权重
|
|
627
|
+ * 常量主键
|
649
|
628
|
*/
|
650
|
|
- readonly weight: number
|
|
629
|
+ readonly mainKey: string
|
651
|
630
|
/**
|
652
|
|
- * 消耗宝石数量
|
|
631
|
+ * 常量值
|
653
|
632
|
*/
|
654
|
|
- readonly costgem: number
|
|
633
|
+ readonly value: string
|
655
|
634
|
|
656
|
635
|
resolve(tables:Tables) {
|
657
|
636
|
|
658
|
637
|
|
659
|
638
|
|
660
|
|
-
|
661
|
639
|
}
|
662
|
640
|
}
|
663
|
641
|
|
|
@@ -745,91 +723,113 @@ export class Wave {
|
745
|
723
|
|
746
|
724
|
|
747
|
725
|
|
748
|
|
-export class Skill {
|
|
726
|
+export class BattleSummonWeight {
|
749
|
727
|
|
750
|
728
|
constructor(_buf_: ByteBuf) {
|
751
|
729
|
this.idx = _buf_.ReadInt()
|
752
|
|
- this.remark = _buf_.ReadString()
|
753
|
|
- this.skillId = _buf_.ReadInt()
|
754
|
|
- this.skillType = _buf_.ReadInt()
|
755
|
|
- this.cd = _buf_.ReadInt()
|
756
|
|
- this.gridRange = _buf_.ReadInt()
|
757
|
|
- this.range = _buf_.ReadInt()
|
758
|
|
- this.triggerCondition = _buf_.ReadString()
|
759
|
|
- this.effects = _buf_.ReadString()
|
760
|
|
- this.buffId = _buf_.ReadString()
|
761
|
|
- this.skillName = _buf_.ReadString()
|
762
|
|
- this.desc = _buf_.ReadString()
|
763
|
|
- this.conflictSkillId = _buf_.ReadInt()
|
|
730
|
+ this.quality = _buf_.ReadInt()
|
|
731
|
+ this.weight = _buf_.ReadInt()
|
764
|
732
|
}
|
765
|
733
|
|
766
|
734
|
/**
|
767
|
|
- * 主键id
|
|
735
|
+ * 唯一id
|
768
|
736
|
*/
|
769
|
737
|
readonly idx: number
|
770
|
738
|
/**
|
771
|
|
- * 备注
|
772
|
|
- */
|
773
|
|
- readonly remark: string
|
774
|
|
- /**
|
775
|
|
- * 技能ID
|
|
739
|
+ * 品质
|
776
|
740
|
*/
|
777
|
|
- readonly skillId: number
|
|
741
|
+ readonly quality: Quality
|
778
|
742
|
/**
|
779
|
|
- * 类型
|
|
743
|
+ * 权重
|
780
|
744
|
*/
|
781
|
|
- readonly skillType: number
|
|
745
|
+ readonly weight: number
|
|
746
|
+
|
|
747
|
+ resolve(tables:Tables) {
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+ }
|
|
752
|
+}
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+export class BattleSpacialSummon {
|
|
759
|
+
|
|
760
|
+ constructor(_buf_: ByteBuf) {
|
|
761
|
+ this.idx = _buf_.ReadInt()
|
|
762
|
+ this.quality = _buf_.ReadInt()
|
|
763
|
+ this.weight = _buf_.ReadInt()
|
|
764
|
+ this.costgem = _buf_.ReadInt()
|
|
765
|
+ }
|
|
766
|
+
|
782
|
767
|
/**
|
783
|
|
- * 冷却时间
|
|
768
|
+ * 唯一id
|
784
|
769
|
*/
|
785
|
|
- readonly cd: number
|
|
770
|
+ readonly idx: number
|
786
|
771
|
/**
|
787
|
|
- * 格子范围
|
|
772
|
+ * 品质
|
788
|
773
|
*/
|
789
|
|
- readonly gridRange: number
|
|
774
|
+ readonly quality: Quality
|
790
|
775
|
/**
|
791
|
|
- * 攻击距离
|
|
776
|
+ * 权重
|
792
|
777
|
*/
|
793
|
|
- readonly range: number
|
|
778
|
+ readonly weight: number
|
794
|
779
|
/**
|
795
|
|
- * 技能触发条件
|
|
780
|
+ * 消耗宝石数量
|
796
|
781
|
*/
|
797
|
|
- readonly triggerCondition: string
|
|
782
|
+ readonly costgem: number
|
|
783
|
+
|
|
784
|
+ resolve(tables:Tables) {
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+ }
|
|
790
|
+}
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+export class WaveRewards {
|
|
797
|
+
|
|
798
|
+ constructor(_buf_: ByteBuf) {
|
|
799
|
+ this.idx = _buf_.ReadInt()
|
|
800
|
+ this.waveMin = _buf_.ReadInt()
|
|
801
|
+ this.waveMax = _buf_.ReadInt()
|
|
802
|
+ this.level = _buf_.ReadInt()
|
|
803
|
+ { 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);}}
|
|
804
|
+ }
|
|
805
|
+
|
798
|
806
|
/**
|
799
|
|
- * 效果列表
|
|
807
|
+ * idx
|
800
|
808
|
*/
|
801
|
|
- readonly effects: string
|
|
809
|
+ readonly idx: number
|
802
|
810
|
/**
|
803
|
|
- * buff
|
|
811
|
+ * 波数下限
|
804
|
812
|
*/
|
805
|
|
- readonly buffId: string
|
|
813
|
+ readonly waveMin: number
|
806
|
814
|
/**
|
807
|
|
- * 技能名字
|
|
815
|
+ * 波数上限
|
808
|
816
|
*/
|
809
|
|
- readonly skillName: string
|
|
817
|
+ readonly waveMax: number
|
810
|
818
|
/**
|
811
|
|
- * 技能描述
|
|
819
|
+ * 难度
|
812
|
820
|
*/
|
813
|
|
- readonly desc: string
|
|
821
|
+ readonly level: number
|
814
|
822
|
/**
|
815
|
|
- * 冲突的技能id
|
|
823
|
+ * 奖励列表
|
816
|
824
|
*/
|
817
|
|
- readonly conflictSkillId: number
|
|
825
|
+ readonly rewards: Common.Reward[]
|
818
|
826
|
|
819
|
827
|
resolve(tables:Tables) {
|
820
|
828
|
|
821
|
829
|
|
822
|
830
|
|
823
|
831
|
|
824
|
|
-
|
825
|
|
-
|
826
|
|
-
|
827
|
|
-
|
828
|
|
-
|
829
|
|
-
|
830
|
|
-
|
831
|
|
-
|
832
|
|
-
|
|
832
|
+ for (let _e of this.rewards) { _e?.resolve(tables); }
|
833
|
833
|
}
|
834
|
834
|
}
|
835
|
835
|
|