瀏覽代碼

auto config export

Hua 9 月之前
父節點
當前提交
3d968b587d
共有 1 個文件被更改,包括 252 次插入252 次删除
  1. 252 252
      schema/schema.ts

+ 252 - 252
schema/schema.ts

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