Procházet zdrojové kódy

auto config export

Hua před 10 měsíci
rodič
revize
f877a516d4
1 změnil soubory, kde provedl 219 přidání a 219 odebrání
  1. 219 219
      schema/schema.ts

+ 219 - 219
schema/schema.ts

@@ -321,72 +321,26 @@ export class Item {
321 321
 
322 322
 
323 323
 
324
-export class StrengthenLevel {
325
-
326
-    constructor(_buf_: ByteBuf) {
327
-        this.idx = _buf_.ReadInt()
328
-        this.quality = _buf_.ReadInt()
329
-        this.level = _buf_.ReadInt()
330
-        { 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);}}
331
-        this.attributes = _buf_.ReadString()
332
-    }
333
-
334
-    /**
335
-     * 唯一id
336
-     */
337
-    readonly idx: number
338
-    /**
339
-     * 品质
340
-     */
341
-    readonly quality: Quality
342
-    /**
343
-     * 等级
344
-     */
345
-    readonly level: number
346
-    /**
347
-     * 消耗
348
-     */
349
-    readonly rewards: Common.Reward[]
350
-    /**
351
-     * buff增加的属性
352
-     */
353
-    readonly attributes: string
354
-
355
-    resolve(tables:Tables) {
356
-        
357
-        
358
-        
359
-        for (let _e of this.rewards) { _e?.resolve(tables); }
360
-        
361
-    }
362
-}
363
-
364
-
365
-
366
-
367
-
368
-export class SkillBuff {
324
+export class Skill {
369 325
 
370 326
     constructor(_buf_: ByteBuf) {
371 327
         this.idx = _buf_.ReadInt()
372 328
         this.remark = _buf_.ReadString()
373
-        this.type = _buf_.ReadInt()
374
-        this.parameters = _buf_.ReadString()
375
-        this.probability = _buf_.ReadInt()
329
+        this.skillId = _buf_.ReadInt()
330
+        this.skillType = _buf_.ReadInt()
331
+        this.cd = _buf_.ReadInt()
332
+        this.gridRange = _buf_.ReadInt()
333
+        this.range = _buf_.ReadInt()
376 334
         this.triggerCondition = _buf_.ReadString()
377
-        this.effectType = _buf_.ReadInt()
378
-        this.duration = _buf_.ReadInt()
379
-        this.overlapTimes = _buf_.ReadInt()
380
-        this.uniqueGain = _buf_.ReadBool()
381
-        this.halo = _buf_.ReadBool()
382
-        this.attributes = _buf_.ReadString()
383
-        this.mixBufficon = _buf_.ReadInt()
384
-        this.skillShowId = _buf_.ReadInt()
385
-        this.floatingTextId = _buf_.ReadInt()
335
+        this.effects = _buf_.ReadString()
336
+        this.buffId = _buf_.ReadString()
337
+        this.skillName = _buf_.ReadString()
338
+        this.desc = _buf_.ReadString()
339
+        this.conflictSkillId = _buf_.ReadInt()
386 340
     }
387 341
 
388 342
     /**
389
-     * buffid
343
+     * 主键id
390 344
      */
391 345
     readonly idx: number
392 346
     /**
@@ -394,57 +348,49 @@ export class SkillBuff {
394 348
      */
395 349
     readonly remark: string
396 350
     /**
397
-     * buff类型
398
-     */
399
-    readonly type: number
400
-    /**
401
-     * buff参数
402
-     */
403
-    readonly parameters: string
404
-    /**
405
-     * 触发概率
351
+     * 技能ID
406 352
      */
407
-    readonly probability: number
353
+    readonly skillId: number
408 354
     /**
409
-     * 触发条件
355
+     * 类型
410 356
      */
411
-    readonly triggerCondition: string
357
+    readonly skillType: number
412 358
     /**
413
-     * 效果类型
359
+     * 冷却时间
414 360
      */
415
-    readonly effectType: number
361
+    readonly cd: number
416 362
     /**
417
-     * 持续时间
363
+     * 格子范围
418 364
      */
419
-    readonly duration: number
365
+    readonly gridRange: number
420 366
     /**
421
-     * 叠加次数
367
+     * 攻击距离
422 368
      */
423
-    readonly overlapTimes: number
369
+    readonly range: number
424 370
     /**
425
-     * 唯一增益
371
+     * 技能触发条件
426 372
      */
427
-    readonly uniqueGain: boolean
373
+    readonly triggerCondition: string
428 374
     /**
429
-     * 是否是光环
375
+     * 效果列表
430 376
      */
431
-    readonly halo: boolean
377
+    readonly effects: string
432 378
     /**
433
-     * buff增加的属性
379
+     * buff
434 380
      */
435
-    readonly attributes: string
381
+    readonly buffId: string
436 382
     /**
437
-     * 是否合并
383
+     * 技能名字
438 384
      */
439
-    readonly mixBufficon: number
385
+    readonly skillName: string
440 386
     /**
441
-     * 效果id
387
+     * 技能描述
442 388
      */
443
-    readonly skillShowId: number
389
+    readonly desc: string
444 390
     /**
445
-     * 飘字id
391
+     * 冲突的技能id
446 392
      */
447
-    readonly floatingTextId: number
393
+    readonly conflictSkillId: number
448 394
 
449 395
     resolve(tables:Tables) {
450 396
         
@@ -460,8 +406,6 @@ export class SkillBuff {
460 406
         
461 407
         
462 408
         
463
-        
464
-        
465 409
     }
466 410
 }
467 411
 
@@ -469,12 +413,13 @@ export class SkillBuff {
469 413
 
470 414
 
471 415
 
472
-export class BattleSummonWeight {
416
+export class HeroQualityWorth {
473 417
 
474 418
     constructor(_buf_: ByteBuf) {
475 419
         this.idx = _buf_.ReadInt()
476 420
         this.quality = _buf_.ReadInt()
477
-        this.weight = _buf_.ReadInt()
421
+        this.gold = _buf_.ReadInt()
422
+        this.gem = _buf_.ReadInt()
478 423
     }
479 424
 
480 425
     /**
@@ -486,14 +431,19 @@ export class BattleSummonWeight {
486 431
      */
487 432
     readonly quality: Quality
488 433
     /**
489
-     * 权重
434
+     * 局内金币
490 435
      */
491
-    readonly weight: number
436
+    readonly gold: number
437
+    /**
438
+     * 局内宝石
439
+     */
440
+    readonly gem: number
492 441
 
493 442
     resolve(tables:Tables) {
494 443
         
495 444
         
496 445
         
446
+        
497 447
     }
498 448
 }
499 449
 
@@ -501,43 +451,31 @@ export class BattleSummonWeight {
501 451
 
502 452
 
503 453
 
504
-export class WaveRewards {
454
+export class System {
505 455
 
506 456
     constructor(_buf_: ByteBuf) {
507 457
         this.idx = _buf_.ReadInt()
508
-        this.waveMin = _buf_.ReadInt()
509
-        this.waveMax = _buf_.ReadInt()
510
-        this.level = _buf_.ReadInt()
511
-        { 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);}}
458
+        this.mainKey = _buf_.ReadString()
459
+        this.value = _buf_.ReadString()
512 460
     }
513 461
 
514 462
     /**
515
-     * idx
463
+     * IDX
516 464
      */
517 465
     readonly idx: number
518 466
     /**
519
-     * 波数下限
520
-     */
521
-    readonly waveMin: number
522
-    /**
523
-     * 波数上限
524
-     */
525
-    readonly waveMax: number
526
-    /**
527
-     * 难度
467
+     * 常量主键
528 468
      */
529
-    readonly level: number
469
+    readonly mainKey: string
530 470
     /**
531
-     * 奖励列表
471
+     * 常量值
532 472
      */
533
-    readonly rewards: Common.Reward[]
473
+    readonly value: string
534 474
 
535 475
     resolve(tables:Tables) {
536 476
         
537 477
         
538 478
         
539
-        
540
-        for (let _e of this.rewards) { _e?.resolve(tables); }
541 479
     }
542 480
 }
543 481
 
@@ -583,31 +521,55 @@ export class BattleSpacialSummon {
583 521
 
584 522
 
585 523
 
586
-export class System {
524
+export class Hero {
587 525
 
588 526
     constructor(_buf_: ByteBuf) {
589
-        this.idx = _buf_.ReadInt()
590
-        this.mainKey = _buf_.ReadString()
591
-        this.value = _buf_.ReadString()
527
+        this.id = _buf_.ReadInt()
528
+        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()
592 534
     }
593 535
 
594 536
     /**
595
-     * IDX
537
+     * 英雄ID
596 538
      */
597
-    readonly idx: number
539
+    readonly id: number
598 540
     /**
599
-     * 常量主键
541
+     * 品质
600 542
      */
601
-    readonly mainKey: string
543
+    readonly quality: Quality
602 544
     /**
603
-     * 常量值
545
+     * 攻击类型
604 546
      */
605
-    readonly value: string
547
+    readonly attacktype: AttackType
548
+    /**
549
+     * 名字
550
+     */
551
+    readonly name: string
552
+    /**
553
+     * 技能列表
554
+     */
555
+    readonly skills: number[]
556
+    /**
557
+     * 合成英雄公式
558
+     */
559
+    readonly composeheros: number[]
560
+    /**
561
+     * 是否测试
562
+     */
563
+    readonly isShow: number
606 564
 
607 565
     resolve(tables:Tables) {
608 566
         
609 567
         
610 568
         
569
+        
570
+        
571
+        
572
+        
611 573
     }
612 574
 }
613 575
 
@@ -615,13 +577,12 @@ export class System {
615 577
 
616 578
 
617 579
 
618
-export class HeroQualityWorth {
580
+export class BattleSummonWeight {
619 581
 
620 582
     constructor(_buf_: ByteBuf) {
621 583
         this.idx = _buf_.ReadInt()
622 584
         this.quality = _buf_.ReadInt()
623
-        this.gold = _buf_.ReadInt()
624
-        this.gem = _buf_.ReadInt()
585
+        this.weight = _buf_.ReadInt()
625 586
     }
626 587
 
627 588
     /**
@@ -633,19 +594,14 @@ export class HeroQualityWorth {
633 594
      */
634 595
     readonly quality: Quality
635 596
     /**
636
-     * 局内金币
637
-     */
638
-    readonly gold: number
639
-    /**
640
-     * 局内宝石
597
+     * 权重
641 598
      */
642
-    readonly gem: number
599
+    readonly weight: number
643 600
 
644 601
     resolve(tables:Tables) {
645 602
         
646 603
         
647 604
         
648
-        
649 605
     }
650 606
 }
651 607
 
@@ -653,91 +609,43 @@ export class HeroQualityWorth {
653 609
 
654 610
 
655 611
 
656
-export class Skill {
612
+export class WaveRewards {
657 613
 
658 614
     constructor(_buf_: ByteBuf) {
659 615
         this.idx = _buf_.ReadInt()
660
-        this.remark = _buf_.ReadString()
661
-        this.skillId = _buf_.ReadInt()
662
-        this.skillType = _buf_.ReadInt()
663
-        this.cd = _buf_.ReadInt()
664
-        this.gridRange = _buf_.ReadInt()
665
-        this.range = _buf_.ReadInt()
666
-        this.triggerCondition = _buf_.ReadString()
667
-        this.effects = _buf_.ReadString()
668
-        this.buffId = _buf_.ReadString()
669
-        this.skillName = _buf_.ReadString()
670
-        this.desc = _buf_.ReadString()
671
-        this.conflictSkillId = _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);}}
672 620
     }
673 621
 
674 622
     /**
675
-     * 主键id
623
+     * idx
676 624
      */
677 625
     readonly idx: number
678 626
     /**
679
-     * 备注
680
-     */
681
-    readonly remark: string
682
-    /**
683
-     * 技能ID
684
-     */
685
-    readonly skillId: number
686
-    /**
687
-     * 类型
688
-     */
689
-    readonly skillType: number
690
-    /**
691
-     * 冷却时间
692
-     */
693
-    readonly cd: number
694
-    /**
695
-     * 格子范围
696
-     */
697
-    readonly gridRange: number
698
-    /**
699
-     * 攻击距离
700
-     */
701
-    readonly range: number
702
-    /**
703
-     * 技能触发条件
704
-     */
705
-    readonly triggerCondition: string
706
-    /**
707
-     * 效果列表
708
-     */
709
-    readonly effects: string
710
-    /**
711
-     * buff
627
+     * 波数下限
712 628
      */
713
-    readonly buffId: string
629
+    readonly waveMin: number
714 630
     /**
715
-     * 技能名字
631
+     * 波数上限
716 632
      */
717
-    readonly skillName: string
633
+    readonly waveMax: number
718 634
     /**
719
-     * 技能描述
635
+     * 难度
720 636
      */
721
-    readonly desc: string
637
+    readonly level: number
722 638
     /**
723
-     * 冲突的技能id
639
+     * 奖励列表
724 640
      */
725
-    readonly conflictSkillId: number
641
+    readonly rewards: Common.Reward[]
726 642
 
727 643
     resolve(tables:Tables) {
728 644
         
729 645
         
730 646
         
731 647
         
732
-        
733
-        
734
-        
735
-        
736
-        
737
-        
738
-        
739
-        
740
-        
648
+        for (let _e of this.rewards) { _e?.resolve(tables); }
741 649
     }
742 650
 }
743 651
 
@@ -745,46 +653,86 @@ export class Skill {
745 653
 
746 654
 
747 655
 
748
-export class Hero {
656
+export class SkillBuff {
749 657
 
750 658
     constructor(_buf_: ByteBuf) {
751
-        this.id = _buf_.ReadInt()
752
-        this.quality = _buf_.ReadInt()
753
-        this.attacktype = _buf_.ReadInt()
754
-        this.name = _buf_.ReadString()
755
-        { 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);}}
756
-        { 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);}}
757
-        this.isShow = _buf_.ReadInt()
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()
758 674
     }
759 675
 
760 676
     /**
761
-     * 英雄ID
677
+     * buffid
762 678
      */
763
-    readonly id: number
679
+    readonly idx: number
764 680
     /**
765
-     * 品质
681
+     * 备注
766 682
      */
767
-    readonly quality: Quality
683
+    readonly remark: string
768 684
     /**
769
-     * 攻击类型
685
+     * buff类型
770 686
      */
771
-    readonly attacktype: AttackType
687
+    readonly type: number
772 688
     /**
773
-     * 名字
689
+     * buff参数
774 690
      */
775
-    readonly name: string
691
+    readonly parameters: string
776 692
     /**
777
-     * 技能列表
693
+     * 触发概率
778 694
      */
779
-    readonly skills: number[]
695
+    readonly probability: number
780 696
     /**
781
-     * 合成英雄公式
697
+     * 触发条件
782 698
      */
783
-    readonly composeheros: number[]
699
+    readonly triggerCondition: string
784 700
     /**
785
-     * 是否测试
701
+     * 效果类型
786 702
      */
787
-    readonly isShow: number
703
+    readonly effectType: number
704
+    /**
705
+     * 持续时间
706
+     */
707
+    readonly duration: number
708
+    /**
709
+     * 叠加次数
710
+     */
711
+    readonly overlapTimes: number
712
+    /**
713
+     * 唯一增益
714
+     */
715
+    readonly uniqueGain: boolean
716
+    /**
717
+     * 是否是光环
718
+     */
719
+    readonly halo: boolean
720
+    /**
721
+     * buff增加的属性
722
+     */
723
+    readonly attributes: string
724
+    /**
725
+     * 是否合并
726
+     */
727
+    readonly mixBufficon: number
728
+    /**
729
+     * 效果id
730
+     */
731
+    readonly skillShowId: number
732
+    /**
733
+     * 飘字id
734
+     */
735
+    readonly floatingTextId: number
788 736
 
789 737
     resolve(tables:Tables) {
790 738
         
@@ -794,6 +742,14 @@ export class Hero {
794 742
         
795 743
         
796 744
         
745
+        
746
+        
747
+        
748
+        
749
+        
750
+        
751
+        
752
+        
797 753
     }
798 754
 }
799 755
 
@@ -881,6 +837,50 @@ export class Wave {
881 837
 
882 838
 
883 839
 
840
+export class StrengthenLevel {
841
+
842
+    constructor(_buf_: ByteBuf) {
843
+        this.idx = _buf_.ReadInt()
844
+        this.quality = _buf_.ReadInt()
845
+        this.level = _buf_.ReadInt()
846
+        { 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);}}
847
+        this.attributes = _buf_.ReadString()
848
+    }
849
+
850
+    /**
851
+     * 唯一id
852
+     */
853
+    readonly idx: number
854
+    /**
855
+     * 品质
856
+     */
857
+    readonly quality: Quality
858
+    /**
859
+     * 等级
860
+     */
861
+    readonly level: number
862
+    /**
863
+     * 消耗
864
+     */
865
+    readonly rewards: Common.Reward[]
866
+    /**
867
+     * buff增加的属性
868
+     */
869
+    readonly attributes: string
870
+
871
+    resolve(tables:Tables) {
872
+        
873
+        
874
+        
875
+        for (let _e of this.rewards) { _e?.resolve(tables); }
876
+        
877
+    }
878
+}
879
+
880
+
881
+
882
+
883
+
884 884
 export class Attr {
885 885
 
886 886
     constructor(_buf_: ByteBuf) {